public class NodeGroup
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents a collection of cache nodes in a replication group.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
nodeGroupId
The identifier for the node group.
|
private SdkInternalList<NodeGroupMember> |
nodeGroupMembers
A list containing information about individual nodes within the node
group.
|
private Endpoint |
primaryEndpoint |
private java.lang.String |
status
The current state of this replication group - creating,
available, etc.
|
Constructor and Description |
---|
NodeGroup() |
Modifier and Type | Method and Description |
---|---|
NodeGroup |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNodeGroupId()
The identifier for the node group.
|
java.util.List<NodeGroupMember> |
getNodeGroupMembers()
A list containing information about individual nodes within the node
group.
|
Endpoint |
getPrimaryEndpoint() |
java.lang.String |
getStatus()
The current state of this replication group - creating,
available, etc.
|
int |
hashCode() |
void |
setNodeGroupId(java.lang.String nodeGroupId)
The identifier for the node group.
|
void |
setNodeGroupMembers(java.util.Collection<NodeGroupMember> nodeGroupMembers)
A list containing information about individual nodes within the node
group.
|
void |
setPrimaryEndpoint(Endpoint primaryEndpoint) |
void |
setStatus(java.lang.String status)
The current state of this replication group - creating,
available, etc.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
NodeGroup |
withNodeGroupId(java.lang.String nodeGroupId)
The identifier for the node group.
|
NodeGroup |
withNodeGroupMembers(java.util.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) |
NodeGroup |
withStatus(java.lang.String status)
The current state of this replication group - creating,
available, etc.
|
private java.lang.String nodeGroupId
The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
private java.lang.String status
The current state of this replication group - creating, available, etc.
private Endpoint primaryEndpoint
private SdkInternalList<NodeGroupMember> nodeGroupMembers
A list containing information about individual nodes within the node group.
public void setNodeGroupId(java.lang.String nodeGroupId)
The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
nodeGroupId
- The identifier for the node group. A replication group contains
only one node group; therefore, the node group ID is 0001.public java.lang.String getNodeGroupId()
The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
public NodeGroup withNodeGroupId(java.lang.String nodeGroupId)
The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
nodeGroupId
- The identifier for the node group. A replication group contains
only one node group; therefore, the node group ID is 0001.public void setStatus(java.lang.String status)
The current state of this replication group - creating, available, etc.
status
- The current state of this replication group - creating,
available, etc.public java.lang.String getStatus()
The current state of this replication group - creating, available, etc.
public NodeGroup withStatus(java.lang.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)
primaryEndpoint
- public Endpoint getPrimaryEndpoint()
public NodeGroup withPrimaryEndpoint(Endpoint primaryEndpoint)
primaryEndpoint
- public java.util.List<NodeGroupMember> getNodeGroupMembers()
A list containing information about individual nodes within the node group.
public void setNodeGroupMembers(java.util.Collection<NodeGroupMember> nodeGroupMembers)
A list containing information about individual nodes within the node group.
nodeGroupMembers
- A list containing information about individual nodes within the
node group.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)
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.public NodeGroup withNodeGroupMembers(java.util.Collection<NodeGroupMember> nodeGroupMembers)
A list containing information about individual nodes within the node group.
nodeGroupMembers
- A list containing information about individual nodes within the
node group.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public NodeGroup clone()
clone
in class java.lang.Object