Interface ListStreamConsumersResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListStreamConsumersResponse.Builder,,ListStreamConsumersResponse> KinesisResponse.Builder,SdkBuilder<ListStreamConsumersResponse.Builder,,ListStreamConsumersResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListStreamConsumersResponse
-
Method Summary
Modifier and TypeMethodDescriptionconsumers(Collection<Consumer> consumers) An array of JSON objects.consumers(Consumer<Consumer.Builder>... consumers) An array of JSON objects.An array of JSON objects.When the number of consumers that are registered with 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 registered consumers, the response includes a pagination token namedNextToken.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
consumers
An array of JSON objects. Each object represents one registered consumer.
- Parameters:
consumers- An array of JSON objects. Each object represents one registered consumer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
consumers
An array of JSON objects. Each object represents one registered consumer.
- Parameters:
consumers- An array of JSON objects. Each object represents one registered consumer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
consumers
An array of JSON objects. Each object represents one registered consumer.
This is a convenience method that creates an instance of theConsumer.Builderavoiding the need to create one manually viaConsumer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconsumers(List<Consumer>).- Parameters:
consumers- a consumer that will call methods onConsumer.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
When the number of consumers that are registered with 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 registered consumers, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toListStreamConsumersto list the next set of registered consumers. For more information about the use of this pagination token when calling theListStreamConsumersoperation, see ListStreamConsumersInput$NextToken.Tokens expire after 300 seconds. When you obtain a value for
NextTokenin the response to a call toListStreamConsumers, you have 300 seconds to use that value. If you specify an expired token in a call toListStreamConsumers, you getExpiredNextTokenException.- Parameters:
nextToken- When the number of consumers that are registered with 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 registered consumers, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toListStreamConsumersto list the next set of registered consumers. For more information about the use of this pagination token when calling theListStreamConsumersoperation, see ListStreamConsumersInput$NextToken.Tokens expire after 300 seconds. When you obtain a value for
NextTokenin the response to a call toListStreamConsumers, you have 300 seconds to use that value. If you specify an expired token in a call toListStreamConsumers, you getExpiredNextTokenException.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-