public CreateSecurityProfileRequest withHierarchyRestrictedResources(String... hierarchyRestrictedResources) {
        if (this.hierarchyRestrictedResources == null) {
            setHierarchyRestrictedResources(new java.util.ArrayList<String>(hierarchyRestrictedResources.length));
        }
        for (String ele : hierarchyRestrictedResources) {
            this.hierarchyRestrictedResources.add(ele);
        }
        return this;
    }
<p>
The list of resources that a security profile applies hierarchy restrictions to in Amazon Connect. Following are
acceptable ResourceNames: <code>User</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setHierarchyRestrictedResources(java.util.Collection)} or
{@link #withHierarchyRestrictedResources(java.util.Collection)} if you want to override the existing values.
</p>

@param hierarchyRestrictedResources
       The list of resources that a security profile applies hierarchy restrictions to in Amazon Connect.
       Following are acceptable ResourceNames: <code>User</code>.
@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/CreateSecurityProfileRequest.java