public QueryResultItem withDocumentExcerpt(TextWithHighlights documentExcerpt) {
        setDocumentExcerpt(documentExcerpt);
        return this;
    }
<p>
An extract of the text in the document. Contains information about highlighting the relevant terms in the
excerpt.
</p>

@param documentExcerpt
       An extract of the text in the document. Contains information about highlighting the relevant terms in the
       excerpt.
@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/QueryResultItem.java