Interface Shard.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Shard.Builder,Shard>,SdkBuilder<Shard.Builder,Shard>,SdkPojo
- Enclosing class:
- Shard
public static interface Shard.Builder extends SdkPojo, CopyableBuilder<Shard.Builder,Shard>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Shard.Buildername(String name)The name of the shardShard.Buildernodes(Collection<Node> nodes)A list containing information about individual nodes within the shardShard.Buildernodes(Consumer<Node.Builder>... nodes)A list containing information about individual nodes within the shardShard.Buildernodes(Node... nodes)A list containing information about individual nodes within the shardShard.BuildernumberOfNodes(Integer numberOfNodes)The number of nodes in the shardShard.Builderslots(String slots)The keyspace for this shard.Shard.Builderstatus(String status)The current state of this replication group - creating, available, modifying, deleting.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
Shard.Builder name(String name)
The name of the shard
- Parameters:
name- The name of the shard- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Shard.Builder status(String status)
The current state of this replication group - creating, available, modifying, deleting.
- Parameters:
status- The current state of this replication group - creating, available, modifying, deleting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slots
Shard.Builder slots(String slots)
The keyspace for this shard.
- Parameters:
slots- The keyspace for this shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodes
Shard.Builder nodes(Collection<Node> nodes)
A list containing information about individual nodes within the shard
- Parameters:
nodes- A list containing information about individual nodes within the shard- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodes
Shard.Builder nodes(Node... nodes)
A list containing information about individual nodes within the shard
- Parameters:
nodes- A list containing information about individual nodes within the shard- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodes
Shard.Builder nodes(Consumer<Node.Builder>... nodes)
A list containing information about individual nodes within the shard
This is a convenience method that creates an instance of theNode.Builderavoiding the need to create one manually viaNode.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#nodes(List.) - Parameters:
nodes- a consumer that will call methods onNode.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#nodes(java.util.Collection)
-
numberOfNodes
Shard.Builder numberOfNodes(Integer numberOfNodes)
The number of nodes in the shard
- Parameters:
numberOfNodes- The number of nodes in the shard- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-