@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 |
getNodeGroupId()
Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node group these
configuration values apply to.
|
String |
getPrimaryAvailabilityZone()
The Availability Zone where the primary node of this node group (shard) is launched.
|
String |
getPrimaryOutpostArn()
The outpost ARN of the primary node.
|
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).
|
List<String> |
getReplicaOutpostArns()
The outpost ARN of the node replicas.
|
String |
getSlots()
A string that specifies the keyspace for a particular node group.
|
int |
hashCode() |
void |
setNodeGroupId(String nodeGroupId)
Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node group these
configuration values apply to.
|
void |
setPrimaryAvailabilityZone(String primaryAvailabilityZone)
The Availability Zone where the primary node of this node group (shard) is launched.
|
void |
setPrimaryOutpostArn(String primaryOutpostArn)
The outpost ARN of the primary node.
|
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 |
setReplicaOutpostArns(Collection<String> replicaOutpostArns)
The outpost ARN of the node replicas.
|
void |
setSlots(String slots)
A string that specifies the keyspace for a particular node group.
|
String |
toString()
Returns a string representation of this object.
|
NodeGroupConfiguration |
withNodeGroupId(String nodeGroupId)
Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node group these
configuration values apply to.
|
NodeGroupConfiguration |
withPrimaryAvailabilityZone(String primaryAvailabilityZone)
The Availability Zone where the primary node of this node group (shard) is launched.
|
NodeGroupConfiguration |
withPrimaryOutpostArn(String primaryOutpostArn)
The outpost ARN of the primary node.
|
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 |
withReplicaOutpostArns(Collection<String> replicaOutpostArns)
The outpost ARN of the node replicas.
|
NodeGroupConfiguration |
withReplicaOutpostArns(String... replicaOutpostArns)
The outpost ARN of the node replicas.
|
NodeGroupConfiguration |
withSlots(String slots)
A string that specifies the keyspace for a particular node group.
|
public void setNodeGroupId(String nodeGroupId)
Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node group these configuration values apply to.
nodeGroupId
- Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node group these
configuration values apply to.public String getNodeGroupId()
Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node group these configuration values apply to.
public NodeGroupConfiguration withNodeGroupId(String nodeGroupId)
Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node group these configuration values apply to.
nodeGroupId
- Either the ElastiCache (Redis OSS) supplied 4-digit id or a user supplied id for the node group these
configuration values apply to.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 void setPrimaryOutpostArn(String primaryOutpostArn)
The outpost ARN of the primary node.
primaryOutpostArn
- The outpost ARN of the primary node.public String getPrimaryOutpostArn()
The outpost ARN of the primary node.
public NodeGroupConfiguration withPrimaryOutpostArn(String primaryOutpostArn)
The outpost ARN of the primary node.
primaryOutpostArn
- The outpost ARN of the primary node.public List<String> getReplicaOutpostArns()
The outpost ARN of the node replicas.
public void setReplicaOutpostArns(Collection<String> replicaOutpostArns)
The outpost ARN of the node replicas.
replicaOutpostArns
- The outpost ARN of the node replicas.public NodeGroupConfiguration withReplicaOutpostArns(String... replicaOutpostArns)
The outpost ARN of the node replicas.
NOTE: This method appends the values to the existing list (if any). Use
setReplicaOutpostArns(java.util.Collection)
or withReplicaOutpostArns(java.util.Collection)
if
you want to override the existing values.
replicaOutpostArns
- The outpost ARN of the node replicas.public NodeGroupConfiguration withReplicaOutpostArns(Collection<String> replicaOutpostArns)
The outpost ARN of the node replicas.
replicaOutpostArns
- The outpost ARN of the node replicas.public String toString()
toString
in class Object
Object.toString()
public NodeGroupConfiguration clone()