@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NodeGroupMember extends Object implements Serializable, Cloneable
Represents a single node within a node group (shard).
Constructor and Description |
---|
NodeGroupMember() |
Modifier and Type | Method and Description |
---|---|
NodeGroupMember |
clone() |
boolean |
equals(Object obj) |
String |
getCacheClusterId()
The ID of the cluster to which the node belongs.
|
String |
getCacheNodeId()
The ID of the node within its cluster.
|
String |
getCurrentRole()
The role that is currently assigned to the node -
primary or replica . |
String |
getPreferredAvailabilityZone()
The name of the Availability Zone in which the node is located.
|
Endpoint |
getReadEndpoint()
The information required for client programs to connect to a node for read operations.
|
int |
hashCode() |
void |
setCacheClusterId(String cacheClusterId)
The ID of the cluster to which the node belongs.
|
void |
setCacheNodeId(String cacheNodeId)
The ID of the node within its cluster.
|
void |
setCurrentRole(String currentRole)
The role that is currently assigned to the node -
primary or replica . |
void |
setPreferredAvailabilityZone(String preferredAvailabilityZone)
The name of the Availability Zone in which the node is located.
|
void |
setReadEndpoint(Endpoint readEndpoint)
The information required for client programs to connect to a node for read operations.
|
String |
toString()
Returns a string representation of this object.
|
NodeGroupMember |
withCacheClusterId(String cacheClusterId)
The ID of the cluster to which the node belongs.
|
NodeGroupMember |
withCacheNodeId(String cacheNodeId)
The ID of the node within its cluster.
|
NodeGroupMember |
withCurrentRole(String currentRole)
The role that is currently assigned to the node -
primary or replica . |
NodeGroupMember |
withPreferredAvailabilityZone(String preferredAvailabilityZone)
The name of the Availability Zone in which the node is located.
|
NodeGroupMember |
withReadEndpoint(Endpoint readEndpoint)
The information required for client programs to connect to a node for read operations.
|
public void setCacheClusterId(String cacheClusterId)
The ID of the cluster to which the node belongs.
cacheClusterId
- The ID of the cluster to which the node belongs.public String getCacheClusterId()
The ID of the cluster to which the node belongs.
public NodeGroupMember withCacheClusterId(String cacheClusterId)
The ID of the cluster to which the node belongs.
cacheClusterId
- The ID of the cluster to which the node belongs.public void setCacheNodeId(String cacheNodeId)
The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
cacheNodeId
- The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).public String getCacheNodeId()
The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
public NodeGroupMember withCacheNodeId(String cacheNodeId)
The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
cacheNodeId
- The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).public void setReadEndpoint(Endpoint 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.
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.public Endpoint getReadEndpoint()
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.
public NodeGroupMember withReadEndpoint(Endpoint 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.
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.public void setPreferredAvailabilityZone(String preferredAvailabilityZone)
The name of the Availability Zone in which the node is located.
preferredAvailabilityZone
- The name of the Availability Zone in which the node is located.public String getPreferredAvailabilityZone()
The name of the Availability Zone in which the node is located.
public NodeGroupMember withPreferredAvailabilityZone(String preferredAvailabilityZone)
The name of the Availability Zone in which the node is located.
preferredAvailabilityZone
- The name of the Availability Zone in which the node is located.public void setCurrentRole(String currentRole)
The role that is currently assigned to the node - primary
or replica
. This member is
only applicable for Redis (cluster mode disabled) replication groups.
currentRole
- The role that is currently assigned to the node - primary
or replica
. This
member is only applicable for Redis (cluster mode disabled) replication groups.public String getCurrentRole()
The role that is currently assigned to the node - primary
or replica
. This member is
only applicable for Redis (cluster mode disabled) replication groups.
primary
or replica
. This
member is only applicable for Redis (cluster mode disabled) replication groups.public NodeGroupMember withCurrentRole(String currentRole)
The role that is currently assigned to the node - primary
or replica
. This member is
only applicable for Redis (cluster mode disabled) replication groups.
currentRole
- The role that is currently assigned to the node - primary
or replica
. This
member is only applicable for Redis (cluster mode disabled) replication groups.public String toString()
toString
in class Object
Object.toString()
public NodeGroupMember clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.