/** * 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 SearchPlaceIndexForTextResult { public: AWS_LOCATIONSERVICE_API SearchPlaceIndexForTextResult(); AWS_LOCATIONSERVICE_API SearchPlaceIndexForTextResult(const Aws::AmazonWebServiceResult& result); AWS_LOCATIONSERVICE_API SearchPlaceIndexForTextResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of Places matching the input text. Each result contains additional * information about the specific point of interest.

Not all response * properties are included with all responses. Some properties may only be returned * by specific data partners.

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

A list of Places matching the input text. Each result contains additional * information about the specific point of interest.

Not all response * properties are included with all responses. Some properties may only be returned * by specific data partners.

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

A list of Places matching the input text. Each result contains additional * information about the specific point of interest.

Not all response * properties are included with all responses. Some properties may only be returned * by specific data partners.

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

A list of Places matching the input text. Each result contains additional * information about the specific point of interest.

Not all response * properties are included with all responses. Some properties may only be returned * by specific data partners.

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

A list of Places matching the input text. Each result contains additional * information about the specific point of interest.

Not all response * properties are included with all responses. Some properties may only be returned * by specific data partners.

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

A list of Places matching the input text. Each result contains additional * information about the specific point of interest.

Not all response * properties are included with all responses. Some properties may only be returned * by specific data partners.

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

A list of Places matching the input text. Each result contains additional * information about the specific point of interest.

Not all response * properties are included with all responses. Some properties may only be returned * by specific data partners.

*/ inline SearchPlaceIndexForTextResult& AddResults(SearchForTextResult&& 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 and the bounding box, ResultBBox, which surrounds the search * results.

*/ inline const SearchPlaceIndexForTextSummary& 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 and the bounding box, ResultBBox, which surrounds the search * results.

*/ inline void SetSummary(const SearchPlaceIndexForTextSummary& 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 and the bounding box, ResultBBox, which surrounds the search * results.

*/ inline void SetSummary(SearchPlaceIndexForTextSummary&& 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 and the bounding box, ResultBBox, which surrounds the search * results.

*/ inline SearchPlaceIndexForTextResult& WithSummary(const SearchPlaceIndexForTextSummary& 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 and the bounding box, ResultBBox, which surrounds the search * results.

*/ inline SearchPlaceIndexForTextResult& WithSummary(SearchPlaceIndexForTextSummary&& 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 SearchPlaceIndexForTextResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline SearchPlaceIndexForTextResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline SearchPlaceIndexForTextResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_results; SearchPlaceIndexForTextSummary m_summary; Aws::String m_requestId; }; } // namespace Model } // namespace LocationService } // namespace Aws