pub struct Builder { /* private fields */ }
Expand description
A builder for ListStreamConsumersOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn consumers(self, input: Consumer) -> Self
pub fn consumers(self, input: Consumer) -> Self
Appends an item to consumers
.
To override the contents of this collection use set_consumers
.
An array of JSON objects. Each object represents one registered consumer.
sourcepub fn set_consumers(self, input: Option<Vec<Consumer>>) -> Self
pub fn set_consumers(self, input: Option<Vec<Consumer>>) -> Self
An array of JSON objects. Each object represents one registered consumer.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
When the number of consumers that are registered with the data stream is greater than the default value for the MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number of registered consumers, the response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListStreamConsumers
to list the next set of registered consumers. For more information about the use of this pagination token when calling the ListStreamConsumers
operation, see ListStreamConsumersInput$NextToken
.
Tokens expire after 300 seconds. When you obtain a value for NextToken
in the response to a call to ListStreamConsumers
, you have 300 seconds to use that value. If you specify an expired token in a call to ListStreamConsumers
, you get ExpiredNextTokenException
.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
When the number of consumers that are registered with the data stream is greater than the default value for the MaxResults
parameter, or if you explicitly specify a value for MaxResults
that is less than the number of registered consumers, the response includes a pagination token named NextToken
. You can specify this NextToken
value in a subsequent call to ListStreamConsumers
to list the next set of registered consumers. For more information about the use of this pagination token when calling the ListStreamConsumers
operation, see ListStreamConsumersInput$NextToken
.
Tokens expire after 300 seconds. When you obtain a value for NextToken
in the response to a call to ListStreamConsumers
, you have 300 seconds to use that value. If you specify an expired token in a call to ListStreamConsumers
, you get ExpiredNextTokenException
.
sourcepub fn build(self) -> ListStreamConsumersOutput
pub fn build(self) -> ListStreamConsumersOutput
Consumes the builder and constructs a ListStreamConsumersOutput
.