@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NodeGroupConfiguration extends Object implements Serializable, Cloneable
Node group (shard) configuration options. Each node group (shard) configuration has the following: Slots
, PrimaryAvailabilityZone
, ReplicaAvailabilityZones
, ReplicaCount
.
Constructor and Description |
---|
NodeGroupConfiguration() |
Modifier and Type | Method and Description |
---|---|
NodeGroupConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getPrimaryAvailabilityZone()
The Availability Zone where the primary node of this node group (shard) is launched.
|
List<String> |
getReplicaAvailabilityZones()
A list of Availability Zones to be used for the read replicas.
|
Integer |
getReplicaCount()
The number of read replica nodes in this node group (shard).
|
String |
getSlots()
A string that specifies the keyspace for a particular node group.
|
int |
hashCode() |
void |
setPrimaryAvailabilityZone(String primaryAvailabilityZone)
The Availability Zone where the primary node of this node group (shard) is launched.
|
void |
setReplicaAvailabilityZones(Collection<String> replicaAvailabilityZones)
A list of Availability Zones to be used for the read replicas.
|
void |
setReplicaCount(Integer replicaCount)
The number of read replica nodes in this node group (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; useful for testing and debugging.
|
NodeGroupConfiguration |
withPrimaryAvailabilityZone(String primaryAvailabilityZone)
The Availability Zone where the primary node of this node group (shard) is launched.
|
NodeGroupConfiguration |
withReplicaAvailabilityZones(Collection<String> replicaAvailabilityZones)
A list of Availability Zones to be used for the read replicas.
|
NodeGroupConfiguration |
withReplicaAvailabilityZones(String... replicaAvailabilityZones)
A list of Availability Zones to be used for the read replicas.
|
NodeGroupConfiguration |
withReplicaCount(Integer replicaCount)
The number of read replica nodes in this node group (shard).
|
NodeGroupConfiguration |
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
.
Example: "0-3999"
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
.
Example: "0-3999"
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
.
Example: "0-3999"
startkey-endkey
.
Example: "0-3999"
public NodeGroupConfiguration 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
.
Example: "0-3999"
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
.
Example: "0-3999"
public void setReplicaCount(Integer replicaCount)
The number of read replica nodes in this node group (shard).
replicaCount
- The number of read replica nodes in this node group (shard).public Integer getReplicaCount()
The number of read replica nodes in this node group (shard).
public NodeGroupConfiguration withReplicaCount(Integer replicaCount)
The number of read replica nodes in this node group (shard).
replicaCount
- The number of read replica nodes in this node group (shard).public void setPrimaryAvailabilityZone(String primaryAvailabilityZone)
The Availability Zone where the primary node of this node group (shard) is launched.
primaryAvailabilityZone
- The Availability Zone where the primary node of this node group (shard) is launched.public String getPrimaryAvailabilityZone()
The Availability Zone where the primary node of this node group (shard) is launched.
public NodeGroupConfiguration withPrimaryAvailabilityZone(String primaryAvailabilityZone)
The Availability Zone where the primary node of this node group (shard) is launched.
primaryAvailabilityZone
- The Availability Zone where the primary node of this node group (shard) is launched.public List<String> getReplicaAvailabilityZones()
A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this list must
match the value of ReplicaCount
or ReplicasPerNodeGroup
if not specified.
ReplicaCount
or ReplicasPerNodeGroup
if not
specified.public void setReplicaAvailabilityZones(Collection<String> replicaAvailabilityZones)
A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this list must
match the value of ReplicaCount
or ReplicasPerNodeGroup
if not specified.
replicaAvailabilityZones
- A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this
list must match the value of ReplicaCount
or ReplicasPerNodeGroup
if not
specified.public NodeGroupConfiguration withReplicaAvailabilityZones(String... replicaAvailabilityZones)
A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this list must
match the value of ReplicaCount
or ReplicasPerNodeGroup
if not specified.
NOTE: This method appends the values to the existing list (if any). Use
setReplicaAvailabilityZones(java.util.Collection)
or
withReplicaAvailabilityZones(java.util.Collection)
if you want to override the existing values.
replicaAvailabilityZones
- A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this
list must match the value of ReplicaCount
or ReplicasPerNodeGroup
if not
specified.public NodeGroupConfiguration withReplicaAvailabilityZones(Collection<String> replicaAvailabilityZones)
A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this list must
match the value of ReplicaCount
or ReplicasPerNodeGroup
if not specified.
replicaAvailabilityZones
- A list of Availability Zones to be used for the read replicas. The number of Availability Zones in this
list must match the value of ReplicaCount
or ReplicasPerNodeGroup
if not
specified.public String toString()
toString
in class Object
Object.toString()
public NodeGroupConfiguration clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.