AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GeoRoutesClient.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_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-routes/GeoRoutesServiceClientModel.h>
13
14namespace Aws
15{
16namespace GeoRoutes
17{
30 class AWS_GEOROUTES_API GeoRoutesClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<GeoRoutesClient>
31 {
32 public:
34 static const char* GetServiceName();
35 static const char* GetAllocationTag();
36
39
45 std::shared_ptr<GeoRoutesEndpointProviderBase> endpointProvider = nullptr);
46
52 std::shared_ptr<GeoRoutesEndpointProviderBase> endpointProvider = nullptr,
54
59 GeoRoutesClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
60 std::shared_ptr<GeoRoutesEndpointProviderBase> endpointProvider = nullptr,
62
63
64 /* Legacy constructors due deprecation */
70
76 const Aws::Client::ClientConfiguration& clientConfiguration);
77
82 GeoRoutesClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
83 const Aws::Client::ClientConfiguration& clientConfiguration);
84
85 /* End of legacy constructors due deprecation */
87
95
99 template<typename CalculateIsolinesRequestT = Model::CalculateIsolinesRequest>
100 Model::CalculateIsolinesOutcomeCallable CalculateIsolinesCallable(const CalculateIsolinesRequestT& request) const
101 {
102 return SubmitCallable(&GeoRoutesClient::CalculateIsolines, request);
103 }
104
108 template<typename CalculateIsolinesRequestT = Model::CalculateIsolinesRequest>
109 void CalculateIsolinesAsync(const CalculateIsolinesRequestT& request, const CalculateIsolinesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
110 {
111 return SubmitAsync(&GeoRoutesClient::CalculateIsolines, request, handler, context);
112 }
113
123
127 template<typename CalculateRouteMatrixRequestT = Model::CalculateRouteMatrixRequest>
128 Model::CalculateRouteMatrixOutcomeCallable CalculateRouteMatrixCallable(const CalculateRouteMatrixRequestT& request) const
129 {
130 return SubmitCallable(&GeoRoutesClient::CalculateRouteMatrix, request);
131 }
132
136 template<typename CalculateRouteMatrixRequestT = Model::CalculateRouteMatrixRequest>
137 void CalculateRouteMatrixAsync(const CalculateRouteMatrixRequestT& request, const CalculateRouteMatrixResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
138 {
139 return SubmitAsync(&GeoRoutesClient::CalculateRouteMatrix, request, handler, context);
140 }
141
149
153 template<typename CalculateRoutesRequestT = Model::CalculateRoutesRequest>
154 Model::CalculateRoutesOutcomeCallable CalculateRoutesCallable(const CalculateRoutesRequestT& request) const
155 {
156 return SubmitCallable(&GeoRoutesClient::CalculateRoutes, request);
157 }
158
162 template<typename CalculateRoutesRequestT = Model::CalculateRoutesRequest>
163 void CalculateRoutesAsync(const CalculateRoutesRequestT& request, const CalculateRoutesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
164 {
165 return SubmitAsync(&GeoRoutesClient::CalculateRoutes, request, handler, context);
166 }
167
177
181 template<typename OptimizeWaypointsRequestT = Model::OptimizeWaypointsRequest>
182 Model::OptimizeWaypointsOutcomeCallable OptimizeWaypointsCallable(const OptimizeWaypointsRequestT& request) const
183 {
184 return SubmitCallable(&GeoRoutesClient::OptimizeWaypoints, request);
185 }
186
190 template<typename OptimizeWaypointsRequestT = Model::OptimizeWaypointsRequest>
191 void OptimizeWaypointsAsync(const OptimizeWaypointsRequestT& request, const OptimizeWaypointsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
192 {
193 return SubmitAsync(&GeoRoutesClient::OptimizeWaypoints, request, handler, context);
194 }
195
203
207 template<typename SnapToRoadsRequestT = Model::SnapToRoadsRequest>
208 Model::SnapToRoadsOutcomeCallable SnapToRoadsCallable(const SnapToRoadsRequestT& request) const
209 {
210 return SubmitCallable(&GeoRoutesClient::SnapToRoads, request);
211 }
212
216 template<typename SnapToRoadsRequestT = Model::SnapToRoadsRequest>
217 void SnapToRoadsAsync(const SnapToRoadsRequestT& request, const SnapToRoadsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
218 {
219 return SubmitAsync(&GeoRoutesClient::SnapToRoads, request, handler, context);
220 }
221
222
223 void OverrideEndpoint(const Aws::String& endpoint);
224 std::shared_ptr<GeoRoutesEndpointProviderBase>& accessEndpointProvider();
225 private:
227 void init(const GeoRoutesClientConfiguration& clientConfiguration);
228
229 GeoRoutesClientConfiguration m_clientConfiguration;
230 std::shared_ptr<GeoRoutesEndpointProviderBase> m_endpointProvider;
231 };
232
233} // namespace GeoRoutes
234} // namespace Aws
static const char * GetServiceName()
Aws::Client::AWSJsonClient BASECLASS
Model::CalculateRouteMatrixOutcomeCallable CalculateRouteMatrixCallable(const CalculateRouteMatrixRequestT &request) const
virtual Model::OptimizeWaypointsOutcome OptimizeWaypoints(const Model::OptimizeWaypointsRequest &request) const
Model::OptimizeWaypointsOutcomeCallable OptimizeWaypointsCallable(const OptimizeWaypointsRequestT &request) const
GeoRoutesClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< GeoRoutesEndpointProviderBase > endpointProvider=nullptr, const Aws::GeoRoutes::GeoRoutesClientConfiguration &clientConfiguration=Aws::GeoRoutes::GeoRoutesClientConfiguration())
GeoRoutesClient(const Aws::GeoRoutes::GeoRoutesClientConfiguration &clientConfiguration=Aws::GeoRoutes::GeoRoutesClientConfiguration(), std::shared_ptr< GeoRoutesEndpointProviderBase > endpointProvider=nullptr)
virtual Model::CalculateIsolinesOutcome CalculateIsolines(const Model::CalculateIsolinesRequest &request) const
void CalculateRouteMatrixAsync(const CalculateRouteMatrixRequestT &request, const CalculateRouteMatrixResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
virtual Model::CalculateRoutesOutcome CalculateRoutes(const Model::CalculateRoutesRequest &request) const
Model::CalculateRoutesOutcomeCallable CalculateRoutesCallable(const CalculateRoutesRequestT &request) const
Model::CalculateIsolinesOutcomeCallable CalculateIsolinesCallable(const CalculateIsolinesRequestT &request) const
void CalculateRoutesAsync(const CalculateRoutesRequestT &request, const CalculateRoutesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void OptimizeWaypointsAsync(const OptimizeWaypointsRequestT &request, const OptimizeWaypointsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
void OverrideEndpoint(const Aws::String &endpoint)
virtual Model::SnapToRoadsOutcome SnapToRoads(const Model::SnapToRoadsRequest &request) const
virtual Model::CalculateRouteMatrixOutcome CalculateRouteMatrix(const Model::CalculateRouteMatrixRequest &request) const
GeoRoutesClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
static const char * GetAllocationTag()
GeoRoutesClientConfiguration ClientConfigurationType
Model::SnapToRoadsOutcomeCallable SnapToRoadsCallable(const SnapToRoadsRequestT &request) const
GeoRoutesClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
void CalculateIsolinesAsync(const CalculateIsolinesRequestT &request, const CalculateIsolinesResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
GeoRoutesEndpointProvider EndpointProviderType
GeoRoutesClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< GeoRoutesEndpointProviderBase > endpointProvider=nullptr, const Aws::GeoRoutes::GeoRoutesClientConfiguration &clientConfiguration=Aws::GeoRoutes::GeoRoutesClientConfiguration())
GeoRoutesClient(const Aws::Client::ClientConfiguration &clientConfiguration)
std::shared_ptr< GeoRoutesEndpointProviderBase > & accessEndpointProvider()
void SnapToRoadsAsync(const SnapToRoadsRequestT &request, const SnapToRoadsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
std::future< CalculateRoutesOutcome > CalculateRoutesOutcomeCallable
std::future< CalculateRouteMatrixOutcome > CalculateRouteMatrixOutcomeCallable
std::future< OptimizeWaypointsOutcome > OptimizeWaypointsOutcomeCallable
std::future< SnapToRoadsOutcome > SnapToRoadsOutcomeCallable
std::future< CalculateIsolinesOutcome > CalculateIsolinesOutcomeCallable
std::function< void(const GeoRoutesClient *, const Model::CalculateIsolinesRequest &, const Model::CalculateIsolinesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CalculateIsolinesResponseReceivedHandler
std::function< void(const GeoRoutesClient *, const Model::CalculateRouteMatrixRequest &, const Model::CalculateRouteMatrixOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CalculateRouteMatrixResponseReceivedHandler
std::function< void(const GeoRoutesClient *, const Model::CalculateRoutesRequest &, const Model::CalculateRoutesOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > CalculateRoutesResponseReceivedHandler
std::function< void(const GeoRoutesClient *, const Model::OptimizeWaypointsRequest &, const Model::OptimizeWaypointsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > OptimizeWaypointsResponseReceivedHandler
std::function< void(const GeoRoutesClient *, const Model::SnapToRoadsRequest &, const Model::SnapToRoadsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > SnapToRoadsResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String