Interface ListShardsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListShardsResponse.Builder,,ListShardsResponse> KinesisResponse.Builder,SdkBuilder<ListShardsResponse.Builder,,ListShardsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListShardsResponse
-
Method Summary
Modifier and TypeMethodDescriptionWhen the number of shards in the data stream is greater than the default value for theMaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of shards in the data stream, the response includes a pagination token namedNextToken.shards(Collection<Shard> shards) An array of JSON objects.shards(Consumer<Shard.Builder>... shards) An array of JSON objects.An array of JSON objects.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.kinesis.model.KinesisResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
shards
An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.
- Parameters:
shards- An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shards
An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.
- Parameters:
shards- An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shards
An array of JSON objects. Each object represents one shard and specifies the IDs of the shard, the shard's parent, and the shard that's adjacent to the shard's parent. Each object also contains the starting and ending hash keys and the starting and ending sequence numbers for the shard.
This is a convenience method that creates an instance of theShard.Builderavoiding the need to create one manually viaShard.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toshards(List<Shard>).- Parameters:
shards- a consumer that will call methods onShard.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
When the number of shards in the data stream is greater than the default value for the
MaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of shards in the data stream, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toListShardsto list the next set of shards. For more information about the use of this pagination token when calling theListShardsoperation, see ListShardsInput$NextToken.Tokens expire after 300 seconds. When you obtain a value for
NextTokenin the response to a call toListShards, you have 300 seconds to use that value. If you specify an expired token in a call toListShards, you getExpiredNextTokenException.- Parameters:
nextToken- When the number of shards in the data stream is greater than the default value for theMaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of shards in the data stream, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toListShardsto list the next set of shards. For more information about the use of this pagination token when calling theListShardsoperation, see ListShardsInput$NextToken.Tokens expire after 300 seconds. When you obtain a value for
NextTokenin the response to a call toListShards, you have 300 seconds to use that value. If you specify an expired token in a call toListShards, you getExpiredNextTokenException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-