@Generated(value="software.amazon.awssdk:codegen") public class ModifyReplicationGroupShardConfigurationRequest extends ElastiCacheRequest implements ToCopyableBuilder<ModifyReplicationGroupShardConfigurationRequest.Builder,ModifyReplicationGroupShardConfigurationRequest>
Represents the input for a ModifyReplicationGroupShardConfiguration
operation.
Modifier and Type | Class and Description |
---|---|
static interface |
ModifyReplicationGroupShardConfigurationRequest.Builder |
Modifier and Type | Method and Description |
---|---|
Boolean |
applyImmediately()
Indicates that the shard reconfiguration process begins immediately.
|
static ModifyReplicationGroupShardConfigurationRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
Integer |
nodeGroupCount()
The number of node groups (shards) that results from the modification of the shard configuration.
|
List<String> |
nodeGroupsToRemove()
If the value of
NodeGroupCount is less than the current number of node groups (shards),
NodeGroupsToRemove is a required list of node group ids to remove from the cluster. |
String |
replicationGroupId()
The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be
configured.
|
List<ReshardingConfiguration> |
reshardingConfiguration()
Specifies the preferred availability zones for each node group in the cluster.
|
static Class<? extends ModifyReplicationGroupShardConfigurationRequest.Builder> |
serializableBuilderClass() |
ModifyReplicationGroupShardConfigurationRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public String replicationGroupId()
The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be configured.
public Integer nodeGroupCount()
The number of node groups (shards) that results from the modification of the shard configuration.
public Boolean applyImmediately()
Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for
this parameter is true
.
Value: true
true
.
Value: true
public List<ReshardingConfiguration> reshardingConfiguration()
Specifies the preferred availability zones for each node group in the cluster. If the value of
NodeGroupCount
is greater than the current number of node groups (shards), you can use this
parameter to specify the preferred availability zones of the cluster's shards. If you omit this parameter
ElastiCache selects availability zones for you.
You can specify this parameter only if the value of NodeGroupCount
is greater than the current
number of node groups (shards).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
NodeGroupCount
is greater than the current number of node groups (shards), you can use this
parameter to specify the preferred availability zones of the cluster's shards. If you omit this parameter
ElastiCache selects availability zones for you.
You can specify this parameter only if the value of NodeGroupCount
is greater than the
current number of node groups (shards).
public List<String> nodeGroupsToRemove()
If the value of NodeGroupCount
is less than the current number of node groups (shards),
NodeGroupsToRemove
is a required list of node group ids to remove from the cluster.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
NodeGroupCount
is less than the current number of node groups (shards),
NodeGroupsToRemove
is a required list of node group ids to remove from the cluster.public ModifyReplicationGroupShardConfigurationRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ModifyReplicationGroupShardConfigurationRequest.Builder,ModifyReplicationGroupShardConfigurationRequest>
toBuilder
in class ElastiCacheRequest
public static ModifyReplicationGroupShardConfigurationRequest.Builder builder()
public static Class<? extends ModifyReplicationGroupShardConfigurationRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.