@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyReplicationGroupShardConfigurationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
 Represents the input for a ModifyReplicationGroupShardConfiguration operation.
 
NOOP| Constructor and Description | 
|---|
| ModifyReplicationGroupShardConfigurationRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| ModifyReplicationGroupShardConfigurationRequest | clone()Creates a shallow clone of this object for all fields except the handler context. | 
| boolean | equals(Object obj) | 
| Boolean | getApplyImmediately()
 Indicates that the shard reconfiguration process begins immediately. | 
| Integer | getNodeGroupCount()
 The number of node groups (shards) that results from the modification of the shard configuration. | 
| List<String> | getNodeGroupsToRemove()
 If the value of  NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required. | 
| List<String> | getNodeGroupsToRetain()
 If the value of  NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required. | 
| String | getReplicationGroupId()
 The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be
 configured. | 
| List<ReshardingConfiguration> | getReshardingConfiguration()
 Specifies the preferred availability zones for each node group in the cluster. | 
| int | hashCode() | 
| Boolean | isApplyImmediately()
 Indicates that the shard reconfiguration process begins immediately. | 
| void | setApplyImmediately(Boolean applyImmediately)
 Indicates that the shard reconfiguration process begins immediately. | 
| void | setNodeGroupCount(Integer nodeGroupCount)
 The number of node groups (shards) that results from the modification of the shard configuration. | 
| void | setNodeGroupsToRemove(Collection<String> nodeGroupsToRemove)
 If the value of  NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required. | 
| void | setNodeGroupsToRetain(Collection<String> nodeGroupsToRetain)
 If the value of  NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required. | 
| void | setReplicationGroupId(String replicationGroupId)
 The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be
 configured. | 
| void | setReshardingConfiguration(Collection<ReshardingConfiguration> reshardingConfiguration)
 Specifies the preferred availability zones for each node group in the cluster. | 
| String | toString()Returns a string representation of this object. | 
| ModifyReplicationGroupShardConfigurationRequest | withApplyImmediately(Boolean applyImmediately)
 Indicates that the shard reconfiguration process begins immediately. | 
| ModifyReplicationGroupShardConfigurationRequest | withNodeGroupCount(Integer nodeGroupCount)
 The number of node groups (shards) that results from the modification of the shard configuration. | 
| ModifyReplicationGroupShardConfigurationRequest | withNodeGroupsToRemove(Collection<String> nodeGroupsToRemove)
 If the value of  NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required. | 
| ModifyReplicationGroupShardConfigurationRequest | withNodeGroupsToRemove(String... nodeGroupsToRemove)
 If the value of  NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required. | 
| ModifyReplicationGroupShardConfigurationRequest | withNodeGroupsToRetain(Collection<String> nodeGroupsToRetain)
 If the value of  NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required. | 
| ModifyReplicationGroupShardConfigurationRequest | withNodeGroupsToRetain(String... nodeGroupsToRetain)
 If the value of  NodeGroupCountis less than the current number of node groups (shards), then eitherNodeGroupsToRemoveorNodeGroupsToRetainis required. | 
| ModifyReplicationGroupShardConfigurationRequest | withReplicationGroupId(String replicationGroupId)
 The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be
 configured. | 
| ModifyReplicationGroupShardConfigurationRequest | withReshardingConfiguration(Collection<ReshardingConfiguration> reshardingConfiguration)
 Specifies the preferred availability zones for each node group in the cluster. | 
| ModifyReplicationGroupShardConfigurationRequest | withReshardingConfiguration(ReshardingConfiguration... reshardingConfiguration)
 Specifies the preferred availability zones for each node group in the cluster. | 
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic ModifyReplicationGroupShardConfigurationRequest()
public void setReplicationGroupId(String replicationGroupId)
The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be configured.
replicationGroupId - The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be
        configured.public String getReplicationGroupId()
The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be configured.
public ModifyReplicationGroupShardConfigurationRequest withReplicationGroupId(String replicationGroupId)
The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be configured.
replicationGroupId - The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be
        configured.public void setNodeGroupCount(Integer nodeGroupCount)
The number of node groups (shards) that results from the modification of the shard configuration.
nodeGroupCount - The number of node groups (shards) that results from the modification of the shard configuration.public Integer getNodeGroupCount()
The number of node groups (shards) that results from the modification of the shard configuration.
public ModifyReplicationGroupShardConfigurationRequest withNodeGroupCount(Integer nodeGroupCount)
The number of node groups (shards) that results from the modification of the shard configuration.
nodeGroupCount - The number of node groups (shards) that results from the modification of the shard configuration.public void setApplyImmediately(Boolean applyImmediately)
 Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for
 this parameter is true.
 
Value: true
applyImmediately - Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value
        for this parameter is true.
        Value: true
public Boolean getApplyImmediately()
 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 ModifyReplicationGroupShardConfigurationRequest withApplyImmediately(Boolean applyImmediately)
 Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for
 this parameter is true.
 
Value: true
applyImmediately - Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value
        for this parameter is true.
        Value: true
public Boolean isApplyImmediately()
 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> getReshardingConfiguration()
 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).
 
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 void setReshardingConfiguration(Collection<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).
 
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).
public ModifyReplicationGroupShardConfigurationRequest withReshardingConfiguration(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).
 
 NOTE: This method appends the values to the existing list (if any). Use
 setReshardingConfiguration(java.util.Collection) or
 withReshardingConfiguration(java.util.Collection) if you want to override the existing values.
 
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).
public ModifyReplicationGroupShardConfigurationRequest withReshardingConfiguration(Collection<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).
 
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).
public List<String> getNodeGroupsToRemove()
 If the value of NodeGroupCount is less than the current number of node groups (shards), then either
 NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRemove
 is a list of NodeGroupIds to remove from the cluster.
 
 ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove from the
 cluster.
 
