/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace LocationService { namespace Model { /** */ class SearchPlaceIndexForSuggestionsRequest : public LocationServiceRequest { public: AWS_LOCATIONSERVICE_API SearchPlaceIndexForSuggestionsRequest(); // 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 "SearchPlaceIndexForSuggestions"; } AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override; AWS_LOCATIONSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

An optional parameter that indicates a preference for place suggestions that * are closer to a specified position.

If provided, this parameter must * contain 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.

*

BiasPosition and FilterBBox are mutually * exclusive. Specifying both options results in an error.

*/ inline const Aws::Vector& GetBiasPosition() const{ return m_biasPosition; } /** *

An optional parameter that indicates a preference for place suggestions that * are closer to a specified position.

If provided, this parameter must * contain 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.

*

BiasPosition and FilterBBox are mutually * exclusive. Specifying both options results in an error.

*/ inline bool BiasPositionHasBeenSet() const { return m_biasPositionHasBeenSet; } /** *

An optional parameter that indicates a preference for place suggestions that * are closer to a specified position.

If provided, this parameter must * contain 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.

*

BiasPosition and FilterBBox are mutually * exclusive. Specifying both options results in an error.

*/ inline void SetBiasPosition(const Aws::Vector& value) { m_biasPositionHasBeenSet = true; m_biasPosition = value; } /** *

An optional parameter that indicates a preference for place suggestions that * are closer to a specified position.

If provided, this parameter must * contain 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.

*

BiasPosition and FilterBBox are mutually * exclusive. Specifying both options results in an error.

*/ inline void SetBiasPosition(Aws::Vector&& value) { m_biasPositionHasBeenSet = true; m_biasPosition = std::move(value); } /** *

An optional parameter that indicates a preference for place suggestions that * are closer to a specified position.

If provided, this parameter must * contain 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.

*

BiasPosition and FilterBBox are mutually * exclusive. Specifying both options results in an error.

*/ inline SearchPlaceIndexForSuggestionsRequest& WithBiasPosition(const Aws::Vector& value) { SetBiasPosition(value); return *this;} /** *

An optional parameter that indicates a preference for place suggestions that * are closer to a specified position.

If provided, this parameter must * contain 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.

*

BiasPosition and FilterBBox are mutually * exclusive. Specifying both options results in an error.

*/ inline SearchPlaceIndexForSuggestionsRequest& WithBiasPosition(Aws::Vector&& value) { SetBiasPosition(std::move(value)); return *this;} /** *

An optional parameter that indicates a preference for place suggestions that * are closer to a specified position.

If provided, this parameter must * contain 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.

*

BiasPosition and FilterBBox are mutually * exclusive. Specifying both options results in an error.

*/ inline SearchPlaceIndexForSuggestionsRequest& AddBiasPosition(double value) { m_biasPositionHasBeenSet = true; m_biasPosition.push_back(value); return *this; } /** *

An optional parameter that limits the search results by returning only * suggestions within a specified bounding box.

If provided, this parameter * must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the southwest corner of the bounding box; the second pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box.

For example, * [-12.7935, -37.4835, -12.0684, -36.9542] represents a bounding box * where the southwest corner has longitude -12.7935 and latitude * -37.4835, and the northeast corner has longitude * -12.0684 and latitude -36.9542.

* FilterBBox and BiasPosition are mutually exclusive. * Specifying both options results in an error.

*/ inline const Aws::Vector& GetFilterBBox() const{ return m_filterBBox; } /** *

An optional parameter that limits the search results by returning only * suggestions within a specified bounding box.

If provided, this parameter * must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the southwest corner of the bounding box; the second pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box.

For example, * [-12.7935, -37.4835, -12.0684, -36.9542] represents a bounding box * where the southwest corner has longitude -12.7935 and latitude * -37.4835, and the northeast corner has longitude * -12.0684 and latitude -36.9542.

* FilterBBox and BiasPosition are mutually exclusive. * Specifying both options results in an error.

*/ inline bool FilterBBoxHasBeenSet() const { return m_filterBBoxHasBeenSet; } /** *

An optional parameter that limits the search results by returning only * suggestions within a specified bounding box.

If provided, this parameter * must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the southwest corner of the bounding box; the second pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box.

For example, * [-12.7935, -37.4835, -12.0684, -36.9542] represents a bounding box * where the southwest corner has longitude -12.7935 and latitude * -37.4835, and the northeast corner has longitude * -12.0684 and latitude -36.9542.

* FilterBBox and BiasPosition are mutually exclusive. * Specifying both options results in an error.

*/ inline void SetFilterBBox(const Aws::Vector& value) { m_filterBBoxHasBeenSet = true; m_filterBBox = value; } /** *

An optional parameter that limits the search results by returning only * suggestions within a specified bounding box.

If provided, this parameter * must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the southwest corner of the bounding box; the second pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box.

For example, * [-12.7935, -37.4835, -12.0684, -36.9542] represents a bounding box * where the southwest corner has longitude -12.7935 and latitude * -37.4835, and the northeast corner has longitude * -12.0684 and latitude -36.9542.

* FilterBBox and BiasPosition are mutually exclusive. * Specifying both options results in an error.

*/ inline void SetFilterBBox(Aws::Vector&& value) { m_filterBBoxHasBeenSet = true; m_filterBBox = std::move(value); } /** *

An optional parameter that limits the search results by returning only * suggestions within a specified bounding box.

If provided, this parameter * must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the southwest corner of the bounding box; the second pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box.

For example, * [-12.7935, -37.4835, -12.0684, -36.9542] represents a bounding box * where the southwest corner has longitude -12.7935 and latitude * -37.4835, and the northeast corner has longitude * -12.0684 and latitude -36.9542.

* FilterBBox and BiasPosition are mutually exclusive. * Specifying both options results in an error.

*/ inline SearchPlaceIndexForSuggestionsRequest& WithFilterBBox(const Aws::Vector& value) { SetFilterBBox(value); return *this;} /** *

An optional parameter that limits the search results by returning only * suggestions within a specified bounding box.

If provided, this parameter * must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the southwest corner of the bounding box; the second pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box.

For example, * [-12.7935, -37.4835, -12.0684, -36.9542] represents a bounding box * where the southwest corner has longitude -12.7935 and latitude * -37.4835, and the northeast corner has longitude * -12.0684 and latitude -36.9542.

* FilterBBox and BiasPosition are mutually exclusive. * Specifying both options results in an error.

*/ inline SearchPlaceIndexForSuggestionsRequest& WithFilterBBox(Aws::Vector&& value) { SetFilterBBox(std::move(value)); return *this;} /** *

An optional parameter that limits the search results by returning only * suggestions within a specified bounding box.

If provided, this parameter * must contain a total of four consecutive numbers in two pairs. The first pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the southwest corner of the bounding box; the second pair of * numbers represents the X and Y coordinates (longitude and latitude, * respectively) of the northeast corner of the bounding box.

For example, * [-12.7935, -37.4835, -12.0684, -36.9542] represents a bounding box * where the southwest corner has longitude -12.7935 and latitude * -37.4835, and the northeast corner has longitude * -12.0684 and latitude -36.9542.

* FilterBBox and BiasPosition are mutually exclusive. * Specifying both options results in an error.

*/ inline SearchPlaceIndexForSuggestionsRequest& AddFilterBBox(double value) { m_filterBBoxHasBeenSet = true; m_filterBBox.push_back(value); return *this; } /** *

A list of one or more Amazon Location categories to filter the returned * places. If you include more than one category, the results will include results * that match any of the categories listed.

For more information * about using categories, including a list of Amazon Location categories, see Categories * and filtering, in the Amazon Location Service Developer Guide.

*/ inline const Aws::Vector& GetFilterCategories() const{ return m_filterCategories; } /** *

A list of one or more Amazon Location categories to filter the returned * places. If you include more than one category, the results will include results * that match any of the categories listed.

For more information * about using categories, including a list of Amazon Location categories, see Categories * and filtering, in the Amazon Location Service Developer Guide.

*/ inline bool FilterCategoriesHasBeenSet() const { return m_filterCategoriesHasBeenSet; } /** *

A list of one or more Amazon Location categories to filter the returned * places. If you include more than one category, the results will include results * that match any of the categories listed.

For more information * about using categories, including a list of Amazon Location categories, see Categories * and filtering, in the Amazon Location Service Developer Guide.

*/ inline void SetFilterCategories(const Aws::Vector& value) { m_filterCategoriesHasBeenSet = true; m_filterCategories = value; } /** *

A list of one or more Amazon Location categories to filter the returned * places. If you include more than one category, the results will include results * that match any of the categories listed.

For more information * about using categories, including a list of Amazon Location categories, see Categories * and filtering, in the Amazon Location Service Developer Guide.

*/ inline void SetFilterCategories(Aws::Vector&& value) { m_filterCategoriesHasBeenSet = true; m_filterCategories = std::move(value); } /** *

A list of one or more Amazon Location categories to filter the returned * places. If you include more than one category, the results will include results * that match any of the categories listed.

For more information * about using categories, including a list of Amazon Location categories, see Categories * and filtering, in the Amazon Location Service Developer Guide.

*/ inline SearchPlaceIndexForSuggestionsRequest& WithFilterCategories(const Aws::Vector& value) { SetFilterCategories(value); return *this;} /** *

A list of one or more Amazon Location categories to filter the returned * places. If you include more than one category, the results will include results * that match any of the categories listed.

For more information * about using categories, including a list of Amazon Location categories, see Categories * and filtering, in the Amazon Location Service Developer Guide.

*/ inline SearchPlaceIndexForSuggestionsRequest& WithFilterCategories(Aws::Vector&& value) { SetFilterCategories(std::move(value)); return *this;} /** *

A list of one or more Amazon Location categories to filter the returned * places. If you include more than one category, the results will include results * that match any of the categories listed.

For more information * about using categories, including a list of Amazon Location categories, see Categories * and filtering, in the Amazon Location Service Developer Guide.

*/ inline SearchPlaceIndexForSuggestionsRequest& AddFilterCategories(const Aws::String& value) { m_filterCategoriesHasBeenSet = true; m_filterCategories.push_back(value); return *this; } /** *

A list of one or more Amazon Location categories to filter the returned * places. If you include more than one category, the results will include results * that match any of the categories listed.

For more information * about using categories, including a list of Amazon Location categories, see Categories * and filtering, in the Amazon Location Service Developer Guide.

*/ inline SearchPlaceIndexForSuggestionsRequest& AddFilterCategories(Aws::String&& value) { m_filterCategoriesHasBeenSet = true; m_filterCategories.push_back(std::move(value)); return *this; } /** *

A list of one or more Amazon Location categories to filter the returned * places. If you include more than one category, the results will include results * that match any of the categories listed.

For more information * about using categories, including a list of Amazon Location categories, see Categories * and filtering, in the Amazon Location Service Developer Guide.

*/ inline SearchPlaceIndexForSuggestionsRequest& AddFilterCategories(const char* value) { m_filterCategoriesHasBeenSet = true; m_filterCategories.push_back(value); return *this; } /** *

An optional parameter that limits the search results by returning only * suggestions within the provided list of countries.

  • Use the ISO 3166 3-digit * country code. For example, Australia uses three upper-case characters: * AUS.

*/ inline const Aws::Vector& GetFilterCountries() const{ return m_filterCountries; } /** *

An optional parameter that limits the search results by returning only * suggestions within the provided list of countries.

  • Use the ISO 3166 3-digit * country code. For example, Australia uses three upper-case characters: * AUS.

*/ inline bool FilterCountriesHasBeenSet() const { return m_filterCountriesHasBeenSet; } /** *

An optional parameter that limits the search results by returning only * suggestions within the provided list of countries.

  • Use the ISO 3166 3-digit * country code. For example, Australia uses three upper-case characters: * AUS.

*/ inline void SetFilterCountries(const Aws::Vector& value) { m_filterCountriesHasBeenSet = true; m_filterCountries = value; } /** *

An optional parameter that limits the search results by returning only * suggestions within the provided list of countries.

  • Use the ISO 3166 3-digit * country code. For example, Australia uses three upper-case characters: * AUS.

*/ inline void SetFilterCountries(Aws::Vector&& value) { m_filterCountriesHasBeenSet = true; m_filterCountries = std::move(value); } /** *

An optional parameter that limits the search results by returning only * suggestions within the provided list of countries.

  • Use the ISO 3166 3-digit * country code. For example, Australia uses three upper-case characters: * AUS.

*/ inline SearchPlaceIndexForSuggestionsRequest& WithFilterCountries(const Aws::Vector& value) { SetFilterCountries(value); return *this;} /** *

An optional parameter that limits the search results by returning only * suggestions within the provided list of countries.

  • Use the ISO 3166 3-digit * country code. For example, Australia uses three upper-case characters: * AUS.

*/ inline SearchPlaceIndexForSuggestionsRequest& WithFilterCountries(Aws::Vector&& value) { SetFilterCountries(std::move(value)); return *this;} /** *

An optional parameter that limits the search results by returning only * suggestions within the provided list of countries.

  • Use the ISO 3166 3-digit * country code. For example, Australia uses three upper-case characters: * AUS.

*/ inline SearchPlaceIndexForSuggestionsRequest& AddFilterCountries(const Aws::String& value) { m_filterCountriesHasBeenSet = true; m_filterCountries.push_back(value); return *this; } /** *

An optional parameter that limits the search results by returning only * suggestions within the provided list of countries.

  • Use the ISO 3166 3-digit * country code. For example, Australia uses three upper-case characters: * AUS.

*/ inline SearchPlaceIndexForSuggestionsRequest& AddFilterCountries(Aws::String&& value) { m_filterCountriesHasBeenSet = true; m_filterCountries.push_back(std::move(value)); return *this; } /** *

An optional parameter that limits the search results by returning only * suggestions within the provided list of countries.

  • Use the ISO 3166 3-digit * country code. For example, Australia uses three upper-case characters: * AUS.

*/ inline SearchPlaceIndexForSuggestionsRequest& AddFilterCountries(const char* value) { m_filterCountriesHasBeenSet = true; m_filterCountries.push_back(value); return *this; } /** *

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

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

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

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

The name of the place index resource 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 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 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 you want to use for the search.

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

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

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

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

*/ inline SearchPlaceIndexForSuggestionsRequest& 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 SearchPlaceIndexForSuggestionsRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The optional API * key to authorize the request.

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

The optional API * key to authorize the request.

*/ inline SearchPlaceIndexForSuggestionsRequest& 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. 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 Athens, Gr * to get suggestions with the language parameter set to * en. The results found will most likely be returned as Athens, * Greece.

If you set the language parameter to * el, for Greek, then the result found 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. 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 Athens, Gr * to get suggestions with the language parameter set to * en. The results found will most likely be returned as Athens, * Greece.

If you set the language parameter to * el, for Greek, then the result found 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. 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 Athens, Gr * to get suggestions with the language parameter set to * en. The results found will most likely be returned as Athens, * Greece.

If you set the language parameter to * el, for Greek, then the result found 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. 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 Athens, Gr * to get suggestions with the language parameter set to * en. The results found will most likely be returned as Athens, * Greece.

If you set the language parameter to * el, for Greek, then the result found 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. 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 Athens, Gr * to get suggestions with the language parameter set to * en. The results found will most likely be returned as Athens, * Greece.

If you set the language parameter to * el, for Greek, then the result found 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. 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 Athens, Gr * to get suggestions with the language parameter set to * en. The results found will most likely be returned as Athens, * Greece.

If you set the language parameter to * el, for Greek, then the result found 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 SearchPlaceIndexForSuggestionsRequest& 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. 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 Athens, Gr * to get suggestions with the language parameter set to * en. The results found will most likely be returned as Athens, * Greece.

If you set the language parameter to * el, for Greek, then the result found 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 SearchPlaceIndexForSuggestionsRequest& 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. 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 Athens, Gr * to get suggestions with the language parameter set to * en. The results found will most likely be returned as Athens, * Greece.

If you set the language parameter to * el, for Greek, then the result found 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 SearchPlaceIndexForSuggestionsRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;} /** *

An optional parameter. The maximum number of results returned per request. *

The default: 5

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

An optional parameter. The maximum number of results returned per request. *

The default: 5

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

An optional parameter. The maximum number of results returned per request. *

The default: 5

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

An optional parameter. The maximum number of results returned per request. *

The default: 5

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

The free-form partial text to use to generate place suggestions. For example, * eiffel tow.

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

The free-form partial text to use to generate place suggestions. For example, * eiffel tow.

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

The free-form partial text to use to generate place suggestions. For example, * eiffel tow.

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

The free-form partial text to use to generate place suggestions. For example, * eiffel tow.

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

The free-form partial text to use to generate place suggestions. For example, * eiffel tow.

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

The free-form partial text to use to generate place suggestions. For example, * eiffel tow.

*/ inline SearchPlaceIndexForSuggestionsRequest& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

The free-form partial text to use to generate place suggestions. For example, * eiffel tow.

*/ inline SearchPlaceIndexForSuggestionsRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

The free-form partial text to use to generate place suggestions. For example, * eiffel tow.

*/ inline SearchPlaceIndexForSuggestionsRequest& WithText(const char* value) { SetText(value); return *this;} private: Aws::Vector m_biasPosition; bool m_biasPositionHasBeenSet = false; Aws::Vector m_filterBBox; bool m_filterBBoxHasBeenSet = false; Aws::Vector m_filterCategories; bool m_filterCategoriesHasBeenSet = false; Aws::Vector m_filterCountries; bool m_filterCountriesHasBeenSet = false; Aws::String m_indexName; bool m_indexNameHasBeenSet = false; Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_language; bool m_languageHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_text; bool m_textHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws