public static interface SubscribeToShardRequest.Builder extends KinesisRequest.Builder, SdkPojo, CopyableBuilder<SubscribeToShardRequest.Builder,SubscribeToShardRequest>
| Modifier and Type | Method and Description |
|---|---|
SubscribeToShardRequest.Builder |
consumerARN(String consumerARN)
For this parameter, use the value you obtained when you called RegisterStreamConsumer.
|
SubscribeToShardRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
SubscribeToShardRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
SubscribeToShardRequest.Builder |
shardId(String shardId)
The ID of the shard you want to subscribe to.
|
default SubscribeToShardRequest.Builder |
startingPosition(Consumer<StartingPosition.Builder> startingPosition)
The starting position in the data stream from which to start streaming.
|
SubscribeToShardRequest.Builder |
startingPosition(StartingPosition startingPosition)
The starting position in the data stream from which to start streaming.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildSubscribeToShardRequest.Builder consumerARN(String consumerARN)
For this parameter, use the value you obtained when you called RegisterStreamConsumer.
consumerARN - For this parameter, use the value you obtained when you called RegisterStreamConsumer.SubscribeToShardRequest.Builder shardId(String shardId)
The ID of the shard you want to subscribe to. To see a list of all the shards for a given stream, use ListShards.
shardId - The ID of the shard you want to subscribe to. To see a list of all the shards for a given stream, use
ListShards.SubscribeToShardRequest.Builder startingPosition(StartingPosition startingPosition)
The starting position in the data stream from which to start streaming.
startingPosition - The starting position in the data stream from which to start streaming.default SubscribeToShardRequest.Builder startingPosition(Consumer<StartingPosition.Builder> startingPosition)
The starting position in the data stream from which to start streaming.
This is a convenience method that creates an instance of theStartingPosition.Builder avoiding the
need to create one manually via StartingPosition.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to startingPosition(StartingPosition).
startingPosition - a consumer that will call methods on StartingPosition.BuilderstartingPosition(StartingPosition)SubscribeToShardRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderSubscribeToShardRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.