@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ShardConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Shard configuration options. Each shard configuration has the following: Slots and ReplicaCount.
| Constructor and Description |
|---|
ShardConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ShardConfiguration |
clone() |
boolean |
equals(Object obj) |
Integer |
getReplicaCount()
The number of read replica nodes in this shard.
|
String |
getSlots()
A string that specifies the keyspace for a particular node group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setReplicaCount(Integer replicaCount)
The number of read replica nodes in this shard.
|
void |
setSlots(String slots)
A string that specifies the keyspace for a particular node group.
|
String |
toString()
Returns a string representation of this object.
|
ShardConfiguration |
withReplicaCount(Integer replicaCount)
The number of read replica nodes in this shard.
|
ShardConfiguration |
withSlots(String slots)
A string that specifies the keyspace for a particular node group.
|
public void setSlots(String slots)
A string that specifies the keyspace for a particular node group. Keyspaces range from 0 to 16,383. The string is in the format startkey-endkey.
slots - A string that specifies the keyspace for a particular node group. Keyspaces range from 0 to 16,383. The
string is in the format startkey-endkey.public String getSlots()
A string that specifies the keyspace for a particular node group. Keyspaces range from 0 to 16,383. The string is in the format startkey-endkey.
public ShardConfiguration withSlots(String slots)
A string that specifies the keyspace for a particular node group. Keyspaces range from 0 to 16,383. The string is in the format startkey-endkey.
slots - A string that specifies the keyspace for a particular node group. Keyspaces range from 0 to 16,383. The
string is in the format startkey-endkey.public void setReplicaCount(Integer replicaCount)
The number of read replica nodes in this shard.
replicaCount - The number of read replica nodes in this shard.public Integer getReplicaCount()
The number of read replica nodes in this shard.
public ShardConfiguration withReplicaCount(Integer replicaCount)
The number of read replica nodes in this shard.
replicaCount - The number of read replica nodes in this shard.public String toString()
toString in class ObjectObject.toString()public ShardConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.