code: public void setNodeGroupsToRemove(java.util.Collection<String> nodeGroupsToRemove) {
          if (nodeGroupsToRemove == null) {
              this.nodeGroupsToRemove = null;
              return;
          }
  
          this.nodeGroupsToRemove = new com.amazonaws.internal.SdkInternalList<String>(nodeGroupsToRemove);
      }
docs: <p>
  If the value of <code>NodeGroupCount</code> is less than the current number of node groups (shards), the
  <code>NodeGroupsToRemove</code> or <code>NodeGroupsToRetain</code> is a required list of node group ids to remove
  from or retain in the cluster.
  </p>
  <p>
  ElastiCache for Redis will attempt to remove all node groups listed by <code>NodeGroupsToRemove</code> from the
  cluster.
  </p>
  
  @param nodeGroupsToRemove
  If the value of <code>NodeGroupCount</code> is less than the current number of node groups (shards), the
  <code>NodeGroupsToRemove</code> or <code>NodeGroupsToRetain</code> is a required list of node group ids to
  remove from or retain in the cluster.</p>
  <p>
  ElastiCache for Redis will attempt to remove all node groups listed by <code>NodeGroupsToRemove</code>
  from the cluster.