public SuggestionTextWithHighlights withHighlights(SuggestionHighlight... highlights) {
        if (this.highlights == null) {
            setHighlights(new java.util.ArrayList<SuggestionHighlight>(highlights.length));
        }
        for (SuggestionHighlight ele : highlights) {
            this.highlights.add(ele);
        }
        return this;
    }
<p>
The beginning and end of the query suggestion text that should be highlighted.
</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
       The beginning and end of the query suggestion text that should be highlighted.
@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/SuggestionTextWithHighlights.java