Interface ChildShard.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ChildShard.Builder,ChildShard>
,SdkBuilder<ChildShard.Builder,ChildShard>
,SdkPojo
- Enclosing class:
- ChildShard
public static interface ChildShard.Builder extends SdkPojo, CopyableBuilder<ChildShard.Builder,ChildShard>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ChildShard.Builder
hashKeyRange(Consumer<HashKeyRange.Builder> hashKeyRange)
Sets the value of the HashKeyRange property for this object.ChildShard.Builder
hashKeyRange(HashKeyRange hashKeyRange)
Sets the value of the HashKeyRange property for this object.ChildShard.Builder
parentShards(String... parentShards)
The current shard that is the parent of the existing child shard.ChildShard.Builder
parentShards(Collection<String> parentShards)
The current shard that is the parent of the existing child shard.ChildShard.Builder
shardId(String shardId)
The shard ID of the existing child shard of the current 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 Detail
-
shardId
ChildShard.Builder shardId(String shardId)
The shard ID of the existing child shard of the current shard.
- Parameters:
shardId
- The shard ID of the existing child shard of the current shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parentShards
ChildShard.Builder parentShards(Collection<String> parentShards)
The current shard that is the parent of the existing child shard.
- Parameters:
parentShards
- The current shard that is the parent of the existing child shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parentShards
ChildShard.Builder parentShards(String... parentShards)
The current shard that is the parent of the existing child shard.
- Parameters:
parentShards
- The current shard that is the parent of the existing child shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hashKeyRange
ChildShard.Builder hashKeyRange(HashKeyRange hashKeyRange)
Sets the value of the HashKeyRange property for this object.- Parameters:
hashKeyRange
- The new value for the HashKeyRange property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hashKeyRange
default ChildShard.Builder hashKeyRange(Consumer<HashKeyRange.Builder> hashKeyRange)
Sets the value of the HashKeyRange property for this object. This is a convenience method that creates an instance of theHashKeyRange.Builder
avoiding the need to create one manually viaHashKeyRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohashKeyRange(HashKeyRange)
.- Parameters:
hashKeyRange
- a consumer that will call methods onHashKeyRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
hashKeyRange(HashKeyRange)
-
-