AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteVehicleTravelStep.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteContinueHighwayStepDetails.h>
9#include <aws/geo-routes/model/RouteContinueStepDetails.h>
10#include <aws/geo-routes/model/RouteRoad.h>
11#include <aws/geo-routes/model/RouteEnterHighwayStepDetails.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/geo-routes/model/RouteExitStepDetails.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/geo-routes/model/RouteKeepStepDetails.h>
16#include <aws/geo-routes/model/RouteRampStepDetails.h>
17#include <aws/geo-routes/model/RouteRoundaboutEnterStepDetails.h>
18#include <aws/geo-routes/model/RouteRoundaboutExitStepDetails.h>
19#include <aws/geo-routes/model/RouteRoundaboutPassStepDetails.h>
20#include <aws/geo-routes/model/RouteSignpost.h>
21#include <aws/geo-routes/model/RouteTurnStepDetails.h>
22#include <aws/geo-routes/model/RouteVehicleTravelStepType.h>
23#include <aws/geo-routes/model/RouteUTurnStepDetails.h>
24#include <aws/geo-routes/model/LocalizedString.h>
25#include <utility>
26
27namespace Aws
28{
29namespace Utils
30{
31namespace Json
32{
33 class JsonValue;
34 class JsonView;
35} // namespace Json
36} // namespace Utils
37namespace GeoRoutes
38{
39namespace Model
40{
41
49 {
50 public:
51 AWS_GEOROUTES_API RouteVehicleTravelStep() = default;
54 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
61 inline const RouteContinueHighwayStepDetails& GetContinueHighwayStepDetails() const { return m_continueHighwayStepDetails; }
62 inline bool ContinueHighwayStepDetailsHasBeenSet() const { return m_continueHighwayStepDetailsHasBeenSet; }
63 template<typename ContinueHighwayStepDetailsT = RouteContinueHighwayStepDetails>
64 void SetContinueHighwayStepDetails(ContinueHighwayStepDetailsT&& value) { m_continueHighwayStepDetailsHasBeenSet = true; m_continueHighwayStepDetails = std::forward<ContinueHighwayStepDetailsT>(value); }
65 template<typename ContinueHighwayStepDetailsT = RouteContinueHighwayStepDetails>
66 RouteVehicleTravelStep& WithContinueHighwayStepDetails(ContinueHighwayStepDetailsT&& value) { SetContinueHighwayStepDetails(std::forward<ContinueHighwayStepDetailsT>(value)); return *this;}
68
70
73 inline const RouteContinueStepDetails& GetContinueStepDetails() const { return m_continueStepDetails; }
74 inline bool ContinueStepDetailsHasBeenSet() const { return m_continueStepDetailsHasBeenSet; }
75 template<typename ContinueStepDetailsT = RouteContinueStepDetails>
76 void SetContinueStepDetails(ContinueStepDetailsT&& value) { m_continueStepDetailsHasBeenSet = true; m_continueStepDetails = std::forward<ContinueStepDetailsT>(value); }
77 template<typename ContinueStepDetailsT = RouteContinueStepDetails>
78 RouteVehicleTravelStep& WithContinueStepDetails(ContinueStepDetailsT&& value) { SetContinueStepDetails(std::forward<ContinueStepDetailsT>(value)); return *this;}
80
82
85 inline const RouteRoad& GetCurrentRoad() const { return m_currentRoad; }
86 inline bool CurrentRoadHasBeenSet() const { return m_currentRoadHasBeenSet; }
87 template<typename CurrentRoadT = RouteRoad>
88 void SetCurrentRoad(CurrentRoadT&& value) { m_currentRoadHasBeenSet = true; m_currentRoad = std::forward<CurrentRoadT>(value); }
89 template<typename CurrentRoadT = RouteRoad>
90 RouteVehicleTravelStep& WithCurrentRoad(CurrentRoadT&& value) { SetCurrentRoad(std::forward<CurrentRoadT>(value)); return *this;}
92
94
97 inline long long GetDistance() const { return m_distance; }
98 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
99 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
100 inline RouteVehicleTravelStep& WithDistance(long long value) { SetDistance(value); return *this;}
102
104
107 inline long long GetDuration() const { return m_duration; }
108 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
109 inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
110 inline RouteVehicleTravelStep& WithDuration(long long value) { SetDuration(value); return *this;}
112
114
117 inline const RouteEnterHighwayStepDetails& GetEnterHighwayStepDetails() const { return m_enterHighwayStepDetails; }
118 inline bool EnterHighwayStepDetailsHasBeenSet() const { return m_enterHighwayStepDetailsHasBeenSet; }
119 template<typename EnterHighwayStepDetailsT = RouteEnterHighwayStepDetails>
120 void SetEnterHighwayStepDetails(EnterHighwayStepDetailsT&& value) { m_enterHighwayStepDetailsHasBeenSet = true; m_enterHighwayStepDetails = std::forward<EnterHighwayStepDetailsT>(value); }
121 template<typename EnterHighwayStepDetailsT = RouteEnterHighwayStepDetails>
122 RouteVehicleTravelStep& WithEnterHighwayStepDetails(EnterHighwayStepDetailsT&& value) { SetEnterHighwayStepDetails(std::forward<EnterHighwayStepDetailsT>(value)); return *this;}
124
126
129 inline const Aws::Vector<LocalizedString>& GetExitNumber() const { return m_exitNumber; }
130 inline bool ExitNumberHasBeenSet() const { return m_exitNumberHasBeenSet; }
131 template<typename ExitNumberT = Aws::Vector<LocalizedString>>
132 void SetExitNumber(ExitNumberT&& value) { m_exitNumberHasBeenSet = true; m_exitNumber = std::forward<ExitNumberT>(value); }
133 template<typename ExitNumberT = Aws::Vector<LocalizedString>>
134 RouteVehicleTravelStep& WithExitNumber(ExitNumberT&& value) { SetExitNumber(std::forward<ExitNumberT>(value)); return *this;}
135 template<typename ExitNumberT = LocalizedString>
136 RouteVehicleTravelStep& AddExitNumber(ExitNumberT&& value) { m_exitNumberHasBeenSet = true; m_exitNumber.emplace_back(std::forward<ExitNumberT>(value)); return *this; }
138
140
143 inline const RouteExitStepDetails& GetExitStepDetails() const { return m_exitStepDetails; }
144 inline bool ExitStepDetailsHasBeenSet() const { return m_exitStepDetailsHasBeenSet; }
145 template<typename ExitStepDetailsT = RouteExitStepDetails>
146 void SetExitStepDetails(ExitStepDetailsT&& value) { m_exitStepDetailsHasBeenSet = true; m_exitStepDetails = std::forward<ExitStepDetailsT>(value); }
147 template<typename ExitStepDetailsT = RouteExitStepDetails>
148 RouteVehicleTravelStep& WithExitStepDetails(ExitStepDetailsT&& value) { SetExitStepDetails(std::forward<ExitStepDetailsT>(value)); return *this;}
150
152
155 inline int GetGeometryOffset() const { return m_geometryOffset; }
156 inline bool GeometryOffsetHasBeenSet() const { return m_geometryOffsetHasBeenSet; }
157 inline void SetGeometryOffset(int value) { m_geometryOffsetHasBeenSet = true; m_geometryOffset = value; }
158 inline RouteVehicleTravelStep& WithGeometryOffset(int value) { SetGeometryOffset(value); return *this;}
160
162
166 inline const Aws::String& GetInstruction() const { return m_instruction; }
167 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
168 template<typename InstructionT = Aws::String>
169 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet = true; m_instruction = std::forward<InstructionT>(value); }
170 template<typename InstructionT = Aws::String>
171 RouteVehicleTravelStep& WithInstruction(InstructionT&& value) { SetInstruction(std::forward<InstructionT>(value)); return *this;}
173
175
178 inline const RouteKeepStepDetails& GetKeepStepDetails() const { return m_keepStepDetails; }
179 inline bool KeepStepDetailsHasBeenSet() const { return m_keepStepDetailsHasBeenSet; }
180 template<typename KeepStepDetailsT = RouteKeepStepDetails>
181 void SetKeepStepDetails(KeepStepDetailsT&& value) { m_keepStepDetailsHasBeenSet = true; m_keepStepDetails = std::forward<KeepStepDetailsT>(value); }
182 template<typename KeepStepDetailsT = RouteKeepStepDetails>
183 RouteVehicleTravelStep& WithKeepStepDetails(KeepStepDetailsT&& value) { SetKeepStepDetails(std::forward<KeepStepDetailsT>(value)); return *this;}
185
187
190 inline const RouteRoad& GetNextRoad() const { return m_nextRoad; }
191 inline bool NextRoadHasBeenSet() const { return m_nextRoadHasBeenSet; }
192 template<typename NextRoadT = RouteRoad>
193 void SetNextRoad(NextRoadT&& value) { m_nextRoadHasBeenSet = true; m_nextRoad = std::forward<NextRoadT>(value); }
194 template<typename NextRoadT = RouteRoad>
195 RouteVehicleTravelStep& WithNextRoad(NextRoadT&& value) { SetNextRoad(std::forward<NextRoadT>(value)); return *this;}
197
199
202 inline const RouteRampStepDetails& GetRampStepDetails() const { return m_rampStepDetails; }
203 inline bool RampStepDetailsHasBeenSet() const { return m_rampStepDetailsHasBeenSet; }
204 template<typename RampStepDetailsT = RouteRampStepDetails>
205 void SetRampStepDetails(RampStepDetailsT&& value) { m_rampStepDetailsHasBeenSet = true; m_rampStepDetails = std::forward<RampStepDetailsT>(value); }
206 template<typename RampStepDetailsT = RouteRampStepDetails>
207 RouteVehicleTravelStep& WithRampStepDetails(RampStepDetailsT&& value) { SetRampStepDetails(std::forward<RampStepDetailsT>(value)); return *this;}
209
211
214 inline const RouteRoundaboutEnterStepDetails& GetRoundaboutEnterStepDetails() const { return m_roundaboutEnterStepDetails; }
215 inline bool RoundaboutEnterStepDetailsHasBeenSet() const { return m_roundaboutEnterStepDetailsHasBeenSet; }
216 template<typename RoundaboutEnterStepDetailsT = RouteRoundaboutEnterStepDetails>
217 void SetRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT&& value) { m_roundaboutEnterStepDetailsHasBeenSet = true; m_roundaboutEnterStepDetails = std::forward<RoundaboutEnterStepDetailsT>(value); }
218 template<typename RoundaboutEnterStepDetailsT = RouteRoundaboutEnterStepDetails>
219 RouteVehicleTravelStep& WithRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT&& value) { SetRoundaboutEnterStepDetails(std::forward<RoundaboutEnterStepDetailsT>(value)); return *this;}
221
223
226 inline const RouteRoundaboutExitStepDetails& GetRoundaboutExitStepDetails() const { return m_roundaboutExitStepDetails; }
227 inline bool RoundaboutExitStepDetailsHasBeenSet() const { return m_roundaboutExitStepDetailsHasBeenSet; }
228 template<typename RoundaboutExitStepDetailsT = RouteRoundaboutExitStepDetails>
229 void SetRoundaboutExitStepDetails(RoundaboutExitStepDetailsT&& value) { m_roundaboutExitStepDetailsHasBeenSet = true; m_roundaboutExitStepDetails = std::forward<RoundaboutExitStepDetailsT>(value); }
230 template<typename RoundaboutExitStepDetailsT = RouteRoundaboutExitStepDetails>
231 RouteVehicleTravelStep& WithRoundaboutExitStepDetails(RoundaboutExitStepDetailsT&& value) { SetRoundaboutExitStepDetails(std::forward<RoundaboutExitStepDetailsT>(value)); return *this;}
233
235
238 inline const RouteRoundaboutPassStepDetails& GetRoundaboutPassStepDetails() const { return m_roundaboutPassStepDetails; }
239 inline bool RoundaboutPassStepDetailsHasBeenSet() const { return m_roundaboutPassStepDetailsHasBeenSet; }
240 template<typename RoundaboutPassStepDetailsT = RouteRoundaboutPassStepDetails>
241 void SetRoundaboutPassStepDetails(RoundaboutPassStepDetailsT&& value) { m_roundaboutPassStepDetailsHasBeenSet = true; m_roundaboutPassStepDetails = std::forward<RoundaboutPassStepDetailsT>(value); }
242 template<typename RoundaboutPassStepDetailsT = RouteRoundaboutPassStepDetails>
243 RouteVehicleTravelStep& WithRoundaboutPassStepDetails(RoundaboutPassStepDetailsT&& value) { SetRoundaboutPassStepDetails(std::forward<RoundaboutPassStepDetailsT>(value)); return *this;}
245
247
251 inline const RouteSignpost& GetSignpost() const { return m_signpost; }
252 inline bool SignpostHasBeenSet() const { return m_signpostHasBeenSet; }
253 template<typename SignpostT = RouteSignpost>
254 void SetSignpost(SignpostT&& value) { m_signpostHasBeenSet = true; m_signpost = std::forward<SignpostT>(value); }
255 template<typename SignpostT = RouteSignpost>
256 RouteVehicleTravelStep& WithSignpost(SignpostT&& value) { SetSignpost(std::forward<SignpostT>(value)); return *this;}
258
260
263 inline const RouteTurnStepDetails& GetTurnStepDetails() const { return m_turnStepDetails; }
264 inline bool TurnStepDetailsHasBeenSet() const { return m_turnStepDetailsHasBeenSet; }
265 template<typename TurnStepDetailsT = RouteTurnStepDetails>
266 void SetTurnStepDetails(TurnStepDetailsT&& value) { m_turnStepDetailsHasBeenSet = true; m_turnStepDetails = std::forward<TurnStepDetailsT>(value); }
267 template<typename TurnStepDetailsT = RouteTurnStepDetails>
268 RouteVehicleTravelStep& WithTurnStepDetails(TurnStepDetailsT&& value) { SetTurnStepDetails(std::forward<TurnStepDetailsT>(value)); return *this;}
270
272
275 inline RouteVehicleTravelStepType GetType() const { return m_type; }
276 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
277 inline void SetType(RouteVehicleTravelStepType value) { m_typeHasBeenSet = true; m_type = value; }
280
282
285 inline const RouteUTurnStepDetails& GetUTurnStepDetails() const { return m_uTurnStepDetails; }
286 inline bool UTurnStepDetailsHasBeenSet() const { return m_uTurnStepDetailsHasBeenSet; }
287 template<typename UTurnStepDetailsT = RouteUTurnStepDetails>
288 void SetUTurnStepDetails(UTurnStepDetailsT&& value) { m_uTurnStepDetailsHasBeenSet = true; m_uTurnStepDetails = std::forward<UTurnStepDetailsT>(value); }
289 template<typename UTurnStepDetailsT = RouteUTurnStepDetails>
290 RouteVehicleTravelStep& WithUTurnStepDetails(UTurnStepDetailsT&& value) { SetUTurnStepDetails(std::forward<UTurnStepDetailsT>(value)); return *this;}
292 private:
293
294 RouteContinueHighwayStepDetails m_continueHighwayStepDetails;
295 bool m_continueHighwayStepDetailsHasBeenSet = false;
296
297 RouteContinueStepDetails m_continueStepDetails;
298 bool m_continueStepDetailsHasBeenSet = false;
299
300 RouteRoad m_currentRoad;
301 bool m_currentRoadHasBeenSet = false;
302
303 long long m_distance{0};
304 bool m_distanceHasBeenSet = false;
305
306 long long m_duration{0};
307 bool m_durationHasBeenSet = false;
308
309 RouteEnterHighwayStepDetails m_enterHighwayStepDetails;
310 bool m_enterHighwayStepDetailsHasBeenSet = false;
311
312 Aws::Vector<LocalizedString> m_exitNumber;
313 bool m_exitNumberHasBeenSet = false;
314
315 RouteExitStepDetails m_exitStepDetails;
316 bool m_exitStepDetailsHasBeenSet = false;
317
318 int m_geometryOffset{0};
319 bool m_geometryOffsetHasBeenSet = false;
320
321 Aws::String m_instruction;
322 bool m_instructionHasBeenSet = false;
323
324 RouteKeepStepDetails m_keepStepDetails;
325 bool m_keepStepDetailsHasBeenSet = false;
326
327 RouteRoad m_nextRoad;
328 bool m_nextRoadHasBeenSet = false;
329
330 RouteRampStepDetails m_rampStepDetails;
331 bool m_rampStepDetailsHasBeenSet = false;
332
333 RouteRoundaboutEnterStepDetails m_roundaboutEnterStepDetails;
334 bool m_roundaboutEnterStepDetailsHasBeenSet = false;
335
336 RouteRoundaboutExitStepDetails m_roundaboutExitStepDetails;
337 bool m_roundaboutExitStepDetailsHasBeenSet = false;
338
339 RouteRoundaboutPassStepDetails m_roundaboutPassStepDetails;
340 bool m_roundaboutPassStepDetailsHasBeenSet = false;
341
342 RouteSignpost m_signpost;
343 bool m_signpostHasBeenSet = false;
344
345 RouteTurnStepDetails m_turnStepDetails;
346 bool m_turnStepDetailsHasBeenSet = false;
347
349 bool m_typeHasBeenSet = false;
350
351 RouteUTurnStepDetails m_uTurnStepDetails;
352 bool m_uTurnStepDetailsHasBeenSet = false;
353 };
354
355} // namespace Model
356} // namespace GeoRoutes
357} // namespace Aws
const RouteKeepStepDetails & GetKeepStepDetails() const
AWS_GEOROUTES_API RouteVehicleTravelStep & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteVehicleTravelStep & WithNextRoad(NextRoadT &&value)
const RouteTurnStepDetails & GetTurnStepDetails() const
const RouteRampStepDetails & GetRampStepDetails() const
RouteVehicleTravelStep & WithGeometryOffset(int value)
void SetType(RouteVehicleTravelStepType value)
RouteVehicleTravelStep & AddExitNumber(ExitNumberT &&value)
void SetEnterHighwayStepDetails(EnterHighwayStepDetailsT &&value)
RouteVehicleTravelStep & WithRoundaboutPassStepDetails(RoundaboutPassStepDetailsT &&value)
RouteVehicleTravelStep & WithTurnStepDetails(TurnStepDetailsT &&value)
RouteVehicleTravelStep & WithInstruction(InstructionT &&value)
RouteVehicleTravelStep & WithSignpost(SignpostT &&value)
RouteVehicleTravelStep & WithEnterHighwayStepDetails(EnterHighwayStepDetailsT &&value)
RouteVehicleTravelStep & WithExitStepDetails(ExitStepDetailsT &&value)
RouteVehicleTravelStep & WithRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT &&value)
RouteVehicleTravelStep & WithCurrentRoad(CurrentRoadT &&value)
RouteVehicleTravelStep & WithContinueHighwayStepDetails(ContinueHighwayStepDetailsT &&value)
const RouteRoundaboutExitStepDetails & GetRoundaboutExitStepDetails() const
const RouteEnterHighwayStepDetails & GetEnterHighwayStepDetails() const
RouteVehicleTravelStep & WithUTurnStepDetails(UTurnStepDetailsT &&value)
void SetContinueHighwayStepDetails(ContinueHighwayStepDetailsT &&value)
const Aws::Vector< LocalizedString > & GetExitNumber() const
void SetRoundaboutExitStepDetails(RoundaboutExitStepDetailsT &&value)
RouteVehicleTravelStep & WithContinueStepDetails(ContinueStepDetailsT &&value)
AWS_GEOROUTES_API RouteVehicleTravelStep()=default
void SetRoundaboutPassStepDetails(RoundaboutPassStepDetailsT &&value)
const RouteRoundaboutEnterStepDetails & GetRoundaboutEnterStepDetails() const
RouteVehicleTravelStep & WithRoundaboutExitStepDetails(RoundaboutExitStepDetailsT &&value)
AWS_GEOROUTES_API RouteVehicleTravelStep(Aws::Utils::Json::JsonView jsonValue)
const RouteContinueStepDetails & GetContinueStepDetails() const
RouteVehicleTravelStep & WithRampStepDetails(RampStepDetailsT &&value)
RouteVehicleTravelStep & WithType(RouteVehicleTravelStepType value)
RouteVehicleTravelStep & WithDuration(long long value)
const RouteUTurnStepDetails & GetUTurnStepDetails() const
RouteVehicleTravelStep & WithKeepStepDetails(KeepStepDetailsT &&value)
const RouteExitStepDetails & GetExitStepDetails() const
void SetContinueStepDetails(ContinueStepDetailsT &&value)
RouteVehicleTravelStep & WithDistance(long long value)
RouteVehicleTravelStep & WithExitNumber(ExitNumberT &&value)
const RouteRoundaboutPassStepDetails & GetRoundaboutPassStepDetails() const
void SetRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const RouteContinueHighwayStepDetails & GetContinueHighwayStepDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue