@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Shard extends Object implements Serializable, Cloneable, StructuredPojo
Represents a collection of nodes in a cluster. One node in the node group is the read/write primary node. All the other nodes are read-only Replica nodes.
Constructor and Description |
---|
Shard() |
Modifier and Type | Method and Description |
---|---|
Shard |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the shard
|
List<Node> |
getNodes()
A list containing information about individual nodes within the shard
|
Integer |
getNumberOfNodes()
The number of nodes in the shard
|
String |
getSlots()
The keyspace for this shard.
|
String |
getStatus()
The current state of this replication group - creating, available, modifying, deleting.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the shard
|
void |
setNodes(Collection<Node> nodes)
A list containing information about individual nodes within the shard
|
void |
setNumberOfNodes(Integer numberOfNodes)
The number of nodes in the shard
|
void |
setSlots(String slots)
The keyspace for this shard.
|
void |
setStatus(String status)
The current state of this replication group - creating, available, modifying, deleting.
|
String |
toString()
Returns a string representation of this object.
|
Shard |
withName(String name)
The name of the shard
|
Shard |
withNodes(Collection<Node> nodes)
A list containing information about individual nodes within the shard
|
Shard |
withNodes(Node... nodes)
A list containing information about individual nodes within the shard
|
Shard |
withNumberOfNodes(Integer numberOfNodes)
The number of nodes in the shard
|
Shard |
withSlots(String slots)
The keyspace for this shard.
|
Shard |
withStatus(String status)
The current state of this replication group - creating, available, modifying, deleting.
|
public void setName(String name)
The name of the shard
name
- The name of the shardpublic String getName()
The name of the shard
public Shard withName(String name)
The name of the shard
name
- The name of the shardpublic void setStatus(String status)
The current state of this replication group - creating, available, modifying, deleting.
status
- The current state of this replication group - creating, available, modifying, deleting.public String getStatus()
The current state of this replication group - creating, available, modifying, deleting.
public Shard withStatus(String status)
The current state of this replication group - creating, available, modifying, deleting.
status
- The current state of this replication group - creating, available, modifying, deleting.public void setSlots(String slots)
The keyspace for this shard.
slots
- The keyspace for this shard.public String getSlots()
The keyspace for this shard.
public Shard withSlots(String slots)
The keyspace for this shard.
slots
- The keyspace for this shard.public List<Node> getNodes()
A list containing information about individual nodes within the shard
public void setNodes(Collection<Node> nodes)
A list containing information about individual nodes within the shard
nodes
- A list containing information about individual nodes within the shardpublic Shard withNodes(Node... nodes)
A list containing information about individual nodes within the shard
NOTE: This method appends the values to the existing list (if any). Use
setNodes(java.util.Collection)
or withNodes(java.util.Collection)
if you want to override the
existing values.
nodes
- A list containing information about individual nodes within the shardpublic Shard withNodes(Collection<Node> nodes)
A list containing information about individual nodes within the shard
nodes
- A list containing information about individual nodes within the shardpublic void setNumberOfNodes(Integer numberOfNodes)
The number of nodes in the shard
numberOfNodes
- The number of nodes in the shardpublic Integer getNumberOfNodes()
The number of nodes in the shard
public Shard withNumberOfNodes(Integer numberOfNodes)
The number of nodes in the shard
numberOfNodes
- The number of nodes in the shardpublic String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.