public class NodeGroup extends Object implements Serializable, Cloneable
Represents a collection of cache nodes in a replication group.
| Constructor and Description | 
|---|
| NodeGroup() | 
| Modifier and Type | Method and Description | 
|---|---|
| NodeGroup | clone() | 
| boolean | equals(Object obj) | 
| String | getNodeGroupId()The identifier for the node group. | 
| List<NodeGroupMember> | getNodeGroupMembers()A list containing information about individual nodes within the node
 group. | 
| Endpoint | getPrimaryEndpoint()Represents the information required for client programs to connect to
 a cache node. | 
| String | getStatus()The current state of this replication group - creating,
 available, etc. | 
| int | hashCode() | 
| void | setNodeGroupId(String nodeGroupId)The identifier for the node group. | 
| void | setNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)A list containing information about individual nodes within the node
 group. | 
| void | setPrimaryEndpoint(Endpoint primaryEndpoint)Represents the information required for client programs to connect to
 a cache node. | 
| void | setStatus(String status)The current state of this replication group - creating,
 available, etc. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| NodeGroup | withNodeGroupId(String nodeGroupId)The identifier for the node group. | 
| NodeGroup | withNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)A list containing information about individual nodes within the node
 group. | 
| NodeGroup | withNodeGroupMembers(NodeGroupMember... nodeGroupMembers)A list containing information about individual nodes within the node
 group. | 
| NodeGroup | withPrimaryEndpoint(Endpoint primaryEndpoint)Represents the information required for client programs to connect to
 a cache node. | 
| NodeGroup | withStatus(String status)The current state of this replication group - creating,
 available, etc. | 
public String getNodeGroupId()
public void setNodeGroupId(String nodeGroupId)
nodeGroupId - The identifier for the node group. A replication group contains only
         one node group; therefore, the node group ID is 0001.public NodeGroup withNodeGroupId(String nodeGroupId)
Returns a reference to this object so that method calls can be chained together.
nodeGroupId - The identifier for the node group. A replication group contains only
         one node group; therefore, the node group ID is 0001.public String getStatus()
public void setStatus(String status)
status - The current state of this replication group - creating,
         available, etc.public NodeGroup withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
status - The current state of this replication group - creating,
         available, etc.public Endpoint getPrimaryEndpoint()
public void setPrimaryEndpoint(Endpoint primaryEndpoint)
primaryEndpoint - Represents the information required for client programs to connect to
         a cache node.public NodeGroup withPrimaryEndpoint(Endpoint primaryEndpoint)
Returns a reference to this object so that method calls can be chained together.
primaryEndpoint - Represents the information required for client programs to connect to
         a cache node.public List<NodeGroupMember> getNodeGroupMembers()
public void setNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)
nodeGroupMembers - A list containing information about individual nodes within the node
         group.public NodeGroup withNodeGroupMembers(NodeGroupMember... nodeGroupMembers)
 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.
 
Returns a reference to this object so that method calls can be chained together.
nodeGroupMembers - A list containing information about individual nodes within the node
         group.public NodeGroup withNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)
Returns a reference to this object so that method calls can be chained together.
nodeGroupMembers - A list containing information about individual nodes within the node
         group.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.