public java.util.List<UserGroup> getUserGroups() {
        if (userGroups == null) {
            userGroups = new com.amazonaws.internal.SdkInternalList<UserGroup>();
        }
        return userGroups;
    }
<p>
Returns a list of user groups.
</p>

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