@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListStreamConsumersResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListStreamConsumersResult() |
Modifier and Type | Method and Description |
---|---|
ListStreamConsumersResult |
clone() |
boolean |
equals(Object obj) |
List<Consumer> |
getConsumers()
An array of JSON objects.
|
String |
getNextToken()
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 . |
int |
hashCode() |
void |
setConsumers(Collection<Consumer> consumers)
An array of JSON objects.
|
void |
setNextToken(String nextToken)
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 . |
String |
toString()
Returns a string representation of this object.
|
ListStreamConsumersResult |
withConsumers(Collection<Consumer> consumers)
An array of JSON objects.
|
ListStreamConsumersResult |
withConsumers(Consumer... consumers)
An array of JSON objects.
|
ListStreamConsumersResult |
withNextToken(String nextToken)
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 . |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Consumer> getConsumers()
An array of JSON objects. Each object represents one registered consumer.
public void setConsumers(Collection<Consumer> consumers)
An array of JSON objects. Each object represents one registered consumer.
consumers
- An array of JSON objects. Each object represents one registered consumer.public ListStreamConsumersResult withConsumers(Consumer... consumers)
An array of JSON objects. Each object represents one registered consumer.
NOTE: This method appends the values to the existing list (if any). Use
setConsumers(java.util.Collection)
or withConsumers(java.util.Collection)
if you want to
override the existing values.
consumers
- An array of JSON objects. Each object represents one registered consumer.public ListStreamConsumersResult withConsumers(Collection<Consumer> consumers)
An array of JSON objects. Each object represents one registered consumer.
consumers
- An array of JSON objects. Each object represents one registered consumer.public void setNextToken(String nextToken)
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
.
nextToken
- 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
.
public String getNextToken()
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
.
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
.
public ListStreamConsumersResult withNextToken(String nextToken)
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
.
nextToken
- 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
.
public String toString()
toString
in class Object
Object.toString()
public ListStreamConsumersResult clone()
Copyright © 2021. All rights reserved.