public GetResourcePoliciesResult withResourcePolicies(ResourcePolicy... resourcePolicies) {
        if (this.resourcePolicies == null) {
            setResourcePolicies(new java.util.ArrayList<ResourcePolicy>(resourcePolicies.length));
        }
        for (ResourcePolicy ele : resourcePolicies) {
            this.resourcePolicies.add(ele);
        }
        return this;
    }
<p>
Details about the resource policy attached to the response plan.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResourcePolicies(java.util.Collection)} or {@link #withResourcePolicies(java.util.Collection)} if you
want to override the existing values.
</p>

@param resourcePolicies
       Details about the resource policy attached to the response plan.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssmincidents/src/main/java/com/amazonaws/services/ssmincidents/model/GetResourcePoliciesResult.java