public ListManagedPoliciesInPermissionSetResult withAttachedManagedPolicies(AttachedManagedPolicy... attachedManagedPolicies) {
        if (this.attachedManagedPolicies == null) {
            setAttachedManagedPolicies(new java.util.ArrayList<AttachedManagedPolicy>(attachedManagedPolicies.length));
        }
        for (AttachedManagedPolicy ele : attachedManagedPolicies) {
            this.attachedManagedPolicies.add(ele);
        }
        return this;
    }
<p>
An array of the <a>AttachedManagedPolicy</a> data type object.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAttachedManagedPolicies(java.util.Collection)} or
{@link #withAttachedManagedPolicies(java.util.Collection)} if you want to override the existing values.
</p>

@param attachedManagedPolicies
       An array of the <a>AttachedManagedPolicy</a> data type object.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssoadmin/src/main/java/com/amazonaws/services/ssoadmin/model/ListManagedPoliciesInPermissionSetResult.java