public GetResourcePoliciesResult withPolicies(String... policies) {
        if (this.policies == null) {
            setPolicies(new java.util.ArrayList<String>(policies.length));
        }
        for (String ele : policies) {
            this.policies.add(ele);
        }
        return this;
    }
<p>
An array of resource policy documents in JSON format.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPolicies(java.util.Collection)} or {@link #withPolicies(java.util.Collection)} if you want to override
the existing values.
</p>

@param policies
       An array of resource policy documents in JSON format.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/model/GetResourcePoliciesResult.java