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 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()
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)
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(NodeGroupMember... nodeGroupMembers)
A list containing information about individual nodes within the node group.NodeGroup
withNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)
A list containing information about individual nodes within the node group.NodeGroup
withPrimaryEndpoint(Endpoint primaryEndpoint)
NodeGroup
withStatus(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-