public ProfileDetail withManagedPolicyArns(String... managedPolicyArns) {
        if (this.managedPolicyArns == null) {
            setManagedPolicyArns(new java.util.ArrayList<String>(managedPolicyArns.length));
        }
        for (String ele : managedPolicyArns) {
            this.managedPolicyArns.add(ele);
        }
        return this;
    }
<p>
A list of managed policy ARNs that apply to the vended session credentials.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setManagedPolicyArns(java.util.Collection)} or {@link #withManagedPolicyArns(java.util.Collection)} if
you want to override the existing values.
</p>

@param managedPolicyArns
       A list of managed policy ARNs that apply to the vended session credentials.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iamrolesanywhere/src/main/java/com/amazonaws/services/iamrolesanywhere/model/ProfileDetail.java