/** * 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 Http { class URI; } //namespace Http namespace LocationService { namespace Model { /** */ class GetPlaceRequest : public LocationServiceRequest { public: AWS_LOCATIONSERVICE_API GetPlaceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetPlace"; } AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override; AWS_LOCATIONSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the place index resource that you want to use for the search.

*/ inline const Aws::String& GetIndexName() const{ return m_indexName; } /** *

The name of the place index resource that you want to use for the search.

*/ inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; } /** *

The name of the place index resource that you want to use for the search.

*/ inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; } /** *

The name of the place index resource that you want to use for the search.

*/ inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); } /** *

The name of the place index resource that you want to use for the search.

*/ inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); } /** *

The name of the place index resource that you want to use for the search.

*/ inline GetPlaceRequest& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;} /** *

The name of the place index resource that you want to use for the search.

*/ inline GetPlaceRequest& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;} /** *

The name of the place index resource that you want to use for the search.

*/ inline GetPlaceRequest& WithIndexName(const char* value) { SetIndexName(value); return *this;} /** *

The optional API * key to authorize the request.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The optional API * key to authorize the request.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The optional API * key to authorize the request.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The optional API * key to authorize the request.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The optional API * key to authorize the request.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

The optional API * key to authorize the request.

*/ inline GetPlaceRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The optional API * key to authorize the request.

*/ inline GetPlaceRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The optional API * key to authorize the request.

*/ inline GetPlaceRequest& WithKey(const char* value) { SetKey(value); return *this;} /** *

The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, * en for English.

This setting affects the languages used in * the results, but not the results themselves. If no language is specified, or not * supported for a particular result, the partner automatically chooses a language * for the result.

For an example, we'll use the Greek language. You search * for a location around Athens, Greece, with the language parameter * set to en. The city in the results will most likely be * returned as Athens.

If you set the language * parameter to el, for Greek, then the city in the * results will more likely be returned as Αθήνα.

If the data * provider does not have a value for Greek, the result will be in a language that * the provider does support.

*/ inline const Aws::String& GetLanguage() const{ return m_language; } /** *

The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, * en for English.

This setting affects the languages used in * the results, but not the results themselves. If no language is specified, or not * supported for a particular result, the partner automatically chooses a language * for the result.

For an example, we'll use the Greek language. You search * for a location around Athens, Greece, with the language parameter * set to en. The city in the results will most likely be * returned as Athens.

If you set the language * parameter to el, for Greek, then the city in the * results will more likely be returned as Αθήνα.

If the data * provider does not have a value for Greek, the result will be in a language that * the provider does support.

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

The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, * en for English.

This setting affects the languages used in * the results, but not the results themselves. If no language is specified, or not * supported for a particular result, the partner automatically chooses a language * for the result.

For an example, we'll use the Greek language. You search * for a location around Athens, Greece, with the language parameter * set to en. The city in the results will most likely be * returned as Athens.

If you set the language * parameter to el, for Greek, then the city in the * results will more likely be returned as Αθήνα.

If the data * provider does not have a value for Greek, the result will be in a language that * the provider does support.

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

The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, * en for English.

This setting affects the languages used in * the results, but not the results themselves. If no language is specified, or not * supported for a particular result, the partner automatically chooses a language * for the result.

For an example, we'll use the Greek language. You search * for a location around Athens, Greece, with the language parameter * set to en. The city in the results will most likely be * returned as Athens.

If you set the language * parameter to el, for Greek, then the city in the * results will more likely be returned as Αθήνα.

If the data * provider does not have a value for Greek, the result will be in a language that * the provider does support.

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

The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, * en for English.

This setting affects the languages used in * the results, but not the results themselves. If no language is specified, or not * supported for a particular result, the partner automatically chooses a language * for the result.

For an example, we'll use the Greek language. You search * for a location around Athens, Greece, with the language parameter * set to en. The city in the results will most likely be * returned as Athens.

If you set the language * parameter to el, for Greek, then the city in the * results will more likely be returned as Αθήνα.

If the data * provider does not have a value for Greek, the result will be in a language that * the provider does support.

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

The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, * en for English.

This setting affects the languages used in * the results, but not the results themselves. If no language is specified, or not * supported for a particular result, the partner automatically chooses a language * for the result.

For an example, we'll use the Greek language. You search * for a location around Athens, Greece, with the language parameter * set to en. The city in the results will most likely be * returned as Athens.

If you set the language * parameter to el, for Greek, then the city in the * results will more likely be returned as Αθήνα.

If the data * provider does not have a value for Greek, the result will be in a language that * the provider does support.

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

The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, * en for English.

This setting affects the languages used in * the results, but not the results themselves. If no language is specified, or not * supported for a particular result, the partner automatically chooses a language * for the result.

For an example, we'll use the Greek language. You search * for a location around Athens, Greece, with the language parameter * set to en. The city in the results will most likely be * returned as Athens.

If you set the language * parameter to el, for Greek, then the city in the * results will more likely be returned as Αθήνα.

If the data * provider does not have a value for Greek, the result will be in a language that * the provider does support.

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

The preferred language used to return results. The value must be a valid BCP 47 language tag, for example, * en for English.

This setting affects the languages used in * the results, but not the results themselves. If no language is specified, or not * supported for a particular result, the partner automatically chooses a language * for the result.

For an example, we'll use the Greek language. You search * for a location around Athens, Greece, with the language parameter * set to en. The city in the results will most likely be * returned as Athens.

If you set the language * parameter to el, for Greek, then the city in the * results will more likely be returned as Αθήνα.

If the data * provider does not have a value for Greek, the result will be in a language that * the provider does support.

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

The identifier of the place to find.

*/ inline const Aws::String& GetPlaceId() const{ return m_placeId; } /** *

The identifier of the place to find.

*/ inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; } /** *

The identifier of the place to find.

*/ inline void SetPlaceId(const Aws::String& value) { m_placeIdHasBeenSet = true; m_placeId = value; } /** *

The identifier of the place to find.

*/ inline void SetPlaceId(Aws::String&& value) { m_placeIdHasBeenSet = true; m_placeId = std::move(value); } /** *

The identifier of the place to find.

*/ inline void SetPlaceId(const char* value) { m_placeIdHasBeenSet = true; m_placeId.assign(value); } /** *

The identifier of the place to find.

*/ inline GetPlaceRequest& WithPlaceId(const Aws::String& value) { SetPlaceId(value); return *this;} /** *

The identifier of the place to find.

*/ inline GetPlaceRequest& WithPlaceId(Aws::String&& value) { SetPlaceId(std::move(value)); return *this;} /** *

The identifier of the place to find.

*/ inline GetPlaceRequest& WithPlaceId(const char* value) { SetPlaceId(value); return *this;} private: Aws::String m_indexName; bool m_indexNameHasBeenSet = false; Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_language; bool m_languageHasBeenSet = false; Aws::String m_placeId; bool m_placeIdHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws