AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CalculateRouteRequest.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/location/LocationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/location/model/TravelMode.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/location/model/DistanceUnit.h>
14#include <aws/location/model/CalculateRouteCarModeOptions.h>
15#include <aws/location/model/CalculateRouteTruckModeOptions.h>
16#include <aws/location/model/OptimizationMode.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Http
22{
23 class URI;
24} //namespace Http
25namespace LocationService
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_LOCATIONSERVICE_API CalculateRouteRequest();
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CalculateRoute"; }
42
43 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
44
45 AWS_LOCATIONSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
46
47
49
53 inline const Aws::String& GetCalculatorName() const{ return m_calculatorName; }
54 inline bool CalculatorNameHasBeenSet() const { return m_calculatorNameHasBeenSet; }
55 inline void SetCalculatorName(const Aws::String& value) { m_calculatorNameHasBeenSet = true; m_calculatorName = value; }
56 inline void SetCalculatorName(Aws::String&& value) { m_calculatorNameHasBeenSet = true; m_calculatorName = std::move(value); }
57 inline void SetCalculatorName(const char* value) { m_calculatorNameHasBeenSet = true; m_calculatorName.assign(value); }
58 inline CalculateRouteRequest& WithCalculatorName(const Aws::String& value) { SetCalculatorName(value); return *this;}
59 inline CalculateRouteRequest& WithCalculatorName(Aws::String&& value) { SetCalculatorName(std::move(value)); return *this;}
60 inline CalculateRouteRequest& WithCalculatorName(const char* value) { SetCalculatorName(value); return *this;}
62
64
77 inline const Aws::Vector<double>& GetDeparturePosition() const{ return m_departurePosition; }
78 inline bool DeparturePositionHasBeenSet() const { return m_departurePositionHasBeenSet; }
79 inline void SetDeparturePosition(const Aws::Vector<double>& value) { m_departurePositionHasBeenSet = true; m_departurePosition = value; }
80 inline void SetDeparturePosition(Aws::Vector<double>&& value) { m_departurePositionHasBeenSet = true; m_departurePosition = std::move(value); }
82 inline CalculateRouteRequest& WithDeparturePosition(Aws::Vector<double>&& value) { SetDeparturePosition(std::move(value)); return *this;}
83 inline CalculateRouteRequest& AddDeparturePosition(double value) { m_departurePositionHasBeenSet = true; m_departurePosition.push_back(value); return *this; }
85
87
98 inline const Aws::Vector<double>& GetDestinationPosition() const{ return m_destinationPosition; }
99 inline bool DestinationPositionHasBeenSet() const { return m_destinationPositionHasBeenSet; }
100 inline void SetDestinationPosition(const Aws::Vector<double>& value) { m_destinationPositionHasBeenSet = true; m_destinationPosition = value; }
101 inline void SetDestinationPosition(Aws::Vector<double>&& value) { m_destinationPositionHasBeenSet = true; m_destinationPosition = std::move(value); }
104 inline CalculateRouteRequest& AddDestinationPosition(double value) { m_destinationPositionHasBeenSet = true; m_destinationPosition.push_back(value); return *this; }
106
108
123 inline const Aws::Vector<Aws::Vector<double>>& GetWaypointPositions() const{ return m_waypointPositions; }
124 inline bool WaypointPositionsHasBeenSet() const { return m_waypointPositionsHasBeenSet; }
125 inline void SetWaypointPositions(const Aws::Vector<Aws::Vector<double>>& value) { m_waypointPositionsHasBeenSet = true; m_waypointPositions = value; }
126 inline void SetWaypointPositions(Aws::Vector<Aws::Vector<double>>&& value) { m_waypointPositionsHasBeenSet = true; m_waypointPositions = std::move(value); }
129 inline CalculateRouteRequest& AddWaypointPositions(const Aws::Vector<double>& value) { m_waypointPositionsHasBeenSet = true; m_waypointPositions.push_back(value); return *this; }
130 inline CalculateRouteRequest& AddWaypointPositions(Aws::Vector<double>&& value) { m_waypointPositionsHasBeenSet = true; m_waypointPositions.push_back(std::move(value)); return *this; }
132
134
151 inline const TravelMode& GetTravelMode() const{ return m_travelMode; }
152 inline bool TravelModeHasBeenSet() const { return m_travelModeHasBeenSet; }
153 inline void SetTravelMode(const TravelMode& value) { m_travelModeHasBeenSet = true; m_travelMode = value; }
154 inline void SetTravelMode(TravelMode&& value) { m_travelModeHasBeenSet = true; m_travelMode = std::move(value); }
155 inline CalculateRouteRequest& WithTravelMode(const TravelMode& value) { SetTravelMode(value); return *this;}
156 inline CalculateRouteRequest& WithTravelMode(TravelMode&& value) { SetTravelMode(std::move(value)); return *this;}
158
160
168 inline const Aws::Utils::DateTime& GetDepartureTime() const{ return m_departureTime; }
169 inline bool DepartureTimeHasBeenSet() const { return m_departureTimeHasBeenSet; }
170 inline void SetDepartureTime(const Aws::Utils::DateTime& value) { m_departureTimeHasBeenSet = true; m_departureTime = value; }
171 inline void SetDepartureTime(Aws::Utils::DateTime&& value) { m_departureTimeHasBeenSet = true; m_departureTime = std::move(value); }
173 inline CalculateRouteRequest& WithDepartureTime(Aws::Utils::DateTime&& value) { SetDepartureTime(std::move(value)); return *this;}
175
177
184 inline bool GetDepartNow() const{ return m_departNow; }
185 inline bool DepartNowHasBeenSet() const { return m_departNowHasBeenSet; }
186 inline void SetDepartNow(bool value) { m_departNowHasBeenSet = true; m_departNow = value; }
187 inline CalculateRouteRequest& WithDepartNow(bool value) { SetDepartNow(value); return *this;}
189
191
195 inline const DistanceUnit& GetDistanceUnit() const{ return m_distanceUnit; }
196 inline bool DistanceUnitHasBeenSet() const { return m_distanceUnitHasBeenSet; }
197 inline void SetDistanceUnit(const DistanceUnit& value) { m_distanceUnitHasBeenSet = true; m_distanceUnit = value; }
198 inline void SetDistanceUnit(DistanceUnit&& value) { m_distanceUnitHasBeenSet = true; m_distanceUnit = std::move(value); }
199 inline CalculateRouteRequest& WithDistanceUnit(const DistanceUnit& value) { SetDistanceUnit(value); return *this;}
200 inline CalculateRouteRequest& WithDistanceUnit(DistanceUnit&& value) { SetDistanceUnit(std::move(value)); return *this;}
202
204
209 inline bool GetIncludeLegGeometry() const{ return m_includeLegGeometry; }
210 inline bool IncludeLegGeometryHasBeenSet() const { return m_includeLegGeometryHasBeenSet; }
211 inline void SetIncludeLegGeometry(bool value) { m_includeLegGeometryHasBeenSet = true; m_includeLegGeometry = value; }
212 inline CalculateRouteRequest& WithIncludeLegGeometry(bool value) { SetIncludeLegGeometry(value); return *this;}
214
216
221 inline const CalculateRouteCarModeOptions& GetCarModeOptions() const{ return m_carModeOptions; }
222 inline bool CarModeOptionsHasBeenSet() const { return m_carModeOptionsHasBeenSet; }
223 inline void SetCarModeOptions(const CalculateRouteCarModeOptions& value) { m_carModeOptionsHasBeenSet = true; m_carModeOptions = value; }
224 inline void SetCarModeOptions(CalculateRouteCarModeOptions&& value) { m_carModeOptionsHasBeenSet = true; m_carModeOptions = std::move(value); }
228
230
236 inline const CalculateRouteTruckModeOptions& GetTruckModeOptions() const{ return m_truckModeOptions; }
237 inline bool TruckModeOptionsHasBeenSet() const { return m_truckModeOptionsHasBeenSet; }
238 inline void SetTruckModeOptions(const CalculateRouteTruckModeOptions& value) { m_truckModeOptionsHasBeenSet = true; m_truckModeOptions = value; }
239 inline void SetTruckModeOptions(CalculateRouteTruckModeOptions&& value) { m_truckModeOptionsHasBeenSet = true; m_truckModeOptions = std::move(value); }
243
245
251 inline const Aws::Utils::DateTime& GetArrivalTime() const{ return m_arrivalTime; }
252 inline bool ArrivalTimeHasBeenSet() const { return m_arrivalTimeHasBeenSet; }
253 inline void SetArrivalTime(const Aws::Utils::DateTime& value) { m_arrivalTimeHasBeenSet = true; m_arrivalTime = value; }
254 inline void SetArrivalTime(Aws::Utils::DateTime&& value) { m_arrivalTimeHasBeenSet = true; m_arrivalTime = std::move(value); }
255 inline CalculateRouteRequest& WithArrivalTime(const Aws::Utils::DateTime& value) { SetArrivalTime(value); return *this;}
256 inline CalculateRouteRequest& WithArrivalTime(Aws::Utils::DateTime&& value) { SetArrivalTime(std::move(value)); return *this;}
258
260
263 inline const OptimizationMode& GetOptimizeFor() const{ return m_optimizeFor; }
264 inline bool OptimizeForHasBeenSet() const { return m_optimizeForHasBeenSet; }
265 inline void SetOptimizeFor(const OptimizationMode& value) { m_optimizeForHasBeenSet = true; m_optimizeFor = value; }
266 inline void SetOptimizeFor(OptimizationMode&& value) { m_optimizeForHasBeenSet = true; m_optimizeFor = std::move(value); }
267 inline CalculateRouteRequest& WithOptimizeFor(const OptimizationMode& value) { SetOptimizeFor(value); return *this;}
268 inline CalculateRouteRequest& WithOptimizeFor(OptimizationMode&& value) { SetOptimizeFor(std::move(value)); return *this;}
270
272
277 inline const Aws::String& GetKey() const{ return m_key; }
278 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
279 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
280 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
281 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
282 inline CalculateRouteRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
283 inline CalculateRouteRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
284 inline CalculateRouteRequest& WithKey(const char* value) { SetKey(value); return *this;}
286 private:
287
288 Aws::String m_calculatorName;
289 bool m_calculatorNameHasBeenSet = false;
290
291 Aws::Vector<double> m_departurePosition;
292 bool m_departurePositionHasBeenSet = false;
293
294 Aws::Vector<double> m_destinationPosition;
295 bool m_destinationPositionHasBeenSet = false;
296
297 Aws::Vector<Aws::Vector<double>> m_waypointPositions;
298 bool m_waypointPositionsHasBeenSet = false;
299
300 TravelMode m_travelMode;
301 bool m_travelModeHasBeenSet = false;
302
303 Aws::Utils::DateTime m_departureTime;
304 bool m_departureTimeHasBeenSet = false;
305
306 bool m_departNow;
307 bool m_departNowHasBeenSet = false;
308
309 DistanceUnit m_distanceUnit;
310 bool m_distanceUnitHasBeenSet = false;
311
312 bool m_includeLegGeometry;
313 bool m_includeLegGeometryHasBeenSet = false;
314
315 CalculateRouteCarModeOptions m_carModeOptions;
316 bool m_carModeOptionsHasBeenSet = false;
317
318 CalculateRouteTruckModeOptions m_truckModeOptions;
319 bool m_truckModeOptionsHasBeenSet = false;
320
321 Aws::Utils::DateTime m_arrivalTime;
322 bool m_arrivalTimeHasBeenSet = false;
323
324 OptimizationMode m_optimizeFor;
325 bool m_optimizeForHasBeenSet = false;
326
327 Aws::String m_key;
328 bool m_keyHasBeenSet = false;
329 };
330
331} // namespace Model
332} // namespace LocationService
333} // namespace Aws
CalculateRouteRequest & WithOptimizeFor(OptimizationMode &&value)
const CalculateRouteCarModeOptions & GetCarModeOptions() const
void SetDestinationPosition(Aws::Vector< double > &&value)
CalculateRouteRequest & WithDeparturePosition(const Aws::Vector< double > &value)
CalculateRouteRequest & WithKey(const Aws::String &value)
void SetDeparturePosition(const Aws::Vector< double > &value)
CalculateRouteRequest & WithDistanceUnit(const DistanceUnit &value)
void SetCarModeOptions(const CalculateRouteCarModeOptions &value)
const Aws::Vector< double > & GetDeparturePosition() const
CalculateRouteRequest & WithCarModeOptions(const CalculateRouteCarModeOptions &value)
CalculateRouteRequest & WithDepartureTime(Aws::Utils::DateTime &&value)
CalculateRouteRequest & WithWaypointPositions(Aws::Vector< Aws::Vector< double > > &&value)
CalculateRouteRequest & WithTravelMode(TravelMode &&value)
const Aws::Vector< Aws::Vector< double > > & GetWaypointPositions() const
void SetDestinationPosition(const Aws::Vector< double > &value)
CalculateRouteRequest & WithKey(const char *value)
CalculateRouteRequest & WithIncludeLegGeometry(bool value)
CalculateRouteRequest & AddWaypointPositions(Aws::Vector< double > &&value)
CalculateRouteRequest & WithDestinationPosition(const Aws::Vector< double > &value)
const CalculateRouteTruckModeOptions & GetTruckModeOptions() const
CalculateRouteRequest & AddDestinationPosition(double value)
CalculateRouteRequest & WithTruckModeOptions(const CalculateRouteTruckModeOptions &value)
CalculateRouteRequest & WithCarModeOptions(CalculateRouteCarModeOptions &&value)
CalculateRouteRequest & WithKey(Aws::String &&value)
const Aws::Vector< double > & GetDestinationPosition() const
CalculateRouteRequest & WithCalculatorName(const char *value)
virtual const char * GetServiceRequestName() const override
CalculateRouteRequest & AddDeparturePosition(double value)
void SetWaypointPositions(const Aws::Vector< Aws::Vector< double > > &value)
void SetDeparturePosition(Aws::Vector< double > &&value)
void SetCarModeOptions(CalculateRouteCarModeOptions &&value)
CalculateRouteRequest & WithCalculatorName(Aws::String &&value)
void SetArrivalTime(const Aws::Utils::DateTime &value)
CalculateRouteRequest & WithCalculatorName(const Aws::String &value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
CalculateRouteRequest & AddWaypointPositions(const Aws::Vector< double > &value)
CalculateRouteRequest & WithTravelMode(const TravelMode &value)
CalculateRouteRequest & WithOptimizeFor(const OptimizationMode &value)
void SetTruckModeOptions(CalculateRouteTruckModeOptions &&value)
CalculateRouteRequest & WithDestinationPosition(Aws::Vector< double > &&value)
CalculateRouteRequest & WithWaypointPositions(const Aws::Vector< Aws::Vector< double > > &value)
void SetDepartureTime(const Aws::Utils::DateTime &value)
void SetTruckModeOptions(const CalculateRouteTruckModeOptions &value)
const Aws::Utils::DateTime & GetDepartureTime() const
CalculateRouteRequest & WithArrivalTime(Aws::Utils::DateTime &&value)
CalculateRouteRequest & WithDepartureTime(const Aws::Utils::DateTime &value)
CalculateRouteRequest & WithArrivalTime(const Aws::Utils::DateTime &value)
CalculateRouteRequest & WithTruckModeOptions(CalculateRouteTruckModeOptions &&value)
void SetWaypointPositions(Aws::Vector< Aws::Vector< double > > &&value)
CalculateRouteRequest & WithDistanceUnit(DistanceUnit &&value)
const Aws::Utils::DateTime & GetArrivalTime() const
CalculateRouteRequest & WithDeparturePosition(Aws::Vector< double > &&value)
AWS_LOCATIONSERVICE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector