/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace LocationService { namespace Model { /** *

A summary of the request sent by using * SearchPlaceIndexForPosition.

See Also:

AWS * API Reference

*/ class SearchPlaceIndexForPositionSummary { public: AWS_LOCATIONSERVICE_API SearchPlaceIndexForPositionSummary(); AWS_LOCATIONSERVICE_API SearchPlaceIndexForPositionSummary(Aws::Utils::Json::JsonView jsonValue); AWS_LOCATIONSERVICE_API SearchPlaceIndexForPositionSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::String& GetDataSource() const{ return m_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.

*/ inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } /** *

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.

*/ inline void SetDataSource(const Aws::String& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } /** *

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.

*/ inline void SetDataSource(Aws::String&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } /** *

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.

*/ inline void SetDataSource(const char* value) { m_dataSourceHasBeenSet = true; m_dataSource.assign(value); } /** *

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.

*/ inline SearchPlaceIndexForPositionSummary& WithDataSource(const Aws::String& value) { SetDataSource(value); return *this;} /** *

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.

*/ inline SearchPlaceIndexForPositionSummary& WithDataSource(Aws::String&& value) { SetDataSource(std::move(value)); return *this;} /** *

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.

*/ inline SearchPlaceIndexForPositionSummary& WithDataSource(const char* value) { SetDataSource(value); return *this;} /** *

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.

*/ inline const Aws::String& GetLanguage() const{ return m_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.

*/ inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; } /** *

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.

*/ inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; } /** *

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.

*/ inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); } /** *

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.

*/ inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); } /** *

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.

*/ inline SearchPlaceIndexForPositionSummary& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;} /** *

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.

*/ inline SearchPlaceIndexForPositionSummary& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;} /** *

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.

*/ inline SearchPlaceIndexForPositionSummary& WithLanguage(const char* value) { SetLanguage(value); return *this;} /** *

Contains the optional result count limit that is specified in the * request.

Default value: 50

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

Contains the optional result count limit that is specified in the * request.

Default value: 50

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

Contains the optional result count limit that is specified in the * request.

Default value: 50

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

Contains the optional result count limit that is specified in the * request.

Default value: 50

*/ inline SearchPlaceIndexForPositionSummary& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The position specified in the request.

*/ inline const Aws::Vector& GetPosition() const{ return m_position; } /** *

The position specified in the request.

*/ inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; } /** *

The position specified in the request.

*/ inline void SetPosition(const Aws::Vector& value) { m_positionHasBeenSet = true; m_position = value; } /** *

The position specified in the request.

*/ inline void SetPosition(Aws::Vector&& value) { m_positionHasBeenSet = true; m_position = std::move(value); } /** *

The position specified in the request.

*/ inline SearchPlaceIndexForPositionSummary& WithPosition(const Aws::Vector& value) { SetPosition(value); return *this;} /** *

The position specified in the request.

*/ inline SearchPlaceIndexForPositionSummary& WithPosition(Aws::Vector&& value) { SetPosition(std::move(value)); return *this;} /** *

The position specified in the request.

*/ inline SearchPlaceIndexForPositionSummary& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; } private: Aws::String m_dataSource; bool m_dataSourceHasBeenSet = false; Aws::String m_language; bool m_languageHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::Vector m_position; bool m_positionHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws