Interface Shard.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Shard.Builder,,Shard> SdkBuilder<Shard.Builder,,Shard> SdkPojo
- Enclosing class:
Shard
@Mutable
@NotThreadSafe
public static interface Shard.Builder
extends SdkPojo, CopyableBuilder<Shard.Builder,Shard>
-
Method Summary
Modifier and TypeMethodDescriptionparentShardIds(String... parentShardIds) The identifiers of parent shards that this shard evolved from, if this shard was created through resharding.parentShardIds(Collection<String> parentShardIds) The identifiers of parent shards that this shard evolved from, if this shard was created through resharding.default Shard.BuildersequenceNumberRange(Consumer<SequenceNumberRange.Builder> sequenceNumberRange) The range of sequence numbers contained within this shard.sequenceNumberRange(SequenceNumberRange sequenceNumberRange) The range of sequence numbers contained within this shard.A unique identifier for this shard within the stream.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
shardId
A unique identifier for this shard within the stream.
- Parameters:
shardId- A unique identifier for this shard within the stream.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sequenceNumberRange
The range of sequence numbers contained within this shard.
- Parameters:
sequenceNumberRange- The range of sequence numbers contained within this shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sequenceNumberRange
default Shard.Builder sequenceNumberRange(Consumer<SequenceNumberRange.Builder> sequenceNumberRange) The range of sequence numbers contained within this shard.
This is a convenience method that creates an instance of theSequenceNumberRange.Builderavoiding the need to create one manually viaSequenceNumberRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosequenceNumberRange(SequenceNumberRange).- Parameters:
sequenceNumberRange- a consumer that will call methods onSequenceNumberRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parentShardIds
The identifiers of parent shards that this shard evolved from, if this shard was created through resharding.
- Parameters:
parentShardIds- The identifiers of parent shards that this shard evolved from, if this shard was created through resharding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parentShardIds
The identifiers of parent shards that this shard evolved from, if this shard was created through resharding.
- Parameters:
parentShardIds- The identifiers of parent shards that this shard evolved from, if this shard was created through resharding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-