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