@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NodeGroupMember extends Object implements Serializable, Cloneable
Represents a single node within a node group (shard).
Constructor and Description |
---|
NodeGroupMember() |
Modifier and Type | Method and Description |
---|---|
NodeGroupMember |
clone() |
boolean |
equals(Object obj) |
String |
getCacheClusterId()
The ID of the cluster to which the node belongs.
|
String |
getCacheNodeId()
The ID of the node within its cluster.
|
String |
getCurrentRole()
The role that is currently assigned to the node -
primary or replica . |
String |
getPreferredAvailabilityZone()
The name of the Availability Zone in which the node is located.
|
Endpoint |
getReadEndpoint() |
int |
hashCode() |
void |
setCacheClusterId(String cacheClusterId)
The ID of the cluster to which the node belongs.
|
void |
setCacheNodeId(String cacheNodeId)
The ID of the node within its cluster.
|
void |
setCurrentRole(String currentRole)
The role that is currently assigned to the node -
primary or replica . |
void |
setPreferredAvailabilityZone(String preferredAvailabilityZone)
The name of the Availability Zone in which the node is located.
|
void |
setReadEndpoint(Endpoint readEndpoint) |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
NodeGroupMember |
withCacheClusterId(String cacheClusterId)
The ID of the cluster to which the node belongs.
|
NodeGroupMember |
withCacheNodeId(String cacheNodeId)
The ID of the node within its cluster.
|
NodeGroupMember |
withCurrentRole(String currentRole)
The role that is currently assigned to the node -
primary or replica . |
NodeGroupMember |
withPreferredAvailabilityZone(String preferredAvailabilityZone)
The name of the Availability Zone in which the node is located.
|
NodeGroupMember |
withReadEndpoint(Endpoint readEndpoint) |
public void setCacheClusterId(String cacheClusterId)
The ID of the cluster to which the node belongs.
cacheClusterId
- The ID of the cluster to which the node belongs.public String getCacheClusterId()
The ID of the cluster to which the node belongs.
public NodeGroupMember withCacheClusterId(String cacheClusterId)
The ID of the cluster to which the node belongs.
cacheClusterId
- The ID of the cluster to which the node belongs.public void setCacheNodeId(String cacheNodeId)
The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
cacheNodeId
- The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).public String getCacheNodeId()
The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
public NodeGroupMember withCacheNodeId(String cacheNodeId)
The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).
cacheNodeId
- The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).public void setReadEndpoint(Endpoint readEndpoint)
readEndpoint
- public Endpoint getReadEndpoint()
public NodeGroupMember withReadEndpoint(Endpoint readEndpoint)
readEndpoint
- public void setPreferredAvailabilityZone(String preferredAvailabilityZone)
The name of the Availability Zone in which the node is located.
preferredAvailabilityZone
- The name of the Availability Zone in which the node is located.public String getPreferredAvailabilityZone()
The name of the Availability Zone in which the node is located.
public NodeGroupMember withPreferredAvailabilityZone(String preferredAvailabilityZone)
The name of the Availability Zone in which the node is located.
preferredAvailabilityZone
- The name of the Availability Zone in which the node is located.public void setCurrentRole(String currentRole)
The role that is currently assigned to the node - primary
or replica
.
currentRole
- The role that is currently assigned to the node - primary
or replica
.public String getCurrentRole()
The role that is currently assigned to the node - primary
or replica
.
primary
or replica
.public NodeGroupMember withCurrentRole(String currentRole)
The role that is currently assigned to the node - primary
or replica
.
currentRole
- The role that is currently assigned to the node - primary
or replica
.public String toString()
toString
in class Object
Object.toString()
public NodeGroupMember clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.