public ModifyCacheClusterRequest withCacheNodeIdsToRemove(String... cacheNodeIdsToRemove) {
        if (this.cacheNodeIdsToRemove == null) {
            setCacheNodeIdsToRemove(new com.amazonaws.internal.SdkInternalList<String>(cacheNodeIdsToRemove.length));
        }
        for (String ele : cacheNodeIdsToRemove) {
            this.cacheNodeIdsToRemove.add(ele);
        }
        return this;
    }
<p>
A list of cache node IDs to be removed. A node ID is a numeric identifier (0001, 0002, etc.). This parameter is
only valid when <code>NumCacheNodes</code> is less than the existing number of cache nodes. The number of cache
node IDs supplied in this parameter must match the difference between the existing number of cache nodes in the
cluster or pending cache nodes, whichever is greater, and the value of <code>NumCacheNodes</code> in the request.
</p>
<p>
For example: If you have 3 active cache nodes, 7 pending cache nodes, and the number of cache nodes in this
<code>ModifyCacheCluster</code> call is 5, you must list 2 (7 - 5) cache node IDs to remove.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCacheNodeIdsToRemove(java.util.Collection)} or {@link #withCacheNodeIdsToRemove(java.util.Collection)}
if you want to override the existing values.
</p>

@param cacheNodeIdsToRemove
       A list of cache node IDs to be removed. A node ID is a numeric identifier (0001, 0002, etc.). This
       parameter is only valid when <code>NumCacheNodes</code> is less than the existing number of cache nodes.
       The number of cache node IDs supplied in this parameter must match the difference between the existing
       number of cache nodes in the cluster or pending cache nodes, whichever is greater, and the value of
       <code>NumCacheNodes</code> in the request.</p>
       <p>
       For example: If you have 3 active cache nodes, 7 pending cache nodes, and the number of cache nodes in
       this <code>ModifyCacheCluster</code> call is 5, you must list 2 (7 - 5) cache node IDs to remove.
@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/ModifyCacheClusterRequest.java