AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GeoPlacesClient.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/client/ClientConfiguration.h>
9#include <aws/core/client/AWSClient.h>
10#include <aws/core/client/AWSClientAsyncCRTP.h>
11#include <aws/core/utils/json/JsonSerializer.h>
12#include <aws/geo-places/GeoPlacesServiceClientModel.h>
13
14namespace Aws
15{
16namespace GeoPlaces
17{
31 class AWS_GEOPLACES_API GeoPlacesClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<GeoPlacesClient>
32 {
33 public:
35 static const char* GetServiceName();
36 static const char* GetAllocationTag();
37
40
46 std::shared_ptr<GeoPlacesEndpointProviderBase> endpointProvider = nullptr);
47
53 std::shared_ptr<GeoPlacesEndpointProviderBase> endpointProvider = nullptr,
55
60 GeoPlacesClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
61 std::shared_ptr<GeoPlacesEndpointProviderBase> endpointProvider = nullptr,
63
64
65 /* Legacy constructors due deprecation */
71
77 const Aws::Client::ClientConfiguration& clientConfiguration);
78
83 GeoPlacesClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
84 const Aws::Client::ClientConfiguration& clientConfiguration);
85
86 /* End of legacy constructors due deprecation */
88
99
103 template<typename AutocompleteRequestT = Model::AutocompleteRequest>
104 Model::AutocompleteOutcomeCallable AutocompleteCallable(const AutocompleteRequestT& request) const
105 {
106 return SubmitCallable(&GeoPlacesClient::Autocomplete, request);
107 }
108
112 template<typename AutocompleteRequestT = Model::AutocompleteRequest>
113 void AutocompleteAsync(const AutocompleteRequestT& request, const AutocompleteResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
114 {
115 return SubmitAsync(&GeoPlacesClient::Autocomplete, request, handler, context);
116 }
117
124 virtual Model::GeocodeOutcome Geocode(const Model::GeocodeRequest& request = {}) const;
125
129 template<typename GeocodeRequestT = Model::GeocodeRequest>
130 Model::GeocodeOutcomeCallable GeocodeCallable(const GeocodeRequestT& request = {}) const
131 {
132 return SubmitCallable(&GeoPlacesClient::Geocode, request);
133 }
134
138 template<typename GeocodeRequestT = Model::GeocodeRequest>
139 void GeocodeAsync(const GeocodeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const GeocodeRequestT& request = {}) const
140 {
141 return SubmitAsync(&GeoPlacesClient::Geocode, request, handler, context);
142 }
143
151
155 template<typename GetPlaceRequestT = Model::GetPlaceRequest>
156 Model::GetPlaceOutcomeCallable GetPlaceCallable(const GetPlaceRequestT& request) const
157 {
158 return SubmitCallable(&GeoPlacesClient::GetPlace, request);
159 }
160
164 template<typename GetPlaceRequestT = Model::GetPlaceRequest>
165 void GetPlaceAsync(const GetPlaceRequestT& request, const GetPlaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
166 {
167 return SubmitAsync(&GeoPlacesClient::GetPlace, request, handler, context);
168 }
169
177
181 template<typename ReverseGeocodeRequestT = Model::ReverseGeocodeRequest>
182 Model::ReverseGeocodeOutcomeCallable ReverseGeocodeCallable(const ReverseGeocodeRequestT& request) const
183 {
184 return SubmitCallable(&GeoPlacesClient::ReverseGeocode, request);
185 }
186
190 template<typename ReverseGeocodeRequestT = Model::ReverseGeocodeRequest>
191 void ReverseGeocodeAsync(const ReverseGeocodeRequestT& request, const ReverseGeocodeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
192 {
193 return SubmitAsync(&GeoPlacesClient::ReverseGeocode, request, handler, context);
194 }
195
202
206 template<typename SearchNearbyRequestT = Model::SearchNearbyRequest>
207 Model::SearchNearbyOutcomeCallable SearchNearbyCallable(const SearchNearbyRequestT& request) const
208 {
209 return SubmitCallable(&GeoPlacesClient::SearchNearby, request);
210 }
211
215 template<typename SearchNearbyRequestT = Model::SearchNearbyRequest>
216 void SearchNearbyAsync(const SearchNearbyRequestT& request, const SearchNearbyResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
217 {
218 return SubmitAsync(&GeoPlacesClient::SearchNearby, request, handler, context);
219 }
220
229
233 template<typename SearchTextRequestT = Model::SearchTextRequest>
234 Model::SearchTextOutcomeCallable SearchTextCallable(const SearchTextRequestT& request = {}) const
235 {
236 return SubmitCallable(&GeoPlacesClient::SearchText, request);
237 }
238
242 template<typename SearchTextRequestT = Model::SearchTextRequest>
243 void SearchTextAsync(const SearchTextResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const SearchTextRequestT& request = {}) const
244 {
245 return SubmitAsync(&GeoPlacesClient::SearchText, request, handler, context);
246 }
247
256
260 template<typename SuggestRequestT = Model::SuggestRequest>
261 Model::SuggestOutcomeCallable SuggestCallable(const SuggestRequestT& request) const
262 {
263 return SubmitCallable(&GeoPlacesClient::Suggest, request);
264 }
265
269 template<typename SuggestRequestT = Model::SuggestRequest>
270 void SuggestAsync(const SuggestRequestT& request, const SuggestResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
271 {
272 return SubmitAsync(&GeoPlacesClient::Suggest, request, handler, context);
273 }
274
275
276 void OverrideEndpoint(const Aws::String& endpoint);
277 std::shared_ptr<GeoPlacesEndpointProviderBase>& accessEndpointProvider();
278 private:
280 void init(const GeoPlacesClientConfiguration& clientConfiguration);
281
282 GeoPlacesClientConfiguration m_clientConfiguration;
283 std::shared_ptr<GeoPlacesEndpointProviderBase> m_endpointProvider;
284 };
285
286} // namespace GeoPlaces
287} // namespace Aws
virtual Model::GetPlaceOutcome GetPlace(const Model::GetPlaceRequest &request) const
Model::SearchTextOutcomeCallable SearchTextCallable(const SearchTextRequestT &request={}) const
static const char * GetServiceName()
Model::GetPlaceOutcomeCallable GetPlaceCallable(const GetPlaceRequestT &request) const
GeoPlacesClientConfiguration ClientConfigurationType
GeoPlacesClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
Model::ReverseGeocodeOutcomeCallable ReverseGeocodeCallable(const ReverseGeocodeRequestT &request) const
void AutocompleteAsync(const AutocompleteRequestT &request, const AutocompleteResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
GeoPlacesClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< GeoPlacesEndpointProviderBase > endpointProvider=nullptr, const Aws::GeoPlaces::GeoPlacesClientConfiguration &clientConfiguration=Aws::GeoPlaces::GeoPlacesClientConfiguration())
virtual Model::ReverseGeocodeOutcome ReverseGeocode(const Model::ReverseGeocodeRequest &request) const
virtual Model::AutocompleteOutcome Autocomplete(const Model::AutocompleteRequest &request) const
static const char * GetAllocationTag()
void SuggestAsync(const SuggestRequestT &request, const SuggestResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::GeocodeOutcome Geocode(const Model::GeocodeRequest &request={}) const
Model::SuggestOutcomeCallable SuggestCallable(const SuggestRequestT &request) const
void ReverseGeocodeAsync(const ReverseGeocodeRequestT &request, const ReverseGeocodeResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
GeoPlacesClient(const Aws::GeoPlaces::GeoPlacesClientConfiguration &clientConfiguration=Aws::GeoPlaces::GeoPlacesClientConfiguration(), std::shared_ptr< GeoPlacesEndpointProviderBase > endpointProvider=nullptr)
virtual Model::SuggestOutcome Suggest(const Model::SuggestRequest &request) const
std::shared_ptr< GeoPlacesEndpointProviderBase > & accessEndpointProvider()
void GeocodeAsync(const GeocodeResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const GeocodeRequestT &request={}) const
Model::AutocompleteOutcomeCallable AutocompleteCallable(const AutocompleteRequestT &request) const
Model::GeocodeOutcomeCallable GeocodeCallable(const GeocodeRequestT &request={}) const
GeoPlacesEndpointProvider EndpointProviderType
void SearchNearbyAsync(const SearchNearbyRequestT &request, const SearchNearbyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
GeoPlacesClient(const Aws::Client::ClientConfiguration &clientConfiguration)
void OverrideEndpoint(const Aws::String &endpoint)
virtual Model::SearchTextOutcome SearchText(const Model::SearchTextRequest &request={}) const
Aws::Client::AWSJsonClient BASECLASS
void GetPlaceAsync(const GetPlaceRequestT &request, const GetPlaceResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::SearchNearbyOutcome SearchNearby(const Model::SearchNearbyRequest &request) const
GeoPlacesClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
void SearchTextAsync(const SearchTextResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const SearchTextRequestT &request={}) const
Model::SearchNearbyOutcomeCallable SearchNearbyCallable(const SearchNearbyRequestT &request) const
GeoPlacesClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< GeoPlacesEndpointProviderBase > endpointProvider=nullptr, const Aws::GeoPlaces::GeoPlacesClientConfiguration &clientConfiguration=Aws::GeoPlaces::GeoPlacesClientConfiguration())
std::future< ReverseGeocodeOutcome > ReverseGeocodeOutcomeCallable
std::future< SearchNearbyOutcome > SearchNearbyOutcomeCallable
std::future< GeocodeOutcome > GeocodeOutcomeCallable
std::future< GetPlaceOutcome > GetPlaceOutcomeCallable
std::future< SearchTextOutcome > SearchTextOutcomeCallable
std::future< SuggestOutcome > SuggestOutcomeCallable
std::future< AutocompleteOutcome > AutocompleteOutcomeCallable
std::function< void(const GeoPlacesClient *, const Model::SearchTextRequest &, const Model::SearchTextOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SearchTextResponseReceivedHandler
std::function< void(const GeoPlacesClient *, const Model::ReverseGeocodeRequest &, const Model::ReverseGeocodeOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ReverseGeocodeResponseReceivedHandler
std::function< void(const GeoPlacesClient *, const Model::GetPlaceRequest &, const Model::GetPlaceOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetPlaceResponseReceivedHandler
std::function< void(const GeoPlacesClient *, const Model::GeocodeRequest &, const Model::GeocodeOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GeocodeResponseReceivedHandler
std::function< void(const GeoPlacesClient *, const Model::AutocompleteRequest &, const Model::AutocompleteOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > AutocompleteResponseReceivedHandler
std::function< void(const GeoPlacesClient *, const Model::SearchNearbyRequest &, const Model::SearchNearbyOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SearchNearbyResponseReceivedHandler
std::function< void(const GeoPlacesClient *, const Model::SuggestRequest &, const Model::SuggestOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SuggestResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String