public UpdateTrustStoreRequest withCertificatesToAdd(java.nio.ByteBuffer... certificatesToAdd) {
        if (this.certificatesToAdd == null) {
            setCertificatesToAdd(new java.util.ArrayList<java.nio.ByteBuffer>(certificatesToAdd.length));
        }
        for (java.nio.ByteBuffer ele : certificatesToAdd) {
            this.certificatesToAdd.add(ele);
        }
        return this;
    }
<p>
A list of CA certificates to add to the trust store.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCertificatesToAdd(java.util.Collection)} or {@link #withCertificatesToAdd(java.util.Collection)} if
you want to override the existing values.
</p>

@param certificatesToAdd
       A list of CA certificates to add to the trust store.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workspacesweb/src/main/java/com/amazonaws/services/workspacesweb/model/UpdateTrustStoreRequest.java