public void setGroups(java.util.Collection<GroupType> groups) {
        if (groups == null) {
            this.groups = null;
            return;
        }

        this.groups = new java.util.ArrayList<GroupType>(groups);
    }
<p>
The group objects for the groups.
</p>

@param groups
       The group objects for the groups.
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/ListGroupsResult.java