/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.elasticache.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DecreaseReplicaCountRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The id of the replication group from which you want to remove replica nodes. *

*/ private String replicationGroupId; /** *

* 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: *

* */ private Integer newReplicaCount; /** *

* 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. *

*/ private com.amazonaws.internal.SdkInternalList replicaConfiguration; /** *

* A list of the node ids to remove from the replication group or node group (shard). *

*/ private com.amazonaws.internal.SdkInternalList replicasToRemove; /** *

* If True, the number of replica nodes is decreased immediately. ApplyImmediately=False * is not currently supported. *

*/ private Boolean applyImmediately; /** *

* The id of the replication group from which you want to remove replica nodes. *

* * @param replicationGroupId * The id of the replication group from which you want to remove replica nodes. */ public void setReplicationGroupId(String replicationGroupId) { this.replicationGroupId = replicationGroupId; } /** *

* The id of the replication group from which you want to remove replica nodes. *

* * @return The id of the replication group from which you want to remove replica nodes. */ public String getReplicationGroupId() { return this.replicationGroupId; } /** *

* The id of the replication group from which you want to remove replica nodes. *

* * @param replicationGroupId * The id of the replication group from which you want to remove replica nodes. * @return Returns a reference to this object so that method calls can be chained together. */ public DecreaseReplicaCountRequest withReplicationGroupId(String replicationGroupId) { setReplicationGroupId(replicationGroupId); return this; } /** *

* 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: *

* * * @param 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: *

*