Class ListShardsRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ListShardsRequest.Builder,ListShardsRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ListShardsRequest.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringSpecify this parameter to indicate that you want to list the shards starting with the shard whose ID immediately followsExclusiveStartShardId.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final inthashCode()final IntegerThe maximum number of shards to return in a single call toListShards.final StringWhen 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.static Class<? extends ListShardsRequest.Builder> final ShardFilterEnables you to filter out the response of theListShardsAPI.final StringThe ARN of the stream.final InstantSpecify this input parameter to distinguish data streams that have the same name.final StringThe name of the data stream whose shards you want to list.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
streamName
The name of the data stream whose shards you want to list.
You cannot specify this parameter if you specify the
NextTokenparameter.- Returns:
- The name of the data stream whose shards you want to list.
You cannot specify this parameter if you specify the
NextTokenparameter.
-
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.Don't specify
StreamNameorStreamCreationTimestampif you specifyNextTokenbecause the latter unambiguously identifies the stream.You can optionally specify a value for the
MaxResultsparameter when you specifyNextToken. If you specify aMaxResultsvalue that is less than the number of shards that the operation returns if you don't specifyMaxResults, the response will contain a newNextTokenvalue. You can use the newNextTokenvalue in a subsequent call to theListShardsoperation.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:
- 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.Don't specify
StreamNameorStreamCreationTimestampif you specifyNextTokenbecause the latter unambiguously identifies the stream.You can optionally specify a value for the
MaxResultsparameter when you specifyNextToken. If you specify aMaxResultsvalue that is less than the number of shards that the operation returns if you don't specifyMaxResults, the response will contain a newNextTokenvalue. You can use the newNextTokenvalue in a subsequent call to theListShardsoperation.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.
-
exclusiveStartShardId
Specify this parameter to indicate that you want to list the shards starting with the shard whose ID immediately follows
ExclusiveStartShardId.If you don't specify this parameter, the default behavior is for
ListShardsto list the shards starting with the first one in the stream.You cannot specify this parameter if you specify
NextToken.- Returns:
- Specify this parameter to indicate that you want to list the shards starting with the shard whose ID
immediately follows
ExclusiveStartShardId.If you don't specify this parameter, the default behavior is for
ListShardsto list the shards starting with the first one in the stream.You cannot specify this parameter if you specify
NextToken.
-
maxResults
The maximum number of shards to return in a single call to
ListShards. The maximum number of shards to return in a single call. The default value is 1000. If you specify a value greater than 1000, at most 1000 results are returned.When the number of shards to be listed is greater than the value of
MaxResults, the response contains aNextTokenvalue that you can use in a subsequent call toListShardsto list the next set of shards.- Returns:
- The maximum number of shards to return in a single call to
ListShards. The maximum number of shards to return in a single call. The default value is 1000. If you specify a value greater than 1000, at most 1000 results are returned.When the number of shards to be listed is greater than the value of
MaxResults, the response contains aNextTokenvalue that you can use in a subsequent call toListShardsto list the next set of shards.
-
streamCreationTimestamp
Specify this input parameter to distinguish data streams that have the same name. For example, if you create a data stream and then delete it, and you later create another data stream with the same name, you can use this input parameter to specify which of the two streams you want to list the shards for.
You cannot specify this parameter if you specify the
NextTokenparameter.- Returns:
- Specify this input parameter to distinguish data streams that have the same name. For example, if you
create a data stream and then delete it, and you later create another data stream with the same name, you
can use this input parameter to specify which of the two streams you want to list the shards for.
You cannot specify this parameter if you specify the
NextTokenparameter.
-
shardFilter
Enables you to filter out the response of the
ListShardsAPI. You can only specify one filter at a time.If you use the
ShardFilterparameter when invoking the ListShards API, theTypeis the required property and must be specified. If you specify theAT_TRIM_HORIZON,FROM_TRIM_HORIZON, orAT_LATESTtypes, you do not need to specify either theShardIdor theTimestampoptional properties.If you specify the
AFTER_SHARD_IDtype, you must also provide the value for the optionalShardIdproperty. TheShardIdproperty is identical in fuctionality to theExclusiveStartShardIdparameter of theListShardsAPI. WhenShardIdproperty is specified, the response includes the shards starting with the shard whose ID immediately follows theShardIdthat you provided.If you specify the
AT_TIMESTAMPorFROM_TIMESTAMP_IDtype, you must also provide the value for the optionalTimestampproperty. If you specify the AT_TIMESTAMP type, then all shards that were open at the provided timestamp are returned. If you specify the FROM_TIMESTAMP type, then all shards starting from the provided timestamp to TIP are returned.- Returns:
- Enables you to filter out the response of the
ListShardsAPI. You can only specify one filter at a time.If you use the
ShardFilterparameter when invoking the ListShards API, theTypeis the required property and must be specified. If you specify theAT_TRIM_HORIZON,FROM_TRIM_HORIZON, orAT_LATESTtypes, you do not need to specify either theShardIdor theTimestampoptional properties.If you specify the
AFTER_SHARD_IDtype, you must also provide the value for the optionalShardIdproperty. TheShardIdproperty is identical in fuctionality to theExclusiveStartShardIdparameter of theListShardsAPI. WhenShardIdproperty is specified, the response includes the shards starting with the shard whose ID immediately follows theShardIdthat you provided.If you specify the
AT_TIMESTAMPorFROM_TIMESTAMP_IDtype, you must also provide the value for the optionalTimestampproperty. If you specify the AT_TIMESTAMP type, then all shards that were open at the provided timestamp are returned. If you specify the FROM_TIMESTAMP type, then all shards starting from the provided timestamp to TIP are returned.
-
streamARN
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ListShardsRequest.Builder,ListShardsRequest> - Specified by:
toBuilderin classKinesisRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-