Interface NodeGroupMember.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<NodeGroupMember.Builder,
,NodeGroupMember> SdkBuilder<NodeGroupMember.Builder,
,NodeGroupMember> SdkPojo
- Enclosing class:
NodeGroupMember
-
Method Summary
Modifier and TypeMethodDescriptioncacheClusterId
(String cacheClusterId) The ID of the cluster to which the node belongs.cacheNodeId
(String cacheNodeId) The ID of the node within its cluster.currentRole
(String currentRole) The role that is currently assigned to the node -primary
orreplica
.preferredAvailabilityZone
(String preferredAvailabilityZone) The name of the Availability Zone in which the node is located.preferredOutpostArn
(String preferredOutpostArn) The outpost ARN of the node group member.default NodeGroupMember.Builder
readEndpoint
(Consumer<Endpoint.Builder> readEndpoint) The information required for client programs to connect to a node for read operations.readEndpoint
(Endpoint readEndpoint) The information required for client programs to connect to a node for read operations.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
-
cacheClusterId
The ID of the cluster to which the node belongs.
- Parameters:
cacheClusterId
- The ID of the cluster to which the node belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cacheNodeId
The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
- Parameters:
cacheNodeId
- The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
readEndpoint
The information required for client programs to connect to a node for read operations. The read endpoint is only applicable on Redis (cluster mode disabled) clusters.
- Parameters:
readEndpoint
- The information required for client programs to connect to a node for read operations. The read endpoint is only applicable on Redis (cluster mode disabled) clusters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
readEndpoint
The information required for client programs to connect to a node for read operations. The read endpoint is only applicable on Redis (cluster mode disabled) clusters.
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 toreadEndpoint(Endpoint)
.- Parameters:
readEndpoint
- 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:
-
preferredAvailabilityZone
The name of the Availability Zone in which the node is located.
- Parameters:
preferredAvailabilityZone
- The name of the Availability Zone in which the node is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredOutpostArn
The outpost ARN of the node group member.
- Parameters:
preferredOutpostArn
- The outpost ARN of the node group member.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentRole
The role that is currently assigned to the node -
primary
orreplica
. This member is only applicable for Redis (cluster mode disabled) replication groups.- Parameters:
currentRole
- The role that is currently assigned to the node -primary
orreplica
. This member is only applicable for Redis (cluster mode disabled) replication groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-