AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CalculateRouteMatrixRequest.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/GeoRoutesRequest.h>
9#include <aws/geo-routes/model/RouteMatrixAllowOptions.h>
10#include <aws/geo-routes/model/RouteMatrixAvoidanceOptions.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/geo-routes/model/RouteMatrixExclusionOptions.h>
14#include <aws/geo-routes/model/RoutingObjective.h>
15#include <aws/geo-routes/model/RouteMatrixBoundary.h>
16#include <aws/geo-routes/model/RouteMatrixTrafficOptions.h>
17#include <aws/geo-routes/model/RouteMatrixTravelMode.h>
18#include <aws/geo-routes/model/RouteMatrixTravelModeOptions.h>
19#include <aws/geo-routes/model/RouteMatrixDestination.h>
20#include <aws/geo-routes/model/RouteMatrixOrigin.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Http
26{
27 class URI;
28} //namespace Http
29namespace GeoRoutes
30{
31namespace Model
32{
33
37 {
38 public:
39 AWS_GEOROUTES_API CalculateRouteMatrixRequest();
40
41 // Service request name is the Operation name which will send this request out,
42 // each operation should has unique request name, so that we can get operation's name from this request.
43 // Note: this is not true for response, multiple operations may have the same response name,
44 // so we can not get operation's name from response.
45 inline virtual const char* GetServiceRequestName() const override { return "CalculateRouteMatrix"; }
46
47 AWS_GEOROUTES_API Aws::String SerializePayload() const override;
48
49 AWS_GEOROUTES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
50
51
53
56 inline const RouteMatrixAllowOptions& GetAllow() const{ return m_allow; }
57 inline bool AllowHasBeenSet() const { return m_allowHasBeenSet; }
58 inline void SetAllow(const RouteMatrixAllowOptions& value) { m_allowHasBeenSet = true; m_allow = value; }
59 inline void SetAllow(RouteMatrixAllowOptions&& value) { m_allowHasBeenSet = true; m_allow = std::move(value); }
60 inline CalculateRouteMatrixRequest& WithAllow(const RouteMatrixAllowOptions& value) { SetAllow(value); return *this;}
61 inline CalculateRouteMatrixRequest& WithAllow(RouteMatrixAllowOptions&& value) { SetAllow(std::move(value)); return *this;}
63
65
71 inline const RouteMatrixAvoidanceOptions& GetAvoid() const{ return m_avoid; }
72 inline bool AvoidHasBeenSet() const { return m_avoidHasBeenSet; }
73 inline void SetAvoid(const RouteMatrixAvoidanceOptions& value) { m_avoidHasBeenSet = true; m_avoid = value; }
74 inline void SetAvoid(RouteMatrixAvoidanceOptions&& value) { m_avoidHasBeenSet = true; m_avoid = std::move(value); }
75 inline CalculateRouteMatrixRequest& WithAvoid(const RouteMatrixAvoidanceOptions& value) { SetAvoid(value); return *this;}
76 inline CalculateRouteMatrixRequest& WithAvoid(RouteMatrixAvoidanceOptions&& value) { SetAvoid(std::move(value)); return *this;}
78
80
83 inline bool GetDepartNow() const{ return m_departNow; }
84 inline bool DepartNowHasBeenSet() const { return m_departNowHasBeenSet; }
85 inline void SetDepartNow(bool value) { m_departNowHasBeenSet = true; m_departNow = value; }
86 inline CalculateRouteMatrixRequest& WithDepartNow(bool value) { SetDepartNow(value); return *this;}
88
90
96 inline const Aws::String& GetDepartureTime() const{ return m_departureTime; }
97 inline bool DepartureTimeHasBeenSet() const { return m_departureTimeHasBeenSet; }
98 inline void SetDepartureTime(const Aws::String& value) { m_departureTimeHasBeenSet = true; m_departureTime = value; }
99 inline void SetDepartureTime(Aws::String&& value) { m_departureTimeHasBeenSet = true; m_departureTime = std::move(value); }
100 inline void SetDepartureTime(const char* value) { m_departureTimeHasBeenSet = true; m_departureTime.assign(value); }
101 inline CalculateRouteMatrixRequest& WithDepartureTime(const Aws::String& value) { SetDepartureTime(value); return *this;}
102 inline CalculateRouteMatrixRequest& WithDepartureTime(Aws::String&& value) { SetDepartureTime(std::move(value)); return *this;}
103 inline CalculateRouteMatrixRequest& WithDepartureTime(const char* value) { SetDepartureTime(value); return *this;}
105
107
110 inline const Aws::Vector<RouteMatrixDestination>& GetDestinations() const{ return m_destinations; }
111 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
112 inline void SetDestinations(const Aws::Vector<RouteMatrixDestination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
113 inline void SetDestinations(Aws::Vector<RouteMatrixDestination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
116 inline CalculateRouteMatrixRequest& AddDestinations(const RouteMatrixDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
117 inline CalculateRouteMatrixRequest& AddDestinations(RouteMatrixDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
119
121
124 inline const RouteMatrixExclusionOptions& GetExclude() const{ return m_exclude; }
125 inline bool ExcludeHasBeenSet() const { return m_excludeHasBeenSet; }
126 inline void SetExclude(const RouteMatrixExclusionOptions& value) { m_excludeHasBeenSet = true; m_exclude = value; }
127 inline void SetExclude(RouteMatrixExclusionOptions&& value) { m_excludeHasBeenSet = true; m_exclude = std::move(value); }
129 inline CalculateRouteMatrixRequest& WithExclude(RouteMatrixExclusionOptions&& value) { SetExclude(std::move(value)); return *this;}
131
133
137 inline const Aws::String& GetKey() const{ return m_key; }
138 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
139 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
140 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
141 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
142 inline CalculateRouteMatrixRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
143 inline CalculateRouteMatrixRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
144 inline CalculateRouteMatrixRequest& WithKey(const char* value) { SetKey(value); return *this;}
146
148
152 inline const RoutingObjective& GetOptimizeRoutingFor() const{ return m_optimizeRoutingFor; }
153 inline bool OptimizeRoutingForHasBeenSet() const { return m_optimizeRoutingForHasBeenSet; }
154 inline void SetOptimizeRoutingFor(const RoutingObjective& value) { m_optimizeRoutingForHasBeenSet = true; m_optimizeRoutingFor = value; }
155 inline void SetOptimizeRoutingFor(RoutingObjective&& value) { m_optimizeRoutingForHasBeenSet = true; m_optimizeRoutingFor = std::move(value); }
159
161
164 inline const Aws::Vector<RouteMatrixOrigin>& GetOrigins() const{ return m_origins; }
165 inline bool OriginsHasBeenSet() const { return m_originsHasBeenSet; }
166 inline void SetOrigins(const Aws::Vector<RouteMatrixOrigin>& value) { m_originsHasBeenSet = true; m_origins = value; }
167 inline void SetOrigins(Aws::Vector<RouteMatrixOrigin>&& value) { m_originsHasBeenSet = true; m_origins = std::move(value); }
169 inline CalculateRouteMatrixRequest& WithOrigins(Aws::Vector<RouteMatrixOrigin>&& value) { SetOrigins(std::move(value)); return *this;}
170 inline CalculateRouteMatrixRequest& AddOrigins(const RouteMatrixOrigin& value) { m_originsHasBeenSet = true; m_origins.push_back(value); return *this; }
171 inline CalculateRouteMatrixRequest& AddOrigins(RouteMatrixOrigin&& value) { m_originsHasBeenSet = true; m_origins.push_back(std::move(value)); return *this; }
173
175
181 inline const RouteMatrixBoundary& GetRoutingBoundary() const{ return m_routingBoundary; }
182 inline bool RoutingBoundaryHasBeenSet() const { return m_routingBoundaryHasBeenSet; }
183 inline void SetRoutingBoundary(const RouteMatrixBoundary& value) { m_routingBoundaryHasBeenSet = true; m_routingBoundary = value; }
184 inline void SetRoutingBoundary(RouteMatrixBoundary&& value) { m_routingBoundaryHasBeenSet = true; m_routingBoundary = std::move(value); }
188
190
193 inline const RouteMatrixTrafficOptions& GetTraffic() const{ return m_traffic; }
194 inline bool TrafficHasBeenSet() const { return m_trafficHasBeenSet; }
195 inline void SetTraffic(const RouteMatrixTrafficOptions& value) { m_trafficHasBeenSet = true; m_traffic = value; }
196 inline void SetTraffic(RouteMatrixTrafficOptions&& value) { m_trafficHasBeenSet = true; m_traffic = std::move(value); }
198 inline CalculateRouteMatrixRequest& WithTraffic(RouteMatrixTrafficOptions&& value) { SetTraffic(std::move(value)); return *this;}
200
202
207 inline const RouteMatrixTravelMode& GetTravelMode() const{ return m_travelMode; }
208 inline bool TravelModeHasBeenSet() const { return m_travelModeHasBeenSet; }
209 inline void SetTravelMode(const RouteMatrixTravelMode& value) { m_travelModeHasBeenSet = true; m_travelMode = value; }
210 inline void SetTravelMode(RouteMatrixTravelMode&& value) { m_travelModeHasBeenSet = true; m_travelMode = std::move(value); }
212 inline CalculateRouteMatrixRequest& WithTravelMode(RouteMatrixTravelMode&& value) { SetTravelMode(std::move(value)); return *this;}
214
216
219 inline const RouteMatrixTravelModeOptions& GetTravelModeOptions() const{ return m_travelModeOptions; }
220 inline bool TravelModeOptionsHasBeenSet() const { return m_travelModeOptionsHasBeenSet; }
221 inline void SetTravelModeOptions(const RouteMatrixTravelModeOptions& value) { m_travelModeOptionsHasBeenSet = true; m_travelModeOptions = value; }
222 inline void SetTravelModeOptions(RouteMatrixTravelModeOptions&& value) { m_travelModeOptionsHasBeenSet = true; m_travelModeOptions = std::move(value); }
226 private:
227
229 bool m_allowHasBeenSet = false;
230
232 bool m_avoidHasBeenSet = false;
233
234 bool m_departNow;
235 bool m_departNowHasBeenSet = false;
236
237 Aws::String m_departureTime;
238 bool m_departureTimeHasBeenSet = false;
239
241 bool m_destinationsHasBeenSet = false;
242
244 bool m_excludeHasBeenSet = false;
245
246 Aws::String m_key;
247 bool m_keyHasBeenSet = false;
248
249 RoutingObjective m_optimizeRoutingFor;
250 bool m_optimizeRoutingForHasBeenSet = false;
251
253 bool m_originsHasBeenSet = false;
254
255 RouteMatrixBoundary m_routingBoundary;
256 bool m_routingBoundaryHasBeenSet = false;
257
259 bool m_trafficHasBeenSet = false;
260
261 RouteMatrixTravelMode m_travelMode;
262 bool m_travelModeHasBeenSet = false;
263
264 RouteMatrixTravelModeOptions m_travelModeOptions;
265 bool m_travelModeOptionsHasBeenSet = false;
266 };
267
268} // namespace Model
269} // namespace GeoRoutes
270} // namespace Aws
CalculateRouteMatrixRequest & WithDepartNow(bool value)
CalculateRouteMatrixRequest & WithDestinations(Aws::Vector< RouteMatrixDestination > &&value)
CalculateRouteMatrixRequest & WithDepartureTime(const Aws::String &value)
const RouteMatrixExclusionOptions & GetExclude() const
CalculateRouteMatrixRequest & WithOptimizeRoutingFor(const RoutingObjective &value)
CalculateRouteMatrixRequest & AddDestinations(const RouteMatrixDestination &value)
CalculateRouteMatrixRequest & WithExclude(const RouteMatrixExclusionOptions &value)
CalculateRouteMatrixRequest & WithKey(const char *value)
const Aws::Vector< RouteMatrixDestination > & GetDestinations() const
CalculateRouteMatrixRequest & WithTravelMode(const RouteMatrixTravelMode &value)
void SetOrigins(const Aws::Vector< RouteMatrixOrigin > &value)
void SetDestinations(Aws::Vector< RouteMatrixDestination > &&value)
CalculateRouteMatrixRequest & WithOptimizeRoutingFor(RoutingObjective &&value)
CalculateRouteMatrixRequest & WithKey(Aws::String &&value)
CalculateRouteMatrixRequest & AddOrigins(const RouteMatrixOrigin &value)
void SetOrigins(Aws::Vector< RouteMatrixOrigin > &&value)
CalculateRouteMatrixRequest & WithAvoid(const RouteMatrixAvoidanceOptions &value)
CalculateRouteMatrixRequest & WithTravelModeOptions(RouteMatrixTravelModeOptions &&value)
CalculateRouteMatrixRequest & WithAllow(const RouteMatrixAllowOptions &value)
CalculateRouteMatrixRequest & WithDepartureTime(const char *value)
CalculateRouteMatrixRequest & WithAllow(RouteMatrixAllowOptions &&value)
CalculateRouteMatrixRequest & WithTravelModeOptions(const RouteMatrixTravelModeOptions &value)
CalculateRouteMatrixRequest & WithDepartureTime(Aws::String &&value)
void SetTravelModeOptions(const RouteMatrixTravelModeOptions &value)
CalculateRouteMatrixRequest & WithKey(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CalculateRouteMatrixRequest & AddDestinations(RouteMatrixDestination &&value)
CalculateRouteMatrixRequest & WithOrigins(Aws::Vector< RouteMatrixOrigin > &&value)
void SetAvoid(const RouteMatrixAvoidanceOptions &value)
const RouteMatrixAvoidanceOptions & GetAvoid() const
AWS_GEOROUTES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const RouteMatrixTravelModeOptions & GetTravelModeOptions() const
CalculateRouteMatrixRequest & WithTraffic(RouteMatrixTrafficOptions &&value)
const Aws::Vector< RouteMatrixOrigin > & GetOrigins() const
CalculateRouteMatrixRequest & WithExclude(RouteMatrixExclusionOptions &&value)
CalculateRouteMatrixRequest & WithOrigins(const Aws::Vector< RouteMatrixOrigin > &value)
CalculateRouteMatrixRequest & WithTravelMode(RouteMatrixTravelMode &&value)
void SetTravelModeOptions(RouteMatrixTravelModeOptions &&value)
void SetDestinations(const Aws::Vector< RouteMatrixDestination > &value)
CalculateRouteMatrixRequest & WithTraffic(const RouteMatrixTrafficOptions &value)
void SetTraffic(const RouteMatrixTrafficOptions &value)
CalculateRouteMatrixRequest & WithAvoid(RouteMatrixAvoidanceOptions &&value)
void SetExclude(const RouteMatrixExclusionOptions &value)
CalculateRouteMatrixRequest & WithDestinations(const Aws::Vector< RouteMatrixDestination > &value)
CalculateRouteMatrixRequest & WithRoutingBoundary(const RouteMatrixBoundary &value)
AWS_GEOROUTES_API Aws::String SerializePayload() const override
CalculateRouteMatrixRequest & WithRoutingBoundary(RouteMatrixBoundary &&value)
CalculateRouteMatrixRequest & AddOrigins(RouteMatrixOrigin &&value)
void SetAllow(const RouteMatrixAllowOptions &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector