public class NodeGroupMember extends Object implements Serializable, Cloneable
Represents a single node within a node group.
Constructor and Description |
---|
NodeGroupMember() |
Modifier and Type | Method and Description |
---|---|
NodeGroupMember |
clone() |
boolean |
equals(Object obj) |
String |
getCacheClusterId()
The ID of the cache cluster to which the node belongs.
|
String |
getCacheNodeId()
The ID of the node within its cache 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() |
int |
hashCode() |
void |
setCacheClusterId(String cacheClusterId)
The ID of the cache cluster to which the node belongs.
|
void |
setCacheNodeId(String cacheNodeId)
The ID of the node within its cache 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) |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NodeGroupMember |
withCacheClusterId(String cacheClusterId)
The ID of the cache cluster to which the node belongs.
|
NodeGroupMember |
withCacheNodeId(String cacheNodeId)
The ID of the node within its cache 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) |
public void setCacheClusterId(String cacheClusterId)
The ID of the cache cluster to which the node belongs.
cacheClusterId
- The ID of the cache cluster to which the node belongs.public String getCacheClusterId()
The ID of the cache cluster to which the node belongs.
public NodeGroupMember withCacheClusterId(String cacheClusterId)
The ID of the cache cluster to which the node belongs.
cacheClusterId
- The ID of the cache cluster to which the node belongs.public void setCacheNodeId(String cacheNodeId)
The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
cacheNodeId
- The ID of the node within its cache cluster. A node ID is a
numeric identifier (0001, 0002, etc.).public String getCacheNodeId()
The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
public NodeGroupMember withCacheNodeId(String cacheNodeId)
The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
cacheNodeId
- The ID of the node within its cache cluster. A node ID is a
numeric identifier (0001, 0002, etc.).public void setReadEndpoint(Endpoint readEndpoint)
readEndpoint
- public Endpoint getReadEndpoint()
public NodeGroupMember withReadEndpoint(Endpoint readEndpoint)
readEndpoint
- 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.
currentRole
- The role that is currently assigned to the node - primary
or replica.public String getCurrentRole()
The role that is currently assigned to the node - primary or replica.
public NodeGroupMember withCurrentRole(String currentRole)
The role that is currently assigned to the node - primary or replica.
currentRole
- The role that is currently assigned to the node - primary
or replica.public String toString()
toString
in class Object
Object.toString()
public NodeGroupMember clone()
Copyright © 2016. All rights reserved.