public static interface Shard.Builder extends SdkPojo, CopyableBuilder<Shard.Builder,Shard>
| Modifier and Type | Method and Description |
|---|---|
Shard.Builder |
name(String name)
The name of the shard
|
Shard.Builder |
nodes(Collection<Node> nodes)
A list containing information about individual nodes within the shard
|
Shard.Builder |
nodes(Consumer<Node.Builder>... nodes)
A list containing information about individual nodes within the shard
|
Shard.Builder |
nodes(Node... nodes)
A list containing information about individual nodes within the shard
|
Shard.Builder |
numberOfNodes(Integer numberOfNodes)
The number of nodes in the shard
|
Shard.Builder |
slots(String slots)
The keyspace for this shard.
|
Shard.Builder |
status(String status)
The current state of this replication group - creating, available, modifying, deleting.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildShard.Builder name(String name)
The name of the shard
name - The name of the shardShard.Builder status(String status)
The current state of this replication group - creating, available, modifying, deleting.
status - The current state of this replication group - creating, available, modifying, deleting.Shard.Builder slots(String slots)
The keyspace for this shard.
slots - The keyspace for this shard.Shard.Builder nodes(Collection<Node> nodes)
A list containing information about individual nodes within the shard
nodes - A list containing information about individual nodes within the shardShard.Builder nodes(Node... nodes)
A list containing information about individual nodes within the shard
nodes - A list containing information about individual nodes within the shardShard.Builder nodes(Consumer<Node.Builder>... nodes)
A list containing information about individual nodes within the shard
This is a convenience that creates an instance of theList.Builder avoiding the need to create
one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its result
is passed to #nodes(List) .nodes - a consumer that will call methods on List.Builder #nodes(List) Shard.Builder numberOfNodes(Integer numberOfNodes)
The number of nodes in the shard
numberOfNodes - The number of nodes in the shardCopyright © 2021. All rights reserved.