public void setGlobalNodeGroupsToRemove(java.util.Collection<String> globalNodeGroupsToRemove) {
        if (globalNodeGroupsToRemove == null) {
            this.globalNodeGroupsToRemove = null;
            return;
        }

        this.globalNodeGroupsToRemove = new com.amazonaws.internal.SdkInternalList<String>(globalNodeGroupsToRemove);
    }
<p>
If the value of NodeGroupCount is less than the current number of node groups (shards), then either
NodeGroupsToRemove or NodeGroupsToRetain is required. GlobalNodeGroupsToRemove is a list of NodeGroupIds to
remove from the cluster. ElastiCache (Redis OSS) will attempt to remove all node groups listed by
GlobalNodeGroupsToRemove from the cluster.
</p>

@param globalNodeGroupsToRemove
       If the value of NodeGroupCount is less than the current number of node groups (shards), then either
       NodeGroupsToRemove or NodeGroupsToRetain is required. GlobalNodeGroupsToRemove is a list of NodeGroupIds
       to remove from the cluster. ElastiCache (Redis OSS) will attempt to remove all node groups listed by
       GlobalNodeGroupsToRemove from the cluster.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/DecreaseNodeGroupsInGlobalReplicationGroupRequest.java