public UpdateThingGroupsForThingRequest withThingGroupsToRemove(String... thingGroupsToRemove) {
        if (this.thingGroupsToRemove == null) {
            setThingGroupsToRemove(new java.util.ArrayList<String>(thingGroupsToRemove.length));
        }
        for (String ele : thingGroupsToRemove) {
            this.thingGroupsToRemove.add(ele);
        }
        return this;
    }
<p>
The groups from which the thing will be removed.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setThingGroupsToRemove(java.util.Collection)} or {@link #withThingGroupsToRemove(java.util.Collection)}
if you want to override the existing values.
</p>

@param thingGroupsToRemove
       The groups from which the thing will be removed.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/UpdateThingGroupsForThingRequest.java