public ListThingGroupsForThingResult withThingGroups(java.util.Collection<GroupNameAndArn> thingGroups) {
        setThingGroups(thingGroups);
        return this;
    }
<p>
The thing groups.
</p>

@param thingGroups
       The thing groups.
@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/ListThingGroupsForThingResult.java