public static interface Shard.Builder extends SdkPojo, CopyableBuilder<Shard.Builder,Shard>
Modifier and Type | Method and Description |
---|---|
Shard.Builder |
parentShardId(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.
|
Shard.Builder |
sequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
|
Shard.Builder |
shardId(String shardId)
The system-generated identifier for this shard.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Shard.Builder shardId(String shardId)
The system-generated identifier for this shard.
shardId
- The system-generated identifier for this shard.Shard.Builder sequenceNumberRange(SequenceNumberRange sequenceNumberRange)
The range of possible sequence numbers for the shard.
sequenceNumberRange
- The range of possible sequence numbers for the shard.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 via SequenceNumberRange.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to sequenceNumberRange(SequenceNumberRange)
.
sequenceNumberRange
- a consumer that will call methods on SequenceNumberRange.Builder
sequenceNumberRange(SequenceNumberRange)
Shard.Builder parentShardId(String parentShardId)
The shard ID of the current shard's parent.
parentShardId
- The shard ID of the current shard's parent.Copyright © 2023. All rights reserved.