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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeGroupclone()booleanequals(Object obj)StringgetNodeGroupId()The identifier for the node group.List<NodeGroupMember>getNodeGroupMembers()A list containing information about individual nodes within the node group.EndpointgetPrimaryEndpoint()StringgetStatus()The current state of this replication group - creating, available, etc.inthashCode()voidsetNodeGroupId(String nodeGroupId)The identifier for the node group.voidsetNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)A list containing information about individual nodes within the node group.voidsetPrimaryEndpoint(Endpoint primaryEndpoint)voidsetStatus(String status)The current state of this replication group - creating, available, etc.StringtoString()Returns a string representation of this object; useful for testing and debugging.NodeGroupwithNodeGroupId(String nodeGroupId)The identifier for the node group.NodeGroupwithNodeGroupMembers(NodeGroupMember... nodeGroupMembers)A list containing information about individual nodes within the node group.NodeGroupwithNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)A list containing information about individual nodes within the node group.NodeGroupwithPrimaryEndpoint(Endpoint primaryEndpoint)NodeGroupwithStatus(String status)The current state of this replication group - creating, available, etc.
-
-
-
Method Detail
-
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)orwithNodeGroupMembers(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-