public DecreaseReplicaCountRequest withReplicaConfiguration(ConfigureShard... replicaConfiguration) {
        if (this.replicaConfiguration == null) {
            setReplicaConfiguration(new com.amazonaws.internal.SdkInternalList<ConfigureShard>(replicaConfiguration.length));
        }
        for (ConfigureShard ele : replicaConfiguration) {
            this.replicaConfiguration.add(ele);
        }
        return this;
    }
<p>
A list of <code>ConfigureShard</code> objects that can be used to configure each shard in a Redis OSS (cluster
mode enabled) replication group. The <code>ConfigureShard</code> has three members: <code>NewReplicaCount</code>,
<code>NodeGroupId</code>, and <code>PreferredAvailabilityZones</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setReplicaConfiguration(java.util.Collection)} or {@link #withReplicaConfiguration(java.util.Collection)}
if you want to override the existing values.
</p>

@param replicaConfiguration
       A list of <code>ConfigureShard</code> objects that can be used to configure each shard in a Redis OSS
       (cluster mode enabled) replication group. The <code>ConfigureShard</code> has three members:
       <code>NewReplicaCount</code>, <code>NodeGroupId</code>, and <code>PreferredAvailabilityZones</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/DecreaseReplicaCountRequest.java