@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NodeGroup extends Object implements Serializable, Cloneable
Represents a collection of cache nodes in a replication group. One node in the node group is the read/write primary node. All the other nodes are read-only Replica nodes.
Constructor and Description |
---|
NodeGroup() |
Modifier and Type | Method and Description |
---|---|
NodeGroup |
clone() |
boolean |
equals(Object obj) |
String |
getNodeGroupId()
The identifier for the node group (shard).
|
List<NodeGroupMember> |
getNodeGroupMembers()
A list containing information about individual nodes within the node group (shard).
|
Endpoint |
getPrimaryEndpoint()
The endpoint of the primary node in this node group (shard).
|
String |
getSlots()
The keyspace for this node group (shard).
|
String |
getStatus()
The current state of this replication group -
creating , available , etc. |
int |
hashCode() |
void |
setNodeGroupId(String nodeGroupId)
The identifier for the node group (shard).
|
void |
setNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
|
void |
setPrimaryEndpoint(Endpoint primaryEndpoint)
The endpoint of the primary node in this node group (shard).
|
void |
setSlots(String slots)
The keyspace for this node group (shard).
|
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 (shard).
|
NodeGroup |
withNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
|
NodeGroup |
withNodeGroupMembers(NodeGroupMember... nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
|
NodeGroup |
withPrimaryEndpoint(Endpoint primaryEndpoint)
The endpoint of the primary node in this node group (shard).
|
NodeGroup |
withSlots(String slots)
The keyspace for this node group (shard).
|
NodeGroup |
withStatus(String status)
The current state of this replication group -
creating , available , etc. |
public void setNodeGroupId(String nodeGroupId)
The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only 1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group contains 1 to 15 node groups numbered 0001 to 0015.
nodeGroupId
- The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only
1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group
contains 1 to 15 node groups numbered 0001 to 0015.public String getNodeGroupId()
The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only 1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group contains 1 to 15 node groups numbered 0001 to 0015.
public NodeGroup withNodeGroupId(String nodeGroupId)
The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only 1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group contains 1 to 15 node groups numbered 0001 to 0015.
nodeGroupId
- The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only
1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group
contains 1 to 15 node groups numbered 0001 to 0015.public void setStatus(String status)
The current state of this replication group - creating
, available
, etc.
status
- The current state of this replication group - creating
, available
, etc.public String getStatus()
The current state of this replication group - creating
, available
, etc.
creating
, available
, etc.public NodeGroup withStatus(String status)
The current state of this replication group - creating
, available
, etc.
status
- The current state of this replication group - creating
, available
, etc.public void setPrimaryEndpoint(Endpoint primaryEndpoint)
The endpoint of the primary node in this node group (shard).
primaryEndpoint
- The endpoint of the primary node in this node group (shard).public Endpoint getPrimaryEndpoint()
The endpoint of the primary node in this node group (shard).
public NodeGroup withPrimaryEndpoint(Endpoint primaryEndpoint)
The endpoint of the primary node in this node group (shard).
primaryEndpoint
- The endpoint of the primary node in this node group (shard).public void setSlots(String slots)
The keyspace for this node group (shard).
slots
- The keyspace for this node group (shard).public String getSlots()
The keyspace for this node group (shard).
public NodeGroup withSlots(String slots)
The keyspace for this node group (shard).
slots
- The keyspace for this node group (shard).public List<NodeGroupMember> getNodeGroupMembers()
A list containing information about individual nodes within the node group (shard).
public void setNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
nodeGroupMembers
- A list containing information about individual nodes within the node group (shard).public NodeGroup withNodeGroupMembers(NodeGroupMember... nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
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.
nodeGroupMembers
- A list containing information about individual nodes within the node group (shard).public NodeGroup withNodeGroupMembers(Collection<NodeGroupMember> nodeGroupMembers)
A list containing information about individual nodes within the node group (shard).
nodeGroupMembers
- A list containing information about individual nodes within the node group (shard).public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.