Class NodeGroupMember
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<NodeGroupMember.Builder,
NodeGroupMember>
Represents a single node within a node group (shard).
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic NodeGroupMember.Builder
builder()
final String
The ID of the cluster to which the node belongs.final String
The ID of the node within its cluster.final String
The role that is currently assigned to the node -primary
orreplica
.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
The name of the Availability Zone in which the node is located.final String
The outpost ARN of the node group member.final Endpoint
The information required for client programs to connect to a node for read operations.static Class
<? extends NodeGroupMember.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
cacheClusterId
The ID of the cluster to which the node belongs.
- Returns:
- The ID of the cluster to which the node belongs.
-
cacheNodeId
The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
- Returns:
- The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
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:
- 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.
-
preferredAvailabilityZone
The name of the Availability Zone in which the node is located.
- Returns:
- The name of the Availability Zone in which the node is located.
-
preferredOutpostArn
The outpost ARN of the node group member.
- Returns:
- The outpost ARN of the node group member.
-
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:
- The role that is currently assigned to the node -
primary
orreplica
. This member is only applicable for Redis (cluster mode disabled) replication groups.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<NodeGroupMember.Builder,
NodeGroupMember> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-