public static interface Shard.Builder extends CopyableBuilder<Shard.Builder,Shard>
| Modifier and Type | Method and Description |
|---|---|
Shard.Builder |
adjacentParentShardId(String adjacentParentShardId)
The shard ID of the shard adjacent to the shard's parent.
|
default Shard.Builder |
hashKeyRange(Consumer<HashKeyRange.Builder> hashKeyRange)
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
|
Shard.Builder |
hashKeyRange(HashKeyRange hashKeyRange)
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
|
Shard.Builder |
parentShardId(String parentShardId)
The shard ID of the 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 unique identifier of the shard within the stream.
|
copyapply, buildShard.Builder shardId(String shardId)
The unique identifier of the shard within the stream.
shardId - The unique identifier of the shard within the stream.Shard.Builder parentShardId(String parentShardId)
The shard ID of the shard's parent.
parentShardId - The shard ID of the shard's parent.Shard.Builder adjacentParentShardId(String adjacentParentShardId)
The shard ID of the shard adjacent to the shard's parent.
adjacentParentShardId - The shard ID of the shard adjacent to the shard's parent.Shard.Builder hashKeyRange(HashKeyRange hashKeyRange)
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
hashKeyRange - The range of possible hash key values for the shard, which is a set of ordered contiguous positive
integers.default Shard.Builder hashKeyRange(Consumer<HashKeyRange.Builder> hashKeyRange)
The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
This is a convenience that creates an instance of theHashKeyRange.Builder avoiding the need to
create one manually via HashKeyRange.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to hashKeyRange(HashKeyRange).hashKeyRange - a consumer that will call methods on HashKeyRange.BuilderhashKeyRange(HashKeyRange)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 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.BuildersequenceNumberRange(SequenceNumberRange)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.