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;
    }
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>
A key policy document, 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
A key policy document, in JSON format.
@return Returns a reference to this object so that method calls can be chained together.