public static interface NodeGroup.Builder extends 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).
|
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 , etc. |
copy
applyMutation, build
NodeGroup.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 15 node groups numbered 0001 to 0015.
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 15 node groups numbered 0001 to 0015.NodeGroup.Builder status(String status)
The current state of this replication group - creating
, available
, etc.
status
- The current state of this replication group - creating
, available
, etc.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 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.Builder
primaryEndpoint(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 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 #nodeGroupMembers(List)
.nodeGroupMembers
- a consumer that will call methods on List.Builder
#nodeGroupMembers(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.