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/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 <utility>
17
18namespace Aws
19{
20namespace Http
21{
22 class URI;
23} //namespace Http
24namespace LocationService
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_LOCATIONSERVICE_API CalculateRouteMatrixRequest();
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "CalculateRouteMatrix"; }
41
42 AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override;
43
44 AWS_LOCATIONSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
45
46
48
52 inline const Aws::String& GetCalculatorName() const{ return m_calculatorName; }
53 inline bool CalculatorNameHasBeenSet() const { return m_calculatorNameHasBeenSet; }
54 inline void SetCalculatorName(const Aws::String& value) { m_calculatorNameHasBeenSet = true; m_calculatorName = value; }
55 inline void SetCalculatorName(Aws::String&& value) { m_calculatorNameHasBeenSet = true; m_calculatorName = std::move(value); }
56 inline void SetCalculatorName(const char* value) { m_calculatorNameHasBeenSet = true; m_calculatorName.assign(value); }
57 inline CalculateRouteMatrixRequest& WithCalculatorName(const Aws::String& value) { SetCalculatorName(value); return *this;}
58 inline CalculateRouteMatrixRequest& WithCalculatorName(Aws::String&& value) { SetCalculatorName(std::move(value)); return *this;}
59 inline CalculateRouteMatrixRequest& WithCalculatorName(const char* value) { SetCalculatorName(value); return *this;}
61
63
81 inline const Aws::Vector<Aws::Vector<double>>& GetDeparturePositions() const{ return m_departurePositions; }
82 inline bool DeparturePositionsHasBeenSet() const { return m_departurePositionsHasBeenSet; }
83 inline void SetDeparturePositions(const Aws::Vector<Aws::Vector<double>>& value) { m_departurePositionsHasBeenSet = true; m_departurePositions = value; }
84 inline void SetDeparturePositions(Aws::Vector<Aws::Vector<double>>&& value) { m_departurePositionsHasBeenSet = true; m_departurePositions = std::move(value); }
87 inline CalculateRouteMatrixRequest& AddDeparturePositions(const Aws::Vector<double>& value) { m_departurePositionsHasBeenSet = true; m_departurePositions.push_back(value); return *this; }
88 inline CalculateRouteMatrixRequest& AddDeparturePositions(Aws::Vector<double>&& value) { m_departurePositionsHasBeenSet = true; m_departurePositions.push_back(std::move(value)); return *this; }
90
92
110 inline const Aws::Vector<Aws::Vector<double>>& GetDestinationPositions() const{ return m_destinationPositions; }
111 inline bool DestinationPositionsHasBeenSet() const { return m_destinationPositionsHasBeenSet; }
112 inline void SetDestinationPositions(const Aws::Vector<Aws::Vector<double>>& value) { m_destinationPositionsHasBeenSet = true; m_destinationPositions = value; }
113 inline void SetDestinationPositions(Aws::Vector<Aws::Vector<double>>&& value) { m_destinationPositionsHasBeenSet = true; m_destinationPositions = std::move(value); }
116 inline CalculateRouteMatrixRequest& AddDestinationPositions(const Aws::Vector<double>& value) { m_destinationPositionsHasBeenSet = true; m_destinationPositions.push_back(value); return *this; }
117 inline CalculateRouteMatrixRequest& AddDestinationPositions(Aws::Vector<double>&& value) { m_destinationPositionsHasBeenSet = true; m_destinationPositions.push_back(std::move(value)); return *this; }
119
121
136 inline const TravelMode& GetTravelMode() const{ return m_travelMode; }
137 inline bool TravelModeHasBeenSet() const { return m_travelModeHasBeenSet; }
138 inline void SetTravelMode(const TravelMode& value) { m_travelModeHasBeenSet = true; m_travelMode = value; }
139 inline void SetTravelMode(TravelMode&& value) { m_travelModeHasBeenSet = true; m_travelMode = std::move(value); }
140 inline CalculateRouteMatrixRequest& WithTravelMode(const TravelMode& value) { SetTravelMode(value); return *this;}
141 inline CalculateRouteMatrixRequest& WithTravelMode(TravelMode&& value) { SetTravelMode(std::move(value)); return *this;}
143
145
156 inline const Aws::Utils::DateTime& GetDepartureTime() const{ return m_departureTime; }
157 inline bool DepartureTimeHasBeenSet() const { return m_departureTimeHasBeenSet; }
158 inline void SetDepartureTime(const Aws::Utils::DateTime& value) { m_departureTimeHasBeenSet = true; m_departureTime = value; }
159 inline void SetDepartureTime(Aws::Utils::DateTime&& value) { m_departureTimeHasBeenSet = true; m_departureTime = std::move(value); }
161 inline CalculateRouteMatrixRequest& WithDepartureTime(Aws::Utils::DateTime&& value) { SetDepartureTime(std::move(value)); return *this;}
163
165
173 inline bool GetDepartNow() const{ return m_departNow; }
174 inline bool DepartNowHasBeenSet() const { return m_departNowHasBeenSet; }
175 inline void SetDepartNow(bool value) { m_departNowHasBeenSet = true; m_departNow = value; }
176 inline CalculateRouteMatrixRequest& WithDepartNow(bool value) { SetDepartNow(value); return *this;}
178
180
184 inline const DistanceUnit& GetDistanceUnit() const{ return m_distanceUnit; }
185 inline bool DistanceUnitHasBeenSet() const { return m_distanceUnitHasBeenSet; }
186 inline void SetDistanceUnit(const DistanceUnit& value) { m_distanceUnitHasBeenSet = true; m_distanceUnit = value; }
187 inline void SetDistanceUnit(DistanceUnit&& value) { m_distanceUnitHasBeenSet = true; m_distanceUnit = std::move(value); }
188 inline CalculateRouteMatrixRequest& WithDistanceUnit(const DistanceUnit& value) { SetDistanceUnit(value); return *this;}
189 inline CalculateRouteMatrixRequest& WithDistanceUnit(DistanceUnit&& value) { SetDistanceUnit(std::move(value)); return *this;}
191
193
198 inline const CalculateRouteCarModeOptions& GetCarModeOptions() const{ return m_carModeOptions; }
199 inline bool CarModeOptionsHasBeenSet() const { return m_carModeOptionsHasBeenSet; }
200 inline void SetCarModeOptions(const CalculateRouteCarModeOptions& value) { m_carModeOptionsHasBeenSet = true; m_carModeOptions = value; }
201 inline void SetCarModeOptions(CalculateRouteCarModeOptions&& value) { m_carModeOptionsHasBeenSet = true; m_carModeOptions = std::move(value); }
205
207
213 inline const CalculateRouteTruckModeOptions& GetTruckModeOptions() const{ return m_truckModeOptions; }
214 inline bool TruckModeOptionsHasBeenSet() const { return m_truckModeOptionsHasBeenSet; }
215 inline void SetTruckModeOptions(const CalculateRouteTruckModeOptions& value) { m_truckModeOptionsHasBeenSet = true; m_truckModeOptions = value; }
216 inline void SetTruckModeOptions(CalculateRouteTruckModeOptions&& value) { m_truckModeOptionsHasBeenSet = true; m_truckModeOptions = std::move(value); }
220
222
227 inline const Aws::String& GetKey() const{ return m_key; }
228 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
229 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
230 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
231 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
232 inline CalculateRouteMatrixRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
233 inline CalculateRouteMatrixRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
234 inline CalculateRouteMatrixRequest& WithKey(const char* value) { SetKey(value); return *this;}
236 private:
237
238 Aws::String m_calculatorName;
239 bool m_calculatorNameHasBeenSet = false;
240
241 Aws::Vector<Aws::Vector<double>> m_departurePositions;
242 bool m_departurePositionsHasBeenSet = false;
243
244 Aws::Vector<Aws::Vector<double>> m_destinationPositions;
245 bool m_destinationPositionsHasBeenSet = false;
246
247 TravelMode m_travelMode;
248 bool m_travelModeHasBeenSet = false;
249
250 Aws::Utils::DateTime m_departureTime;
251 bool m_departureTimeHasBeenSet = false;
252
253 bool m_departNow;
254 bool m_departNowHasBeenSet = false;
255
256 DistanceUnit m_distanceUnit;
257 bool m_distanceUnitHasBeenSet = false;
258
259 CalculateRouteCarModeOptions m_carModeOptions;
260 bool m_carModeOptionsHasBeenSet = false;
261
262 CalculateRouteTruckModeOptions m_truckModeOptions;
263 bool m_truckModeOptionsHasBeenSet = false;
264
265 Aws::String m_key;
266 bool m_keyHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace LocationService
271} // namespace Aws
void SetDeparturePositions(Aws::Vector< Aws::Vector< double > > &&value)
CalculateRouteMatrixRequest & WithCarModeOptions(const CalculateRouteCarModeOptions &value)
CalculateRouteMatrixRequest & WithCarModeOptions(CalculateRouteCarModeOptions &&value)
CalculateRouteMatrixRequest & WithDepartureTime(Aws::Utils::DateTime &&value)
const Aws::Vector< Aws::Vector< double > > & GetDeparturePositions() const
CalculateRouteMatrixRequest & WithDistanceUnit(const DistanceUnit &value)
CalculateRouteMatrixRequest & WithDeparturePositions(Aws::Vector< Aws::Vector< double > > &&value)
CalculateRouteMatrixRequest & WithDestinationPositions(Aws::Vector< Aws::Vector< double > > &&value)
CalculateRouteMatrixRequest & AddDeparturePositions(Aws::Vector< double > &&value)
CalculateRouteMatrixRequest & AddDeparturePositions(const Aws::Vector< double > &value)
void SetTruckModeOptions(CalculateRouteTruckModeOptions &&value)
CalculateRouteMatrixRequest & WithTravelMode(const TravelMode &value)
CalculateRouteMatrixRequest & WithDestinationPositions(const Aws::Vector< Aws::Vector< double > > &value)
CalculateRouteMatrixRequest & WithDeparturePositions(const Aws::Vector< Aws::Vector< double > > &value)
const Aws::Vector< Aws::Vector< double > > & GetDestinationPositions() const
CalculateRouteMatrixRequest & WithCalculatorName(const Aws::String &value)
CalculateRouteMatrixRequest & WithTruckModeOptions(const CalculateRouteTruckModeOptions &value)
void SetDestinationPositions(const Aws::Vector< Aws::Vector< double > > &value)
CalculateRouteMatrixRequest & WithCalculatorName(const char *value)
CalculateRouteMatrixRequest & WithTruckModeOptions(CalculateRouteTruckModeOptions &&value)
AWS_LOCATIONSERVICE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const CalculateRouteCarModeOptions & GetCarModeOptions() const
void SetTruckModeOptions(const CalculateRouteTruckModeOptions &value)
CalculateRouteMatrixRequest & WithTravelMode(TravelMode &&value)
CalculateRouteMatrixRequest & WithDepartureTime(const Aws::Utils::DateTime &value)
CalculateRouteMatrixRequest & WithCalculatorName(Aws::String &&value)
void SetDestinationPositions(Aws::Vector< Aws::Vector< double > > &&value)
CalculateRouteMatrixRequest & AddDestinationPositions(const Aws::Vector< double > &value)
CalculateRouteMatrixRequest & AddDestinationPositions(Aws::Vector< double > &&value)
const CalculateRouteTruckModeOptions & GetTruckModeOptions() const
CalculateRouteMatrixRequest & WithKey(Aws::String &&value)
void SetCarModeOptions(const CalculateRouteCarModeOptions &value)
void SetDeparturePositions(const Aws::Vector< Aws::Vector< double > > &value)
AWS_LOCATIONSERVICE_API Aws::String SerializePayload() const override
CalculateRouteMatrixRequest & WithDistanceUnit(DistanceUnit &&value)
CalculateRouteMatrixRequest & WithKey(const char *value)
CalculateRouteMatrixRequest & WithKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector