/* * 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 cloudsearchdomain-2013-01-01.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.CloudSearchDomain.Model { /// /// The result of a Search request. Contains the documents that match the /// specified search criteria and any requested fields, highlights, and facet information. /// public partial class SearchResponse : AmazonWebServiceResponse { private Dictionary _facets = new Dictionary(); private Hits _hits; private Dictionary _stats = new Dictionary(); private SearchStatus _status; /// /// Gets and sets the property Facets. /// /// The requested facet information. /// /// public Dictionary Facets { get { return this._facets; } set { this._facets = value; } } // Check to see if Facets property is set internal bool IsSetFacets() { return this._facets != null && this._facets.Count > 0; } /// /// Gets and sets the property Hits. /// /// The documents that match the search criteria. /// /// public Hits Hits { get { return this._hits; } set { this._hits = value; } } // Check to see if Hits property is set internal bool IsSetHits() { return this._hits != null; } /// /// Gets and sets the property Stats. /// /// The requested field statistics information. /// /// public Dictionary Stats { get { return this._stats; } set { this._stats = value; } } // Check to see if Stats property is set internal bool IsSetStats() { return this._stats != null && this._stats.Count > 0; } /// /// Gets and sets the property Status. /// /// The status information returned for the search request. /// /// public SearchStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }