public static interface NodeGroup.Builder extends SdkPojo, CopyableBuilder<NodeGroup.Builder,NodeGroup>
| Modifier and Type | Method and Description |
|---|---|
NodeGroup.Builder |
nodeGroupId(String nodeGroupId)
The identifier for the node group (shard).
|
NodeGroup.Builder |
nodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
|
NodeGroup.Builder |
nodeGroupMembers(Consumer<NodeGroupMember.Builder>... nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
|
NodeGroup.Builder |
nodeGroupMembers(NodeGroupMember... nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
|
default NodeGroup.Builder |
primaryEndpoint(Consumer<Endpoint.Builder> primaryEndpoint)
The endpoint of the primary node in this node group (shard).
|
NodeGroup.Builder |
primaryEndpoint(Endpoint primaryEndpoint)
The endpoint of the primary node in this node group (shard).
|
default NodeGroup.Builder |
readerEndpoint(Consumer<Endpoint.Builder> readerEndpoint)
The endpoint of the replica nodes in this node group (shard).
|
NodeGroup.Builder |
readerEndpoint(Endpoint readerEndpoint)
The endpoint of the replica nodes in this node group (shard).
|
NodeGroup.Builder |
slots(String slots)
The keyspace for this node group (shard).
|
NodeGroup.Builder |
status(String status)
The current state of this replication group -
creating, available,
modifying, deleting. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildNodeGroup.Builder nodeGroupId(String nodeGroupId)
The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only 1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group contains 1 to 90 node groups numbered 0001 to 0090. Optionally, the user can provide the id for a node group.
nodeGroupId - The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains
only 1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication
group contains 1 to 90 node groups numbered 0001 to 0090. Optionally, the user can provide the id for
a node group.NodeGroup.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.NodeGroup.Builder primaryEndpoint(Endpoint primaryEndpoint)
The endpoint of the primary node in this node group (shard).
primaryEndpoint - The endpoint of the primary node in this node group (shard).default NodeGroup.Builder primaryEndpoint(Consumer<Endpoint.Builder> primaryEndpoint)
The endpoint of the primary node in this node group (shard).
This is a convenience method that creates an instance of theEndpoint.Builder avoiding the need to
create one manually via Endpoint.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to primaryEndpoint(Endpoint).
primaryEndpoint - a consumer that will call methods on Endpoint.BuilderprimaryEndpoint(Endpoint)NodeGroup.Builder readerEndpoint(Endpoint readerEndpoint)
The endpoint of the replica nodes in this node group (shard).
readerEndpoint - The endpoint of the replica nodes in this node group (shard).default NodeGroup.Builder readerEndpoint(Consumer<Endpoint.Builder> readerEndpoint)
The endpoint of the replica nodes in this node group (shard).
This is a convenience method that creates an instance of theEndpoint.Builder avoiding the need to
create one manually via Endpoint.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to readerEndpoint(Endpoint).
readerEndpoint - a consumer that will call methods on Endpoint.BuilderreaderEndpoint(Endpoint)NodeGroup.Builder slots(String slots)
The keyspace for this node group (shard).
slots - The keyspace for this node group (shard).NodeGroup.Builder nodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
nodeGroupMembers - A list containing information about individual nodes within the node group (shard).NodeGroup.Builder nodeGroupMembers(NodeGroupMember... nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
nodeGroupMembers - A list containing information about individual nodes within the node group (shard).NodeGroup.Builder nodeGroupMembers(Consumer<NodeGroupMember.Builder>... nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
This is a convenience method that creates an instance of theNodeGroupMember.Builder avoiding the need to create
one manually via NodeGroupMember.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #nodeGroupMembers(List.
nodeGroupMembers - a consumer that will call methods on
NodeGroupMember.Builder#nodeGroupMembers(java.util.Collection) Copyright © 2023. All rights reserved.