NodeGroupCount is less than the current number of node groups (shards), then
         either NodeGroupsToRemove or NodeGroupsToRetain is required.
         NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster.
         
         ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove
         from the cluster.
public void setNodeGroupsToRemove(Collection<String> nodeGroupsToRemove)
 If the value of NodeGroupCount is less than the current number of node groups (shards), then either
 NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRemove
 is a list of NodeGroupIds to remove from the cluster.
 
 ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove from the
 cluster.
 
nodeGroupsToRemove - If the value of NodeGroupCount is less than the current number of node groups (shards), then
        either NodeGroupsToRemove or NodeGroupsToRetain is required.
        NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster.
        
        ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove
        from the cluster.
public ModifyReplicationGroupShardConfigurationRequest withNodeGroupsToRemove(String... nodeGroupsToRemove)
 If the value of NodeGroupCount is less than the current number of node groups (shards), then either
 NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRemove
 is a list of NodeGroupIds to remove from the cluster.
 
 ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove from the
 cluster.
 
 NOTE: This method appends the values to the existing list (if any). Use
 setNodeGroupsToRemove(java.util.Collection) or withNodeGroupsToRemove(java.util.Collection) if
 you want to override the existing values.
 
nodeGroupsToRemove - If the value of NodeGroupCount is less than the current number of node groups (shards), then
        either NodeGroupsToRemove or NodeGroupsToRetain is required.
        NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster.
        
        ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove
        from the cluster.
public ModifyReplicationGroupShardConfigurationRequest withNodeGroupsToRemove(Collection<String> nodeGroupsToRemove)
 If the value of NodeGroupCount is less than the current number of node groups (shards), then either
 NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRemove
 is a list of NodeGroupIds to remove from the cluster.
 
 ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove from the
 cluster.
 
nodeGroupsToRemove - If the value of NodeGroupCount is less than the current number of node groups (shards), then
        either NodeGroupsToRemove or NodeGroupsToRetain is required.
        NodeGroupsToRemove is a list of NodeGroupIds to remove from the cluster.
        
        ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove
        from the cluster.
public List<String> getNodeGroupsToRetain()
 If the value of NodeGroupCount is less than the current number of node groups (shards), then either
 NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRetain
 is a list of NodeGroupIds to retain in the cluster.
 
 ElastiCache for Redis will attempt to remove all node groups except those listed by
 NodeGroupsToRetain from the cluster.
 
NodeGroupCount is less than the current number of node groups (shards), then
         either NodeGroupsToRemove or NodeGroupsToRetain is required.
         NodeGroupsToRetain is a list of NodeGroupIds to retain in the cluster.
         
         ElastiCache for Redis will attempt to remove all node groups except those listed by
         NodeGroupsToRetain from the cluster.
public void setNodeGroupsToRetain(Collection<String> nodeGroupsToRetain)
 If the value of NodeGroupCount is less than the current number of node groups (shards), then either
 NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRetain
 is a list of NodeGroupIds to retain in the cluster.
 
 ElastiCache for Redis will attempt to remove all node groups except those listed by
 NodeGroupsToRetain from the cluster.
 
nodeGroupsToRetain - If the value of NodeGroupCount is less than the current number of node groups (shards), then
        either NodeGroupsToRemove or NodeGroupsToRetain is required.
        NodeGroupsToRetain is a list of NodeGroupIds to retain in the cluster.
        
        ElastiCache for Redis will attempt to remove all node groups except those listed by
        NodeGroupsToRetain from the cluster.
public ModifyReplicationGroupShardConfigurationRequest withNodeGroupsToRetain(String... nodeGroupsToRetain)
 If the value of NodeGroupCount is less than the current number of node groups (shards), then either
 NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRetain
 is a list of NodeGroupIds to retain in the cluster.
 
 ElastiCache for Redis will attempt to remove all node groups except those listed by
 NodeGroupsToRetain from the cluster.
 
 NOTE: This method appends the values to the existing list (if any). Use
 setNodeGroupsToRetain(java.util.Collection) or withNodeGroupsToRetain(java.util.Collection) if
 you want to override the existing values.
 
nodeGroupsToRetain - If the value of NodeGroupCount is less than the current number of node groups (shards), then
        either NodeGroupsToRemove or NodeGroupsToRetain is required.
        NodeGroupsToRetain is a list of NodeGroupIds to retain in the cluster.
        
        ElastiCache for Redis will attempt to remove all node groups except those listed by
        NodeGroupsToRetain from the cluster.
public ModifyReplicationGroupShardConfigurationRequest withNodeGroupsToRetain(Collection<String> nodeGroupsToRetain)
 If the value of NodeGroupCount is less than the current number of node groups (shards), then either
 NodeGroupsToRemove or NodeGroupsToRetain is required. NodeGroupsToRetain
 is a list of NodeGroupIds to retain in the cluster.
 
 ElastiCache for Redis will attempt to remove all node groups except those listed by
 NodeGroupsToRetain from the cluster.
 
nodeGroupsToRetain - If the value of NodeGroupCount is less than the current number of node groups (shards), then
        either NodeGroupsToRemove or NodeGroupsToRetain is required.
        NodeGroupsToRetain is a list of NodeGroupIds to retain in the cluster.
        
        ElastiCache for Redis will attempt to remove all node groups except those listed by
        NodeGroupsToRetain from the cluster.
public String toString()
toString in class ObjectObject.toString()public ModifyReplicationGroupShardConfigurationRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()