public void setUserGroups(java.util.Collection<UserGroup> userGroups) {
        if (userGroups == null) {
            this.userGroups = null;
            return;
        }

        this.userGroups = new com.amazonaws.internal.SdkInternalList<UserGroup>(userGroups);
    }
<p>
Returns a list of user groups.
</p>

@param userGroups
       Returns a list of user groups.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/DescribeUserGroupsResult.java