/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the kendra-2019-02-03.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Kendra.Model { /// /// This is the response object from the Query operation. /// public partial class QueryResponse : AmazonWebServiceResponse { private List _facetResults = new List(); private List _featuredResultsItems = new List(); private string _queryId; private List _resultItems = new List(); private List _spellCorrectedQueries = new List(); private int? _totalNumberOfResults; private List _warnings = new List(); /// /// Gets and sets the property FacetResults. /// /// Contains the facet results. A FacetResult contains the counts for each /// field/attribute key that was specified in the Facets input parameter. /// /// public List FacetResults { get { return this._facetResults; } set { this._facetResults = value; } } // Check to see if FacetResults property is set internal bool IsSetFacetResults() { return this._facetResults != null && this._facetResults.Count > 0; } /// /// Gets and sets the property FeaturedResultsItems. /// /// 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. /// /// public List FeaturedResultsItems { get { return this._featuredResultsItems; } set { this._featuredResultsItems = value; } } // Check to see if FeaturedResultsItems property is set internal bool IsSetFeaturedResultsItems() { return this._featuredResultsItems != null && this._featuredResultsItems.Count > 0; } /// /// Gets and sets the property QueryId. /// /// The identifier for the search. You also use QueryId to identify the search /// when using the SubmitFeedback /// API. /// /// [AWSProperty(Min=1, Max=36)] public string QueryId { get { return this._queryId; } set { this._queryId = value; } } // Check to see if QueryId property is set internal bool IsSetQueryId() { return this._queryId != null; } /// /// Gets and sets the property ResultItems. /// /// The results of the search. /// /// public List ResultItems { get { return this._resultItems; } set { this._resultItems = value; } } // Check to see if ResultItems property is set internal bool IsSetResultItems() { return this._resultItems != null && this._resultItems.Count > 0; } /// /// Gets and sets the property SpellCorrectedQueries. /// /// A list of information related to suggested spell corrections for a query. /// /// public List SpellCorrectedQueries { get { return this._spellCorrectedQueries; } set { this._spellCorrectedQueries = value; } } // Check to see if SpellCorrectedQueries property is set internal bool IsSetSpellCorrectedQueries() { return this._spellCorrectedQueries != null && this._spellCorrectedQueries.Count > 0; } /// /// Gets and sets the property TotalNumberOfResults. /// /// 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. /// /// public int TotalNumberOfResults { get { return this._totalNumberOfResults.GetValueOrDefault(); } set { this._totalNumberOfResults = value; } } // Check to see if TotalNumberOfResults property is set internal bool IsSetTotalNumberOfResults() { return this._totalNumberOfResults.HasValue; } /// /// Gets and sets the property Warnings. /// /// 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. /// /// [AWSProperty(Min=1, Max=1)] public List Warnings { get { return this._warnings; } set { this._warnings = value; } } // Check to see if Warnings property is set internal bool IsSetWarnings() { return this._warnings != null && this._warnings.Count > 0; } } }