public UserDataFilters withUserHierarchyGroups(String... userHierarchyGroups) {
        if (this.userHierarchyGroups == null) {
            setUserHierarchyGroups(new java.util.ArrayList<String>(userHierarchyGroups.length));
        }
        for (String ele : userHierarchyGroups) {
            this.userHierarchyGroups.add(ele);
        }
        return this;
    }
<p>
A UserHierarchyGroup ID or ARN.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setUserHierarchyGroups(java.util.Collection)} or {@link #withUserHierarchyGroups(java.util.Collection)}
if you want to override the existing values.
</p>

@param userHierarchyGroups
       A UserHierarchyGroup ID or ARN.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/UserDataFilters.java