public ListTrustAnchorsResult withTrustAnchors(TrustAnchorDetail... trustAnchors) {
        if (this.trustAnchors == null) {
            setTrustAnchors(new java.util.ArrayList<TrustAnchorDetail>(trustAnchors.length));
        }
        for (TrustAnchorDetail ele : trustAnchors) {
            this.trustAnchors.add(ele);
        }
        return this;
    }
<p>
A list of trust anchors.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTrustAnchors(java.util.Collection)} or {@link #withTrustAnchors(java.util.Collection)} if you want to
override the existing values.
</p>

@param trustAnchors
       A list of trust anchors.
@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/ListTrustAnchorsResult.java