com.amazonaws.services.elasticache.model
Class NodeGroupMember

java.lang.Object
  extended by com.amazonaws.services.elasticache.model.NodeGroupMember
All Implemented Interfaces:
Serializable

public class NodeGroupMember
extends Object
implements Serializable

Represents a single node within a node group.

See Also:
Serialized Form

Constructor Summary
NodeGroupMember()
           
 
Method Summary
 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()
          Represents the information required for client programs to connect to a cache node.
 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)
          Represents the information required for client programs to connect to a cache node.
 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)
          Represents the information required for client programs to connect to a cache node.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeGroupMember

public NodeGroupMember()
Method Detail

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.

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.

withCacheClusterId

public NodeGroupMember withCacheClusterId(String cacheClusterId)
The ID of the cache cluster to which the node belongs.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cacheClusterId - The ID of the cache cluster to which the node belongs.
Returns:
A reference to this updated object so that method calls can be chained together.

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.).

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.).

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.).

Returns a reference to this object so that method calls can be chained together.

Parameters:
cacheNodeId - The ID of the node within its cache cluster. A node ID is a numeric identifier (0001, 0002, etc.).
Returns:
A reference to this updated object so that method calls can be chained together.

getReadEndpoint

public Endpoint getReadEndpoint()
Represents the information required for client programs to connect to a cache node.

Returns:
Represents the information required for client programs to connect to a cache node.

setReadEndpoint

public void setReadEndpoint(Endpoint readEndpoint)
Represents the information required for client programs to connect to a cache node.

Parameters:
readEndpoint - Represents the information required for client programs to connect to a cache node.

withReadEndpoint

public NodeGroupMember withReadEndpoint(Endpoint readEndpoint)
Represents the information required for client programs to connect to a cache node.

Returns a reference to this object so that method calls can be chained together.

Parameters:
readEndpoint - Represents the information required for client programs to connect to a cache node.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withPreferredAvailabilityZone

public NodeGroupMember withPreferredAvailabilityZone(String preferredAvailabilityZone)
The name of the Availability Zone in which the node is located.

Returns a reference to this object so that method calls can be chained together.

Parameters:
preferredAvailabilityZone - The name of the Availability Zone in which the node is located.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withCurrentRole

public NodeGroupMember withCurrentRole(String currentRole)
The role that is currently assigned to the node - primary or replica.

Returns a reference to this object so that method calls can be chained together.

Parameters:
currentRole - The role that is currently assigned to the node - primary or replica.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.