Interface NodeGroup.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<NodeGroup.Builder,NodeGroup>
,SdkBuilder<NodeGroup.Builder,NodeGroup>
,SdkPojo
- Enclosing class:
- NodeGroup
public static interface NodeGroup.Builder extends SdkPojo, CopyableBuilder<NodeGroup.Builder,NodeGroup>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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
.-
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 Detail
-
nodeGroupId
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 90 node groups numbered 0001 to 0090. Optionally, the user can provide the id for a node group.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
NodeGroup.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.
-
primaryEndpoint
NodeGroup.Builder primaryEndpoint(Endpoint primaryEndpoint)
The endpoint of the primary node in this node group (shard).
- Parameters:
primaryEndpoint
- The endpoint of the primary node in this node group (shard).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
primaryEndpoint
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 viaEndpoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprimaryEndpoint(Endpoint)
.- Parameters:
primaryEndpoint
- a consumer that will call methods onEndpoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
primaryEndpoint(Endpoint)
-
readerEndpoint
NodeGroup.Builder readerEndpoint(Endpoint readerEndpoint)
The endpoint of the replica nodes in this node group (shard).
- Parameters:
readerEndpoint
- The endpoint of the replica nodes in this node group (shard).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
readerEndpoint
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 viaEndpoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreaderEndpoint(Endpoint)
.- Parameters:
readerEndpoint
- a consumer that will call methods onEndpoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
readerEndpoint(Endpoint)
-
slots
NodeGroup.Builder slots(String slots)
The keyspace for this node group (shard).
- Parameters:
slots
- The keyspace for this node group (shard).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeGroupMembers
NodeGroup.Builder nodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
- Parameters:
nodeGroupMembers
- A list containing information about individual nodes within the node group (shard).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeGroupMembers
NodeGroup.Builder nodeGroupMembers(NodeGroupMember... nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
- Parameters:
nodeGroupMembers
- A list containing information about individual nodes within the node group (shard).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nodeGroupMembers
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 viaNodeGroupMember.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#nodeGroupMembers(List
.) - Parameters:
nodeGroupMembers
- a consumer that will call methods onNodeGroupMember.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#nodeGroupMembers(java.util.Collection
)
-
-