public ExpandedResultItem withDocumentAttributes(java.util.Collection<DocumentAttribute> documentAttributes) {
        setDocumentAttributes(documentAttributes);
        return this;
    }
<p>
An array of document attributes assigned to a document in the search results. For example, the document author
("_author") or the source URI ("_source_uri") of the document.
</p>

@param documentAttributes
       An array of document attributes assigned to a document in the search results. For example, the document
       author ("_author") or the source URI ("_source_uri") of the document.
@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/ExpandedResultItem.java