Interface Shard.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Shard.Builder,
,Shard> SdkBuilder<Shard.Builder,
,Shard> SdkPojo
- Enclosing class:
Shard
-
Method Summary
Modifier and TypeMethodDescriptionparentShardId
(String parentShardId) The shard ID of the current shard's parent.default Shard.Builder
sequenceNumberRange
(Consumer<SequenceNumberRange.Builder> sequenceNumberRange) The range of possible sequence numbers for the shard.sequenceNumberRange
(SequenceNumberRange sequenceNumberRange) The range of possible sequence numbers for the shard.The system-generated identifier for this shard.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
shardId
The system-generated identifier for this shard.
- Parameters:
shardId
- The system-generated identifier for this shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sequenceNumberRange
The range of possible sequence numbers for the shard.
- Parameters:
sequenceNumberRange
- The range of possible sequence numbers for the 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 possible sequence numbers for the shard.
This is a convenience method that creates an instance of theSequenceNumberRange.Builder
avoiding the need to create one manually viaSequenceNumberRange.builder()
.When the
Consumer
completes,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:
-
parentShardId
The shard ID of the current shard's parent.
- Parameters:
parentShardId
- The shard ID of the current shard's parent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-