/*
* 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 SearchPlaceIndexForPosition
.
///
public partial class SearchPlaceIndexForPositionSummary
{
private string _dataSource;
private string _language;
private int? _maxResults;
private List _position = new List();
///
/// 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 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 that is specified in the request.
///
///
///
/// Default value: 50
///
///
[AWSProperty(Min=1, Max=50)]
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 Position.
///
/// The position specified in the request.
///
///
[AWSProperty(Required=true, Sensitive=true, Min=2, Max=2)]
public List Position
{
get { return this._position; }
set { this._position = value; }
}
// Check to see if Position property is set
internal bool IsSetPosition()
{
return this._position != null && this._position.Count > 0;
}
}
}