/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LocationService { namespace Model { class SearchPlaceIndexForSuggestionsResult { public: AWS_LOCATIONSERVICE_API SearchPlaceIndexForSuggestionsResult(); AWS_LOCATIONSERVICE_API SearchPlaceIndexForSuggestionsResult(const Aws::AmazonWebServiceResult& result); AWS_LOCATIONSERVICE_API SearchPlaceIndexForSuggestionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of place suggestions that best match the search text.

*/ inline const Aws::Vector& GetResults() const{ return m_results; } /** *

A list of place suggestions that best match the search text.

*/ inline void SetResults(const Aws::Vector& value) { m_results = value; } /** *

A list of place suggestions that best match the search text.

*/ inline void SetResults(Aws::Vector&& value) { m_results = std::move(value); } /** *

A list of place suggestions that best match the search text.

*/ inline SearchPlaceIndexForSuggestionsResult& WithResults(const Aws::Vector& value) { SetResults(value); return *this;} /** *

A list of place suggestions that best match the search text.

*/ inline SearchPlaceIndexForSuggestionsResult& WithResults(Aws::Vector&& value) { SetResults(std::move(value)); return *this;} /** *

A list of place suggestions that best match the search text.

*/ inline SearchPlaceIndexForSuggestionsResult& AddResults(const SearchForSuggestionsResult& value) { m_results.push_back(value); return *this; } /** *

A list of place suggestions that best match the search text.

*/ inline SearchPlaceIndexForSuggestionsResult& AddResults(SearchForSuggestionsResult&& value) { m_results.push_back(std::move(value)); return *this; } /** *

Contains a summary of the request. Echoes the input values for * BiasPosition, FilterBBox, * FilterCountries, Language, MaxResults, * and Text. Also includes the DataSource of the place * index.

*/ inline const SearchPlaceIndexForSuggestionsSummary& GetSummary() const{ return m_summary; } /** *

Contains a summary of the request. Echoes the input values for * BiasPosition, FilterBBox, * FilterCountries, Language, MaxResults, * and Text. Also includes the DataSource of the place * index.

*/ inline void SetSummary(const SearchPlaceIndexForSuggestionsSummary& value) { m_summary = value; } /** *

Contains a summary of the request. Echoes the input values for * BiasPosition, FilterBBox, * FilterCountries, Language, MaxResults, * and Text. Also includes the DataSource of the place * index.

*/ inline void SetSummary(SearchPlaceIndexForSuggestionsSummary&& value) { m_summary = std::move(value); } /** *

Contains a summary of the request. Echoes the input values for * BiasPosition, FilterBBox, * FilterCountries, Language, MaxResults, * and Text. Also includes the DataSource of the place * index.

*/ inline SearchPlaceIndexForSuggestionsResult& WithSummary(const SearchPlaceIndexForSuggestionsSummary& value) { SetSummary(value); return *this;} /** *

Contains a summary of the request. Echoes the input values for * BiasPosition, FilterBBox, * FilterCountries, Language, MaxResults, * and Text. Also includes the DataSource of the place * index.

*/ inline SearchPlaceIndexForSuggestionsResult& WithSummary(SearchPlaceIndexForSuggestionsSummary&& value) { SetSummary(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline SearchPlaceIndexForSuggestionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline SearchPlaceIndexForSuggestionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline SearchPlaceIndexForSuggestionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_results; SearchPlaceIndexForSuggestionsSummary m_summary; Aws::String m_requestId; }; } // namespace Model } // namespace LocationService } // namespace Aws