AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OptimizeWaypointsRequest.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/WaypointOptimizationAvoidanceOptions.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/geo-routes/model/WaypointOptimizationDestinationOptions.h>
13#include <aws/geo-routes/model/WaypointOptimizationDriverOptions.h>
14#include <aws/geo-routes/model/WaypointOptimizationExclusionOptions.h>
15#include <aws/geo-routes/model/WaypointOptimizationSequencingObjective.h>
16#include <aws/geo-routes/model/WaypointOptimizationOriginOptions.h>
17#include <aws/geo-routes/model/WaypointOptimizationTrafficOptions.h>
18#include <aws/geo-routes/model/WaypointOptimizationTravelMode.h>
19#include <aws/geo-routes/model/WaypointOptimizationTravelModeOptions.h>
20#include <aws/geo-routes/model/WaypointOptimizationWaypoint.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 OptimizeWaypointsRequest();
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 "OptimizeWaypoints"; }
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
58 inline const WaypointOptimizationAvoidanceOptions& GetAvoid() const{ return m_avoid; }
59 inline bool AvoidHasBeenSet() const { return m_avoidHasBeenSet; }
60 inline void SetAvoid(const WaypointOptimizationAvoidanceOptions& value) { m_avoidHasBeenSet = true; m_avoid = value; }
61 inline void SetAvoid(WaypointOptimizationAvoidanceOptions&& value) { m_avoidHasBeenSet = true; m_avoid = std::move(value); }
63 inline OptimizeWaypointsRequest& WithAvoid(WaypointOptimizationAvoidanceOptions&& value) { SetAvoid(std::move(value)); return *this;}
65
67
73 inline const Aws::String& GetDepartureTime() const{ return m_departureTime; }
74 inline bool DepartureTimeHasBeenSet() const { return m_departureTimeHasBeenSet; }
75 inline void SetDepartureTime(const Aws::String& value) { m_departureTimeHasBeenSet = true; m_departureTime = value; }
76 inline void SetDepartureTime(Aws::String&& value) { m_departureTimeHasBeenSet = true; m_departureTime = std::move(value); }
77 inline void SetDepartureTime(const char* value) { m_departureTimeHasBeenSet = true; m_departureTime.assign(value); }
78 inline OptimizeWaypointsRequest& WithDepartureTime(const Aws::String& value) { SetDepartureTime(value); return *this;}
79 inline OptimizeWaypointsRequest& WithDepartureTime(Aws::String&& value) { SetDepartureTime(std::move(value)); return *this;}
80 inline OptimizeWaypointsRequest& WithDepartureTime(const char* value) { SetDepartureTime(value); return *this;}
82
84
88 inline const Aws::Vector<double>& GetDestination() const{ return m_destination; }
89 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
90 inline void SetDestination(const Aws::Vector<double>& value) { m_destinationHasBeenSet = true; m_destination = value; }
91 inline void SetDestination(Aws::Vector<double>&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
92 inline OptimizeWaypointsRequest& WithDestination(const Aws::Vector<double>& value) { SetDestination(value); return *this;}
93 inline OptimizeWaypointsRequest& WithDestination(Aws::Vector<double>&& value) { SetDestination(std::move(value)); return *this;}
94 inline OptimizeWaypointsRequest& AddDestination(double value) { m_destinationHasBeenSet = true; m_destination.push_back(value); return *this; }
96
98
101 inline const WaypointOptimizationDestinationOptions& GetDestinationOptions() const{ return m_destinationOptions; }
102 inline bool DestinationOptionsHasBeenSet() const { return m_destinationOptionsHasBeenSet; }
103 inline void SetDestinationOptions(const WaypointOptimizationDestinationOptions& value) { m_destinationOptionsHasBeenSet = true; m_destinationOptions = value; }
104 inline void SetDestinationOptions(WaypointOptimizationDestinationOptions&& value) { m_destinationOptionsHasBeenSet = true; m_destinationOptions = std::move(value); }
108
110
113 inline const WaypointOptimizationDriverOptions& GetDriver() const{ return m_driver; }
114 inline bool DriverHasBeenSet() const { return m_driverHasBeenSet; }
115 inline void SetDriver(const WaypointOptimizationDriverOptions& value) { m_driverHasBeenSet = true; m_driver = value; }
116 inline void SetDriver(WaypointOptimizationDriverOptions&& value) { m_driverHasBeenSet = true; m_driver = std::move(value); }
118 inline OptimizeWaypointsRequest& WithDriver(WaypointOptimizationDriverOptions&& value) { SetDriver(std::move(value)); return *this;}
120
122
125 inline const WaypointOptimizationExclusionOptions& GetExclude() const{ return m_exclude; }
126 inline bool ExcludeHasBeenSet() const { return m_excludeHasBeenSet; }
127 inline void SetExclude(const WaypointOptimizationExclusionOptions& value) { m_excludeHasBeenSet = true; m_exclude = value; }
128 inline void SetExclude(WaypointOptimizationExclusionOptions&& value) { m_excludeHasBeenSet = true; m_exclude = std::move(value); }
130 inline OptimizeWaypointsRequest& WithExclude(WaypointOptimizationExclusionOptions&& value) { SetExclude(std::move(value)); return *this;}
132
134
138 inline const Aws::String& GetKey() const{ return m_key; }
139 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
140 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
141 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
142 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
143 inline OptimizeWaypointsRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
144 inline OptimizeWaypointsRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
145 inline OptimizeWaypointsRequest& WithKey(const char* value) { SetKey(value); return *this;}
147
149
153 inline const WaypointOptimizationSequencingObjective& GetOptimizeSequencingFor() const{ return m_optimizeSequencingFor; }
154 inline bool OptimizeSequencingForHasBeenSet() const { return m_optimizeSequencingForHasBeenSet; }
155 inline void SetOptimizeSequencingFor(const WaypointOptimizationSequencingObjective& value) { m_optimizeSequencingForHasBeenSet = true; m_optimizeSequencingFor = value; }
156 inline void SetOptimizeSequencingFor(WaypointOptimizationSequencingObjective&& value) { m_optimizeSequencingForHasBeenSet = true; m_optimizeSequencingFor = std::move(value); }
160
162
165 inline const Aws::Vector<double>& GetOrigin() const{ return m_origin; }
166 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
167 inline void SetOrigin(const Aws::Vector<double>& value) { m_originHasBeenSet = true; m_origin = value; }
168 inline void SetOrigin(Aws::Vector<double>&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
169 inline OptimizeWaypointsRequest& WithOrigin(const Aws::Vector<double>& value) { SetOrigin(value); return *this;}
170 inline OptimizeWaypointsRequest& WithOrigin(Aws::Vector<double>&& value) { SetOrigin(std::move(value)); return *this;}
171 inline OptimizeWaypointsRequest& AddOrigin(double value) { m_originHasBeenSet = true; m_origin.push_back(value); return *this; }
173
175
178 inline const WaypointOptimizationOriginOptions& GetOriginOptions() const{ return m_originOptions; }
179 inline bool OriginOptionsHasBeenSet() const { return m_originOptionsHasBeenSet; }
180 inline void SetOriginOptions(const WaypointOptimizationOriginOptions& value) { m_originOptionsHasBeenSet = true; m_originOptions = value; }
181 inline void SetOriginOptions(WaypointOptimizationOriginOptions&& value) { m_originOptionsHasBeenSet = true; m_originOptions = std::move(value); }
185
187
190 inline const WaypointOptimizationTrafficOptions& GetTraffic() const{ return m_traffic; }
191 inline bool TrafficHasBeenSet() const { return m_trafficHasBeenSet; }
192 inline void SetTraffic(const WaypointOptimizationTrafficOptions& value) { m_trafficHasBeenSet = true; m_traffic = value; }
193 inline void SetTraffic(WaypointOptimizationTrafficOptions&& value) { m_trafficHasBeenSet = true; m_traffic = std::move(value); }
195 inline OptimizeWaypointsRequest& WithTraffic(WaypointOptimizationTrafficOptions&& value) { SetTraffic(std::move(value)); return *this;}
197
199
204 inline const WaypointOptimizationTravelMode& GetTravelMode() const{ return m_travelMode; }
205 inline bool TravelModeHasBeenSet() const { return m_travelModeHasBeenSet; }
206 inline void SetTravelMode(const WaypointOptimizationTravelMode& value) { m_travelModeHasBeenSet = true; m_travelMode = value; }
207 inline void SetTravelMode(WaypointOptimizationTravelMode&& value) { m_travelModeHasBeenSet = true; m_travelMode = std::move(value); }
209 inline OptimizeWaypointsRequest& WithTravelMode(WaypointOptimizationTravelMode&& value) { SetTravelMode(std::move(value)); return *this;}
211
213
216 inline const WaypointOptimizationTravelModeOptions& GetTravelModeOptions() const{ return m_travelModeOptions; }
217 inline bool TravelModeOptionsHasBeenSet() const { return m_travelModeOptionsHasBeenSet; }
218 inline void SetTravelModeOptions(const WaypointOptimizationTravelModeOptions& value) { m_travelModeOptionsHasBeenSet = true; m_travelModeOptions = value; }
219 inline void SetTravelModeOptions(WaypointOptimizationTravelModeOptions&& value) { m_travelModeOptionsHasBeenSet = true; m_travelModeOptions = std::move(value); }
223
225
229 inline const Aws::Vector<WaypointOptimizationWaypoint>& GetWaypoints() const{ return m_waypoints; }
230 inline bool WaypointsHasBeenSet() const { return m_waypointsHasBeenSet; }
231 inline void SetWaypoints(const Aws::Vector<WaypointOptimizationWaypoint>& value) { m_waypointsHasBeenSet = true; m_waypoints = value; }
232 inline void SetWaypoints(Aws::Vector<WaypointOptimizationWaypoint>&& value) { m_waypointsHasBeenSet = true; m_waypoints = std::move(value); }
235 inline OptimizeWaypointsRequest& AddWaypoints(const WaypointOptimizationWaypoint& value) { m_waypointsHasBeenSet = true; m_waypoints.push_back(value); return *this; }
236 inline OptimizeWaypointsRequest& AddWaypoints(WaypointOptimizationWaypoint&& value) { m_waypointsHasBeenSet = true; m_waypoints.push_back(std::move(value)); return *this; }
238 private:
239
241 bool m_avoidHasBeenSet = false;
242
243 Aws::String m_departureTime;
244 bool m_departureTimeHasBeenSet = false;
245
246 Aws::Vector<double> m_destination;
247 bool m_destinationHasBeenSet = false;
248
249 WaypointOptimizationDestinationOptions m_destinationOptions;
250 bool m_destinationOptionsHasBeenSet = false;
251
253 bool m_driverHasBeenSet = false;
254
256 bool m_excludeHasBeenSet = false;
257
258 Aws::String m_key;
259 bool m_keyHasBeenSet = false;
260
261 WaypointOptimizationSequencingObjective m_optimizeSequencingFor;
262 bool m_optimizeSequencingForHasBeenSet = false;
263
264 Aws::Vector<double> m_origin;
265 bool m_originHasBeenSet = false;
266
267 WaypointOptimizationOriginOptions m_originOptions;
268 bool m_originOptionsHasBeenSet = false;
269
271 bool m_trafficHasBeenSet = false;
272
274 bool m_travelModeHasBeenSet = false;
275
276 WaypointOptimizationTravelModeOptions m_travelModeOptions;
277 bool m_travelModeOptionsHasBeenSet = false;
278
280 bool m_waypointsHasBeenSet = false;
281 };
282
283} // namespace Model
284} // namespace GeoRoutes
285} // namespace Aws
OptimizeWaypointsRequest & WithKey(const Aws::String &value)
const WaypointOptimizationSequencingObjective & GetOptimizeSequencingFor() const
const WaypointOptimizationDriverOptions & GetDriver() const
void SetAvoid(const WaypointOptimizationAvoidanceOptions &value)
OptimizeWaypointsRequest & WithWaypoints(Aws::Vector< WaypointOptimizationWaypoint > &&value)
OptimizeWaypointsRequest & WithAvoid(WaypointOptimizationAvoidanceOptions &&value)
const WaypointOptimizationExclusionOptions & GetExclude() const
OptimizeWaypointsRequest & WithExclude(const WaypointOptimizationExclusionOptions &value)
const WaypointOptimizationAvoidanceOptions & GetAvoid() const
const WaypointOptimizationTravelMode & GetTravelMode() const
OptimizeWaypointsRequest & WithOriginOptions(WaypointOptimizationOriginOptions &&value)
OptimizeWaypointsRequest & WithOrigin(const Aws::Vector< double > &value)
OptimizeWaypointsRequest & WithOrigin(Aws::Vector< double > &&value)
const WaypointOptimizationTravelModeOptions & GetTravelModeOptions() const
OptimizeWaypointsRequest & WithOriginOptions(const WaypointOptimizationOriginOptions &value)
const Aws::Vector< WaypointOptimizationWaypoint > & GetWaypoints() const
void SetExclude(WaypointOptimizationExclusionOptions &&value)
OptimizeWaypointsRequest & WithOptimizeSequencingFor(const WaypointOptimizationSequencingObjective &value)
void SetTravelMode(WaypointOptimizationTravelMode &&value)
const WaypointOptimizationOriginOptions & GetOriginOptions() const
void SetOrigin(const Aws::Vector< double > &value)
void SetTravelMode(const WaypointOptimizationTravelMode &value)
OptimizeWaypointsRequest & WithDepartureTime(Aws::String &&value)
void SetTraffic(WaypointOptimizationTrafficOptions &&value)
OptimizeWaypointsRequest & WithDestination(const Aws::Vector< double > &value)
OptimizeWaypointsRequest & WithDriver(WaypointOptimizationDriverOptions &&value)
void SetWaypoints(Aws::Vector< WaypointOptimizationWaypoint > &&value)
void SetExclude(const WaypointOptimizationExclusionOptions &value)
void SetDestinationOptions(WaypointOptimizationDestinationOptions &&value)
void SetOptimizeSequencingFor(WaypointOptimizationSequencingObjective &&value)
OptimizeWaypointsRequest & WithDepartureTime(const char *value)
void SetTraffic(const WaypointOptimizationTrafficOptions &value)
void SetOriginOptions(const WaypointOptimizationOriginOptions &value)
OptimizeWaypointsRequest & WithTravelMode(const WaypointOptimizationTravelMode &value)
OptimizeWaypointsRequest & WithDestinationOptions(WaypointOptimizationDestinationOptions &&value)
OptimizeWaypointsRequest & WithDriver(const WaypointOptimizationDriverOptions &value)
OptimizeWaypointsRequest & AddDestination(double value)
OptimizeWaypointsRequest & WithDepartureTime(const Aws::String &value)
AWS_GEOROUTES_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetOptimizeSequencingFor(const WaypointOptimizationSequencingObjective &value)
OptimizeWaypointsRequest & WithWaypoints(const Aws::Vector< WaypointOptimizationWaypoint > &value)
OptimizeWaypointsRequest & WithOptimizeSequencingFor(WaypointOptimizationSequencingObjective &&value)
AWS_GEOROUTES_API Aws::String SerializePayload() const override
OptimizeWaypointsRequest & WithKey(Aws::String &&value)
void SetDestinationOptions(const WaypointOptimizationDestinationOptions &value)
OptimizeWaypointsRequest & WithAvoid(const WaypointOptimizationAvoidanceOptions &value)
OptimizeWaypointsRequest & AddWaypoints(const WaypointOptimizationWaypoint &value)
OptimizeWaypointsRequest & WithTravelModeOptions(WaypointOptimizationTravelModeOptions &&value)
OptimizeWaypointsRequest & WithTravelModeOptions(const WaypointOptimizationTravelModeOptions &value)
OptimizeWaypointsRequest & WithKey(const char *value)
const WaypointOptimizationTrafficOptions & GetTraffic() const
OptimizeWaypointsRequest & WithTravelMode(WaypointOptimizationTravelMode &&value)
OptimizeWaypointsRequest & WithTraffic(WaypointOptimizationTrafficOptions &&value)
void SetDriver(WaypointOptimizationDriverOptions &&value)
void SetTravelModeOptions(const WaypointOptimizationTravelModeOptions &value)
void SetWaypoints(const Aws::Vector< WaypointOptimizationWaypoint > &value)
virtual const char * GetServiceRequestName() const override
void SetDestination(const Aws::Vector< double > &value)
OptimizeWaypointsRequest & WithTraffic(const WaypointOptimizationTrafficOptions &value)
const Aws::Vector< double > & GetDestination() const
void SetDriver(const WaypointOptimizationDriverOptions &value)
OptimizeWaypointsRequest & WithDestinationOptions(const WaypointOptimizationDestinationOptions &value)
OptimizeWaypointsRequest & AddWaypoints(WaypointOptimizationWaypoint &&value)
OptimizeWaypointsRequest & AddOrigin(double value)
void SetAvoid(WaypointOptimizationAvoidanceOptions &&value)
OptimizeWaypointsRequest & WithDestination(Aws::Vector< double > &&value)
OptimizeWaypointsRequest & WithExclude(WaypointOptimizationExclusionOptions &&value)
const WaypointOptimizationDestinationOptions & GetDestinationOptions() const
void SetOriginOptions(WaypointOptimizationOriginOptions &&value)
void SetTravelModeOptions(WaypointOptimizationTravelModeOptions &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector