com.amazonaws.services.elasticache.model
Class NodeGroup

java.lang.Object
  extended by com.amazonaws.services.elasticache.model.NodeGroup
All Implemented Interfaces:
Serializable

public class NodeGroup
extends Object
implements Serializable

Represents a collection of cache nodes in a replication group.

See Also:
Serialized Form

Constructor Summary
NodeGroup()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeGroup

public NodeGroup()
Method Detail

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.

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.

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.

Returns a reference to this object so that method calls can be chained together.

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

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.

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.

withStatus

public NodeGroup withStatus(String status)
The current state of this replication group - creating, available, etc.

Returns a reference to this object so that method calls can be chained together.

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

getPrimaryEndpoint

public Endpoint getPrimaryEndpoint()
Represents the information required for client programs to connect to a cache node.

Returns:
Represents the information required for client programs to connect to a cache node.

setPrimaryEndpoint

public void setPrimaryEndpoint(Endpoint primaryEndpoint)
Represents the information required for client programs to connect to a cache node.

Parameters:
primaryEndpoint - Represents the information required for client programs to connect to a cache node.

withPrimaryEndpoint

public NodeGroup withPrimaryEndpoint(Endpoint primaryEndpoint)
Represents the information required for client programs to connect to a cache node.

Returns a reference to this object so that method calls can be chained together.

Parameters:
primaryEndpoint - Represents the information required for client programs to connect to a cache node.
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
nodeGroupMembers - A list containing information about individual nodes within the node group.
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
nodeGroupMembers - A list containing information about individual nodes within the node group.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2016. All rights reserved.