/* * 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 location-2020-11-19.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.LocationService.Model { /// /// A summary of the request sent by using SearchPlaceIndexForSuggestions. /// public partial class SearchPlaceIndexForSuggestionsSummary { private List _biasPosition = new List(); private string _dataSource; private List _filterBBox = new List(); private List _filterCategories = new List(); private List _filterCountries = new List(); private string _language; private int? _maxResults; private string _text; /// /// Gets and sets the property BiasPosition. /// /// Contains the coordinates for the optional bias position specified in the request. /// /// /// /// This parameter contains a pair of numbers. The first number represents the X coordinate, /// or longitude; the second number represents the Y coordinate, or latitude. /// /// /// /// For example, [-123.1174, 49.2847] represents the position with longitude /// -123.1174 and latitude 49.2847. /// /// [AWSProperty(Sensitive=true, Min=2, Max=2)] public List BiasPosition { get { return this._biasPosition; } set { this._biasPosition = value; } } // Check to see if BiasPosition property is set internal bool IsSetBiasPosition() { return this._biasPosition != null && this._biasPosition.Count > 0; } /// /// Gets and sets the property DataSource. /// /// The geospatial data provider attached to the place index resource specified in the /// request. Values can be one of the following: /// ///
  • /// /// Esri /// ///
  • /// /// Grab /// ///
  • /// /// Here /// ///
/// /// For more information about data providers, see Amazon /// Location Service data providers. /// ///
[AWSProperty(Required=true)] public string DataSource { get { return this._dataSource; } set { this._dataSource = value; } } // Check to see if DataSource property is set internal bool IsSetDataSource() { return this._dataSource != null; } /// /// Gets and sets the property FilterBBox. /// /// Contains the coordinates for the optional bounding box specified in the request. /// /// [AWSProperty(Sensitive=true, Min=4, Max=4)] public List FilterBBox { get { return this._filterBBox; } set { this._filterBBox = value; } } // Check to see if FilterBBox property is set internal bool IsSetFilterBBox() { return this._filterBBox != null && this._filterBBox.Count > 0; } /// /// Gets and sets the property FilterCategories. /// /// The optional category filter specified in the request. /// /// [AWSProperty(Min=1, Max=5)] public List FilterCategories { get { return this._filterCategories; } set { this._filterCategories = value; } } // Check to see if FilterCategories property is set internal bool IsSetFilterCategories() { return this._filterCategories != null && this._filterCategories.Count > 0; } /// /// Gets and sets the property FilterCountries. /// /// Contains the optional country filter specified in the request. /// /// [AWSProperty(Min=1, Max=100)] public List FilterCountries { get { return this._filterCountries; } set { this._filterCountries = value; } } // Check to see if FilterCountries property is set internal bool IsSetFilterCountries() { return this._filterCountries != null && this._filterCountries.Count > 0; } /// /// Gets and sets the property Language. /// /// The preferred language used to return results. Matches the language in the request. /// The value is a valid BCP 47 language /// tag, for example, en for English. /// /// [AWSProperty(Min=2, Max=35)] public string Language { get { return this._language; } set { this._language = value; } } // Check to see if Language property is set internal bool IsSetLanguage() { return this._language != null; } /// /// Gets and sets the property MaxResults. /// /// Contains the optional result count limit specified in the request. /// /// public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// /// Gets and sets the property Text. /// /// The free-form partial text input specified in the request. /// /// [AWSProperty(Required=true, Sensitive=true)] public string Text { get { return this._text; } set { this._text = value; } } // Check to see if Text property is set internal bool IsSetText() { return this._text != null; } } }