Interface Shard.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Shard.Builder,
,Shard> SdkBuilder<Shard.Builder,
,Shard> SdkPojo
- Enclosing class:
Shard
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the shardnodes
(Collection<Node> nodes) A list containing information about individual nodes within the shardnodes
(Consumer<Node.Builder>... nodes) A list containing information about individual nodes within the shardA list containing information about individual nodes within the shardnumberOfNodes
(Integer numberOfNodes) The number of nodes in the shardThe keyspace for this shard.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, sdkFields
-
Method Details
-
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
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
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
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
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
A list containing information about individual nodes within the shard
This is a convenience method that creates an instance of theNode.Builder
avoiding the need to create one manually viaNode.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonodes(List<Node>)
.- 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:
-
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.
-