Class NodeGroup

java.lang.Object
com.amazonaws.services.elasticache.model.NodeGroup
All Implemented Interfaces:
Serializable, Cloneable

public class NodeGroup extends Object implements Serializable, Cloneable

Represents a collection of cache nodes in a replication group.

See Also:
  • Constructor Details

    • NodeGroup

      public NodeGroup()
  • Method Details

    • setNodeGroupId

      public void setNodeGroupId(String nodeGroupId)

      The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.

      Parameters:
      nodeGroupId - The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
    • getNodeGroupId

      public String getNodeGroupId()

      The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.

      Returns:
      The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
    • withNodeGroupId

      public NodeGroup withNodeGroupId(String nodeGroupId)

      The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.

      Parameters:
      nodeGroupId - The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setStatus

      public void setStatus(String status)

      The current state of this replication group - creating, available, etc.

      Parameters:
      status - The current state of this replication group - creating, available, etc.
    • getStatus

      public String getStatus()

      The current state of this replication group - creating, available, etc.

      Returns:
      The current state of this replication group - creating, available, etc.
    • withStatus

      public NodeGroup withStatus(String status)

      The current state of this replication group - creating, available, etc.

      Parameters:
      status - The current state of this replication group - creating, available, etc.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPrimaryEndpoint

      public void setPrimaryEndpoint(Endpoint primaryEndpoint)
      Parameters:
      primaryEndpoint -
    • getPrimaryEndpoint

      public Endpoint getPrimaryEndpoint()
      Returns:
    • withPrimaryEndpoint

      public NodeGroup withPrimaryEndpoint(Endpoint primaryEndpoint)
      Parameters:
      primaryEndpoint -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getNodeGroupMembers

      public List<NodeGroupMember> getNodeGroupMembers()

      A list containing information about individual nodes within the node group.

      Returns:
      A list containing information about individual nodes within the node group.
    • setNodeGroupMembers

      public void setNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)

      A list containing information about individual nodes within the node group.

      Parameters:
      nodeGroupMembers - A list containing information about individual nodes within the node group.
    • withNodeGroupMembers

      public NodeGroup withNodeGroupMembers(NodeGroupMember... nodeGroupMembers)

      A list containing information about individual nodes within the node group.

      NOTE: This method appends the values to the existing list (if any). Use setNodeGroupMembers(java.util.Collection) or withNodeGroupMembers(java.util.Collection) if you want to override the existing values.

      Parameters:
      nodeGroupMembers - A list containing information about individual nodes within the node group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withNodeGroupMembers

      public NodeGroup withNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)

      A list containing information about individual nodes within the node group.

      Parameters:
      nodeGroupMembers - A list containing information about individual nodes within the node group.
      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 NodeGroup clone()
      Overrides:
      clone in class Object