public ProfileDetail withAttributeMappings(AttributeMapping... attributeMappings) {
        if (this.attributeMappings == null) {
            setAttributeMappings(new java.util.ArrayList<AttributeMapping>(attributeMappings.length));
        }
        for (AttributeMapping ele : attributeMappings) {
            this.attributeMappings.add(ele);
        }
        return this;
    }
<p>
A mapping applied to the authenticating end-entity certificate.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAttributeMappings(java.util.Collection)} or {@link #withAttributeMappings(java.util.Collection)} if
you want to override the existing values.
</p>

@param attributeMappings
       A mapping applied to the authenticating end-entity certificate.
@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