public class ListShardsResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ListShardsResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNextToken()
When the number of shards in 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 shards in the data stream, the response includes a pagination token
named NextToken . |
java.util.List<Shard> |
getShards()
An array of JSON objects.
|
int |
hashCode() |
void |
setNextToken(java.lang.String nextToken)
When the number of shards in 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 shards in the data stream, the response includes a pagination token
named NextToken . |
void |
setShards(java.util.Collection<Shard> shards)
An array of JSON objects.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListShardsResult |
withNextToken(java.lang.String nextToken)
When the number of shards in 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 shards in the data stream, the response includes a pagination token
named NextToken . |
ListShardsResult |
withShards(java.util.Collection<Shard> shards)
An array of JSON objects.
|
ListShardsResult |
withShards(Shard... shards)
An array of JSON objects.
|
public java.util.List<Shard> getShards()
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.
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.
public void setShards(java.util.Collection<Shard> 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.
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.
public ListShardsResult withShards(Shard... 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 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.
public ListShardsResult withShards(java.util.Collection<Shard> 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 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.
public java.lang.String getNextToken()
When the number of shards in 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 shards in the data stream, the response includes a pagination token
named NextToken
. You can specify this NextToken
value in a subsequent call to ListShards
to list the next
set of shards. For more information about the use of this pagination
token when calling the ListShards
operation, see
ListShardsInput$NextToken.
Tokens expire after 300 seconds. When you obtain a value for
NextToken
in the response to a call to
ListShards
, you have 300 seconds to use that value. If you
specify an expired token in a call to ListShards
, you get
ExpiredNextTokenException
.
Constraints:
Length: 1 - 1048576
When the number of shards in 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 shards in the data stream, the
response includes a pagination token named NextToken
. You can specify this NextToken
value in a
subsequent call to ListShards
to list the next set
of shards. For more information about the use of this pagination
token when calling the ListShards
operation, see
ListShardsInput$NextToken.
Tokens expire after 300 seconds. When you obtain a value for
NextToken
in the response to a call to
ListShards
, you have 300 seconds to use that value.
If you specify an expired token in a call to
ListShards
, you get
ExpiredNextTokenException
.
public void setNextToken(java.lang.String nextToken)
When the number of shards in 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 shards in the data stream, the response includes a pagination token
named NextToken
. You can specify this NextToken
value in a subsequent call to ListShards
to list the next
set of shards. For more information about the use of this pagination
token when calling the ListShards
operation, see
ListShardsInput$NextToken.
Tokens expire after 300 seconds. When you obtain a value for
NextToken
in the response to a call to
ListShards
, you have 300 seconds to use that value. If you
specify an expired token in a call to ListShards
, you get
ExpiredNextTokenException
.
Constraints:
Length: 1 - 1048576
nextToken
-
When the number of shards in 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 shards
in the data stream, the response includes a pagination token
named NextToken
. You can specify this
NextToken
value in a subsequent call to
ListShards
to list the next set of shards. For
more information about the use of this pagination token when
calling the ListShards
operation, see
ListShardsInput$NextToken.
Tokens expire after 300 seconds. When you obtain a value for
NextToken
in the response to a call to
ListShards
, you have 300 seconds to use that
value. If you specify an expired token in a call to
ListShards
, you get
ExpiredNextTokenException
.
public ListShardsResult withNextToken(java.lang.String nextToken)
When the number of shards in 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 shards in the data stream, the response includes a pagination token
named NextToken
. You can specify this NextToken
value in a subsequent call to ListShards
to list the next
set of shards. For more information about the use of this pagination
token when calling the ListShards
operation, see
ListShardsInput$NextToken.
Tokens expire after 300 seconds. When you obtain a value for
NextToken
in the response to a call to
ListShards
, you have 300 seconds to use that value. If you
specify an expired token in a call to ListShards
, you get
ExpiredNextTokenException
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1048576
nextToken
-
When the number of shards in 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 shards
in the data stream, the response includes a pagination token
named NextToken
. You can specify this
NextToken
value in a subsequent call to
ListShards
to list the next set of shards. For
more information about the use of this pagination token when
calling the ListShards
operation, see
ListShardsInput$NextToken.
Tokens expire after 300 seconds. When you obtain a value for
NextToken
in the response to a call to
ListShards
, you have 300 seconds to use that
value. If you specify an expired token in a call to
ListShards
, you get
ExpiredNextTokenException
.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.