code: public UserDetail withAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies) {
          if (this.attachedManagedPolicies == null) {
              setAttachedManagedPolicies(new com.amazonaws.internal.SdkInternalList<AttachedPolicy>(attachedManagedPolicies.length));
          }
          for (AttachedPolicy ele : attachedManagedPolicies) {
              this.attachedManagedPolicies.add(ele);
          }
          return this;
      }
docs: <p>
  A list of the managed policies attached to the user.
  </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
  A list of the managed policies attached to the user.
  @return Returns a reference to this object so that method calls can be chained together.