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

        this.thingGroupsToRemove = new java.util.ArrayList<String>(thingGroupsToRemove);
    }
<p>
The groups from which the thing will be removed.
</p>

@param thingGroupsToRemove
       The groups from which the thing will be removed.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/UpdateThingGroupsForThingRequest.java