Class NodeGroupMember
- java.lang.Object
-
- com.amazonaws.services.elasticache.model.NodeGroupMember
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class NodeGroupMember extends Object implements Serializable, Cloneable
Represents a single node within a node group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeGroupMember()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
setCacheClusterId
public void setCacheClusterId(String cacheClusterId)
The ID of the cache cluster to which the node belongs.
- Parameters:
cacheClusterId
- The ID of the cache cluster to which the node belongs.
-
getCacheClusterId
public String getCacheClusterId()
The ID of the cache cluster to which the node belongs.
- Returns:
- The ID of the cache cluster to which the node belongs.
-
withCacheClusterId
public NodeGroupMember withCacheClusterId(String cacheClusterId)
The ID of the cache cluster to which the node belongs.
- Parameters:
cacheClusterId
- The ID of the cache cluster to which the node belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCacheNodeId
public void setCacheNodeId(String cacheNodeId)
The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
- Parameters:
cacheNodeId
- The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
getCacheNodeId
public String getCacheNodeId()
The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
- Returns:
- The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
-
withCacheNodeId
public NodeGroupMember withCacheNodeId(String cacheNodeId)
The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
- Parameters:
cacheNodeId
- The ID of the node within its cache 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.
-
setReadEndpoint
public void setReadEndpoint(Endpoint readEndpoint)
- Parameters:
readEndpoint
-
-
getReadEndpoint
public Endpoint getReadEndpoint()
- Returns:
-
withReadEndpoint
public NodeGroupMember withReadEndpoint(Endpoint readEndpoint)
- Parameters:
readEndpoint
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPreferredAvailabilityZone
public void setPreferredAvailabilityZone(String 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.
-
getPreferredAvailabilityZone
public String getPreferredAvailabilityZone()
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.
-
withPreferredAvailabilityZone
public NodeGroupMember withPreferredAvailabilityZone(String 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.
-
setCurrentRole
public void setCurrentRole(String currentRole)
The role that is currently assigned to the node - primary or replica.
- Parameters:
currentRole
- The role that is currently assigned to the node - primary or replica.
-
getCurrentRole
public String getCurrentRole()
The role that is currently assigned to the node - primary or replica.
- Returns:
- The role that is currently assigned to the node - primary or replica.
-
withCurrentRole
public NodeGroupMember withCurrentRole(String currentRole)
The role that is currently assigned to the node - primary or replica.
- Parameters:
currentRole
- The role that is currently assigned to the node - primary or replica.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public NodeGroupMember clone()
-
-