public void setThingGroups(java.util.Collection<GroupNameAndArn> thingGroups) {
        if (thingGroups == null) {
            this.thingGroups = null;
            return;
        }

        this.thingGroups = new java.util.ArrayList<GroupNameAndArn>(thingGroups);
    }
<p>
The thing groups.
</p>

@param thingGroups
       The thing groups.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ListThingGroupsForThingResult.java