public SourceDocument withAdditionalAttributes(DocumentAttribute... additionalAttributes) {
        if (this.additionalAttributes == null) {
            setAdditionalAttributes(new java.util.ArrayList<DocumentAttribute>(additionalAttributes.length));
        }
        for (DocumentAttribute ele : additionalAttributes) {
            this.additionalAttributes.add(ele);
        }
        return this;
    }
<p>
The additional fields/attributes to include in the response. You can use additional fields to provide extra
information in the response. Additional fields are not used to based suggestions on.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAdditionalAttributes(java.util.Collection)} or {@link #withAdditionalAttributes(java.util.Collection)}
if you want to override the existing values.
</p>

@param additionalAttributes
       The additional fields/attributes to include in the response. You can use additional fields to provide
       extra information in the response. Additional fields are not used to based suggestions on.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/SourceDocument.java