public QueryResult withFacetResults(FacetResult... facetResults) {
        if (this.facetResults == null) {
            setFacetResults(new java.util.ArrayList<FacetResult>(facetResults.length));
        }
        for (FacetResult ele : facetResults) {
            this.facetResults.add(ele);
        }
        return this;
    }
<p>
Contains the facet results. A <code>FacetResult</code> contains the counts for each field/attribute key that was
specified in the <code>Facets</code> input parameter.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFacetResults(java.util.Collection)} or {@link #withFacetResults(java.util.Collection)} if you want to
override the existing values.
</p>

@param facetResults
       Contains the facet results. A <code>FacetResult</code> contains the counts for each field/attribute key
       that was specified in the <code>Facets</code> input parameter.
@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/QueryResult.java