/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.kendra.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class QueryResult extends com.amazonaws.AmazonWebServiceResult
* The identifier for the search. You also use
* The results of the search.
*
* Contains the facet results. A
* The total number of items found by the search. However, you can only retrieve up to 100 items. For example, if
* the search found 192 items, you can only retrieve the first 100 of the items.
*
* A list of warning codes and their messages on problems with your query.
*
* Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the
* query. For examples of invalid query syntax, see Searching
* with advanced query syntax.
*
* A list of information related to suggested spell corrections for a query.
*
* The list of featured result items. Featured results are displayed at the top of the search results page, placed
* above all other results for certain queries. If there's an exact match of a query, then certain documents are
* featured in the search results.
*
* The identifier for the search. You also use
* The identifier for the search. You also use
* The identifier for the search. You also use
* The results of the search.
*
* The results of the search.
*
* The results of the search.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setResultItems(java.util.Collection)} or {@link #withResultItems(java.util.Collection)} if you want to
* override the existing values.
*
* The results of the search.
*
* Contains the facet results. A
* Contains the facet results. A
* Contains the facet results. A
* NOTE: 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.
*
* Contains the facet results. A
* The total number of items found by the search. However, you can only retrieve up to 100 items. For example, if
* the search found 192 items, you can only retrieve the first 100 of the items.
*
* The total number of items found by the search. However, you can only retrieve up to 100 items. For example, if
* the search found 192 items, you can only retrieve the first 100 of the items.
*
* The total number of items found by the search. However, you can only retrieve up to 100 items. For example, if
* the search found 192 items, you can only retrieve the first 100 of the items.
*
* A list of warning codes and their messages on problems with your query.
*
* Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the
* query. For examples of invalid query syntax, see Searching
* with advanced query syntax.
* QueryId
to identify the search when using the SubmitFeedback API.
* FacetResult
contains the counts for each field/attribute key that was
* specified in the Facets
input parameter.
* QueryId
to identify the search when using the SubmitFeedback API.
* QueryId
to identify the search when using the SubmitFeedback
* API.
*/
public void setQueryId(String queryId) {
this.queryId = queryId;
}
/**
* QueryId
to identify the search when using the SubmitFeedback API.
* QueryId
to identify the search when using the SubmitFeedback
* API.
*/
public String getQueryId() {
return this.queryId;
}
/**
* QueryId
to identify the search when using the SubmitFeedback API.
* QueryId
to identify the search when using the SubmitFeedback
* API.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QueryResult withQueryId(String queryId) {
setQueryId(queryId);
return this;
}
/**
* FacetResult
contains the counts for each field/attribute key that was
* specified in the Facets
input parameter.
* FacetResult
contains the counts for each field/attribute key
* that was specified in the Facets
input parameter.
*/
public java.util.ListFacetResult
contains the counts for each field/attribute key that was
* specified in the Facets
input parameter.
* FacetResult
contains the counts for each field/attribute key
* that was specified in the Facets
input parameter.
*/
public void setFacetResults(java.util.CollectionFacetResult
contains the counts for each field/attribute key that was
* specified in the Facets
input parameter.
* FacetResult
contains the counts for each field/attribute key
* that was specified in the Facets
input parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QueryResult withFacetResults(FacetResult... facetResults) {
if (this.facetResults == null) {
setFacetResults(new java.util.ArrayListFacetResult
contains the counts for each field/attribute key that was
* specified in the Facets
input parameter.
* FacetResult
contains the counts for each field/attribute key
* that was specified in the Facets
input parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QueryResult withFacetResults(java.util.Collection
* Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in
* the query. For examples of invalid query syntax, see Searching with advanced query syntax.
*/
public java.util.List
* A list of warning codes and their messages on problems with your query.
*
* Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the
* query. For examples of invalid query syntax, see Searching
* with advanced query syntax.
*
* Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in
* the query. For examples of invalid query syntax, see Searching with advanced query syntax.
*/
public void setWarnings(java.util.Collection
* A list of warning codes and their messages on problems with your query.
*
* Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the
* query. For examples of invalid query syntax, see Searching
* with advanced query syntax.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setWarnings(java.util.Collection)} or {@link #withWarnings(java.util.Collection)} if you want to override
* the existing values.
*
* Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in
* the query. For examples of invalid query syntax, see Searching with advanced query syntax.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QueryResult withWarnings(Warning... warnings) {
if (this.warnings == null) {
setWarnings(new java.util.ArrayList
* A list of warning codes and their messages on problems with your query.
*
* Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in the
* query. For examples of invalid query syntax, see Searching
* with advanced query syntax.
*
* Amazon Kendra currently only supports one type of warning, which is a warning on invalid syntax used in
* the query. For examples of invalid query syntax, see Searching with advanced query syntax.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QueryResult withWarnings(java.util.Collection
* A list of information related to suggested spell corrections for a query.
*
* A list of information related to suggested spell corrections for a query.
*
* A list of information related to suggested spell corrections for a query.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSpellCorrectedQueries(java.util.Collection)} or
* {@link #withSpellCorrectedQueries(java.util.Collection)} if you want to override the existing values.
*
* A list of information related to suggested spell corrections for a query.
*
* The list of featured result items. Featured results are displayed at the top of the search results page, placed
* above all other results for certain queries. If there's an exact match of a query, then certain documents are
* featured in the search results.
*
* The list of featured result items. Featured results are displayed at the top of the search results page, placed
* above all other results for certain queries. If there's an exact match of a query, then certain documents are
* featured in the search results.
*
* The list of featured result items. Featured results are displayed at the top of the search results page, placed
* above all other results for certain queries. If there's an exact match of a query, then certain documents are
* featured in the search results.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFeaturedResultsItems(java.util.Collection)} or {@link #withFeaturedResultsItems(java.util.Collection)}
* if you want to override the existing values.
*
* The list of featured result items. Featured results are displayed at the top of the search results page, placed
* above all other results for certain queries. If there's an exact match of a query, then certain documents are
* featured in the search results.
*