@Generated(value="software.amazon.awssdk:codegen") public final class DecreaseReplicaCountRequest extends ElastiCacheRequest implements ToCopyableBuilder<DecreaseReplicaCountRequest.Builder,DecreaseReplicaCountRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
DecreaseReplicaCountRequest.Builder |
Modifier and Type | Method and Description |
---|---|
Boolean |
applyImmediately()
If
True , the number of replica nodes is decreased immediately. |
static DecreaseReplicaCountRequest.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 |
newReplicaCount()
The number of read replica nodes you want at the completion of this operation.
|
List<ConfigureShard> |
replicaConfiguration()
A list of
ConfigureShard objects that can be used to configure each shard in a Redis (cluster mode
enabled) replication group. |
List<String> |
replicasToRemove()
A list of the node ids to remove from the replication group or node group (shard).
|
String |
replicationGroupId()
The id of the replication group from which you want to remove replica nodes.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DecreaseReplicaCountRequest.Builder> |
serializableBuilderClass() |
DecreaseReplicaCountRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String replicationGroupId()
The id of the replication group from which you want to remove replica nodes.
public Integer newReplicaCount()
The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.
The minimum number of replicas in a shard or replication group is:
Redis (cluster mode disabled)
If Multi-AZ with Automatic Failover is enabled: 1
If Multi-AZ with Automatic Failover is not enabled: 0
Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
The minimum number of replicas in a shard or replication group is:
Redis (cluster mode disabled)
If Multi-AZ with Automatic Failover is enabled: 1
If Multi-AZ with Automatic Failover is not enabled: 0
Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)
public List<ConfigureShard> replicaConfiguration()
A list of ConfigureShard
objects that can be used to configure each shard in a Redis (cluster mode
enabled) replication group. The ConfigureShard
has three members: NewReplicaCount
,
NodeGroupId
, and PreferredAvailabilityZones
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
ConfigureShard
objects that can be used to configure each shard in a Redis
(cluster mode enabled) replication group. The ConfigureShard
has three members:
NewReplicaCount
, NodeGroupId
, and PreferredAvailabilityZones
.public List<String> replicasToRemove()
A list of the node ids to remove from the replication group or node group (shard).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Boolean applyImmediately()
If True
, the number of replica nodes is decreased immediately. If False
, the number of
replica nodes is decreased during the next maintenance window.
True
, the number of replica nodes is decreased immediately. If False
, the
number of replica nodes is decreased during the next maintenance window.public DecreaseReplicaCountRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DecreaseReplicaCountRequest.Builder,DecreaseReplicaCountRequest>
toBuilder
in class ElastiCacheRequest
public static DecreaseReplicaCountRequest.Builder builder()
public static Class<? extends DecreaseReplicaCountRequest.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.