public ListAttachedUserPoliciesResult withAttachedPolicies(AttachedPolicy... attachedPolicies) {
        if (this.attachedPolicies == null) {
            setAttachedPolicies(new com.amazonaws.internal.SdkInternalList<AttachedPolicy>(attachedPolicies.length));
        }
        for (AttachedPolicy ele : attachedPolicies) {
            this.attachedPolicies.add(ele);
        }
        return this;
    }
<p>
A list of the attached policies.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAttachedPolicies(java.util.Collection)} or {@link #withAttachedPolicies(java.util.Collection)} if you
want to override the existing values.
</p>

@param attachedPolicies
       A list of the attached policies.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/ListAttachedUserPoliciesResult.java