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

        this.groups = new com.amazonaws.internal.SdkInternalList<Group>(groups);
    }
<p>
A list of groups.
</p>

@param groups
       A list of groups.
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/ListGroupsResult.java