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 NodeGroupMemberclone()booleanequals(Object obj)StringgetCacheClusterId()The ID of the cache cluster to which the node belongs.StringgetCacheNodeId()The ID of the node within its cache cluster.StringgetCurrentRole()The role that is currently assigned to the node - primary or replica.StringgetPreferredAvailabilityZone()The name of the Availability Zone in which the node is located.EndpointgetReadEndpoint()inthashCode()voidsetCacheClusterId(String cacheClusterId)The ID of the cache cluster to which the node belongs.voidsetCacheNodeId(String cacheNodeId)The ID of the node within its cache cluster.voidsetCurrentRole(String currentRole)The role that is currently assigned to the node - primary or replica.voidsetPreferredAvailabilityZone(String preferredAvailabilityZone)The name of the Availability Zone in which the node is located.voidsetReadEndpoint(Endpoint readEndpoint)StringtoString()Returns a string representation of this object; useful for testing and debugging.NodeGroupMemberwithCacheClusterId(String cacheClusterId)The ID of the cache cluster to which the node belongs.NodeGroupMemberwithCacheNodeId(String cacheNodeId)The ID of the node within its cache cluster.NodeGroupMemberwithCurrentRole(String currentRole)The role that is currently assigned to the node - primary or replica.NodeGroupMemberwithPreferredAvailabilityZone(String preferredAvailabilityZone)The name of the Availability Zone in which the node is located.NodeGroupMemberwithReadEndpoint(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public NodeGroupMember clone()
-
-