code: public DescribeResourcePoliciesResult withResourcePolicies(ResourcePolicy... resourcePolicies) {
          if (this.resourcePolicies == null) {
              setResourcePolicies(new com.amazonaws.internal.SdkInternalList<ResourcePolicy>(resourcePolicies.length));
          }
          for (ResourcePolicy ele : resourcePolicies) {
              this.resourcePolicies.add(ele);
          }
          return this;
      }
docs: <p>
  The resource policies that exist in this account.
  </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
  The resource policies that exist in this account.
  @return Returns a reference to this object so that method calls can be chained together.