public GetQuerySuggestionsResult withSuggestions(Suggestion... suggestions) {
        if (this.suggestions == null) {
            setSuggestions(new java.util.ArrayList<Suggestion>(suggestions.length));
        }
        for (Suggestion ele : suggestions) {
            this.suggestions.add(ele);
        }
        return this;
    }
<p>
A list of query suggestions for an index.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSuggestions(java.util.Collection)} or {@link #withSuggestions(java.util.Collection)} if you want to
override the existing values.
</p>

@param suggestions
       A list of query suggestions for an index.
@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/GetQuerySuggestionsResult.java