public DocumentText withHighlights(Highlight... highlights) {
        if (this.highlights == null) {
            setHighlights(new java.util.ArrayList<Highlight>(highlights.length));
        }
        for (Highlight ele : highlights) {
            this.highlights.add(ele);
        }
        return this;
    }
<p>
Highlights in the document text.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setHighlights(java.util.Collection)} or {@link #withHighlights(java.util.Collection)} if you want to
override the existing values.
</p>

@param highlights
       Highlights in the document text.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-qconnect/src/main/java/com/amazonaws/services/qconnect/model/DocumentText.java