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:
  • Constructor Details

    • NodeGroupMember

      public NodeGroupMember()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public NodeGroupMember clone()
      Overrides:
      clone in class Object