AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RouteTaxiTravelStep.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/RouteContinueStepDetails.h>
10#include <aws/geo-routes/model/RouteExitStepDetails.h>
11#include <aws/geo-routes/model/RouteKeepStepDetails.h>
12#include <aws/geo-routes/model/RouteRampStepDetails.h>
13#include <aws/geo-routes/model/RouteRoundaboutEnterStepDetails.h>
14#include <aws/geo-routes/model/RouteRoundaboutExitStepDetails.h>
15#include <aws/geo-routes/model/RouteRoundaboutPassStepDetails.h>
16#include <aws/geo-routes/model/RouteTaxiTravelStepType.h>
17#include <aws/geo-routes/model/RouteTurnStepDetails.h>
18#include <aws/geo-routes/model/RouteUTurnStepDetails.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace GeoRoutes {
30namespace Model {
31
39 public:
40 AWS_GEOROUTES_API RouteTaxiTravelStep() = default;
41 AWS_GEOROUTES_API RouteTaxiTravelStep(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
47 inline const RouteContinueStepDetails& GetContinueStepDetails() const { return m_continueStepDetails; }
48 inline bool ContinueStepDetailsHasBeenSet() const { return m_continueStepDetailsHasBeenSet; }
49 template <typename ContinueStepDetailsT = RouteContinueStepDetails>
50 void SetContinueStepDetails(ContinueStepDetailsT&& value) {
51 m_continueStepDetailsHasBeenSet = true;
52 m_continueStepDetails = std::forward<ContinueStepDetailsT>(value);
53 }
54 template <typename ContinueStepDetailsT = RouteContinueStepDetails>
55 RouteTaxiTravelStep& WithContinueStepDetails(ContinueStepDetailsT&& value) {
56 SetContinueStepDetails(std::forward<ContinueStepDetailsT>(value));
57 return *this;
58 }
60
62
65 inline long long GetDistance() const { return m_distance; }
66 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
67 inline void SetDistance(long long value) {
68 m_distanceHasBeenSet = true;
69 m_distance = value;
70 }
71 inline RouteTaxiTravelStep& WithDistance(long long value) {
72 SetDistance(value);
73 return *this;
74 }
76
78
81 inline long long GetDuration() const { return m_duration; }
82 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
83 inline void SetDuration(long long value) {
84 m_durationHasBeenSet = true;
85 m_duration = value;
86 }
87 inline RouteTaxiTravelStep& WithDuration(long long value) {
88 SetDuration(value);
89 return *this;
90 }
92
94
95 inline const RouteExitStepDetails& GetExitStepDetails() const { return m_exitStepDetails; }
96 inline bool ExitStepDetailsHasBeenSet() const { return m_exitStepDetailsHasBeenSet; }
97 template <typename ExitStepDetailsT = RouteExitStepDetails>
98 void SetExitStepDetails(ExitStepDetailsT&& value) {
99 m_exitStepDetailsHasBeenSet = true;
100 m_exitStepDetails = std::forward<ExitStepDetailsT>(value);
101 }
102 template <typename ExitStepDetailsT = RouteExitStepDetails>
103 RouteTaxiTravelStep& WithExitStepDetails(ExitStepDetailsT&& value) {
104 SetExitStepDetails(std::forward<ExitStepDetailsT>(value));
105 return *this;
106 }
108
110
113 inline int GetGeometryOffset() const { return m_geometryOffset; }
114 inline bool GeometryOffsetHasBeenSet() const { return m_geometryOffsetHasBeenSet; }
115 inline void SetGeometryOffset(int value) {
116 m_geometryOffsetHasBeenSet = true;
117 m_geometryOffset = value;
118 }
120 SetGeometryOffset(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetInstruction() const { return m_instruction; }
130 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
131 template <typename InstructionT = Aws::String>
132 void SetInstruction(InstructionT&& value) {
133 m_instructionHasBeenSet = true;
134 m_instruction = std::forward<InstructionT>(value);
135 }
136 template <typename InstructionT = Aws::String>
137 RouteTaxiTravelStep& WithInstruction(InstructionT&& value) {
138 SetInstruction(std::forward<InstructionT>(value));
139 return *this;
140 }
142
144
145 inline const RouteKeepStepDetails& GetKeepStepDetails() const { return m_keepStepDetails; }
146 inline bool KeepStepDetailsHasBeenSet() const { return m_keepStepDetailsHasBeenSet; }
147 template <typename KeepStepDetailsT = RouteKeepStepDetails>
148 void SetKeepStepDetails(KeepStepDetailsT&& value) {
149 m_keepStepDetailsHasBeenSet = true;
150 m_keepStepDetails = std::forward<KeepStepDetailsT>(value);
151 }
152 template <typename KeepStepDetailsT = RouteKeepStepDetails>
153 RouteTaxiTravelStep& WithKeepStepDetails(KeepStepDetailsT&& value) {
154 SetKeepStepDetails(std::forward<KeepStepDetailsT>(value));
155 return *this;
156 }
158
160
161 inline const RouteRampStepDetails& GetRampStepDetails() const { return m_rampStepDetails; }
162 inline bool RampStepDetailsHasBeenSet() const { return m_rampStepDetailsHasBeenSet; }
163 template <typename RampStepDetailsT = RouteRampStepDetails>
164 void SetRampStepDetails(RampStepDetailsT&& value) {
165 m_rampStepDetailsHasBeenSet = true;
166 m_rampStepDetails = std::forward<RampStepDetailsT>(value);
167 }
168 template <typename RampStepDetailsT = RouteRampStepDetails>
169 RouteTaxiTravelStep& WithRampStepDetails(RampStepDetailsT&& value) {
170 SetRampStepDetails(std::forward<RampStepDetailsT>(value));
171 return *this;
172 }
174
176
177 inline const RouteRoundaboutEnterStepDetails& GetRoundaboutEnterStepDetails() const { return m_roundaboutEnterStepDetails; }
178 inline bool RoundaboutEnterStepDetailsHasBeenSet() const { return m_roundaboutEnterStepDetailsHasBeenSet; }
179 template <typename RoundaboutEnterStepDetailsT = RouteRoundaboutEnterStepDetails>
180 void SetRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT&& value) {
181 m_roundaboutEnterStepDetailsHasBeenSet = true;
182 m_roundaboutEnterStepDetails = std::forward<RoundaboutEnterStepDetailsT>(value);
183 }
184 template <typename RoundaboutEnterStepDetailsT = RouteRoundaboutEnterStepDetails>
185 RouteTaxiTravelStep& WithRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT&& value) {
186 SetRoundaboutEnterStepDetails(std::forward<RoundaboutEnterStepDetailsT>(value));
187 return *this;
188 }
190
192
193 inline const RouteRoundaboutExitStepDetails& GetRoundaboutExitStepDetails() const { return m_roundaboutExitStepDetails; }
194 inline bool RoundaboutExitStepDetailsHasBeenSet() const { return m_roundaboutExitStepDetailsHasBeenSet; }
195 template <typename RoundaboutExitStepDetailsT = RouteRoundaboutExitStepDetails>
196 void SetRoundaboutExitStepDetails(RoundaboutExitStepDetailsT&& value) {
197 m_roundaboutExitStepDetailsHasBeenSet = true;
198 m_roundaboutExitStepDetails = std::forward<RoundaboutExitStepDetailsT>(value);
199 }
200 template <typename RoundaboutExitStepDetailsT = RouteRoundaboutExitStepDetails>
201 RouteTaxiTravelStep& WithRoundaboutExitStepDetails(RoundaboutExitStepDetailsT&& value) {
202 SetRoundaboutExitStepDetails(std::forward<RoundaboutExitStepDetailsT>(value));
203 return *this;
204 }
206
208
209 inline const RouteRoundaboutPassStepDetails& GetRoundaboutPassStepDetails() const { return m_roundaboutPassStepDetails; }
210 inline bool RoundaboutPassStepDetailsHasBeenSet() const { return m_roundaboutPassStepDetailsHasBeenSet; }
211 template <typename RoundaboutPassStepDetailsT = RouteRoundaboutPassStepDetails>
212 void SetRoundaboutPassStepDetails(RoundaboutPassStepDetailsT&& value) {
213 m_roundaboutPassStepDetailsHasBeenSet = true;
214 m_roundaboutPassStepDetails = std::forward<RoundaboutPassStepDetailsT>(value);
215 }
216 template <typename RoundaboutPassStepDetailsT = RouteRoundaboutPassStepDetails>
217 RouteTaxiTravelStep& WithRoundaboutPassStepDetails(RoundaboutPassStepDetailsT&& value) {
218 SetRoundaboutPassStepDetails(std::forward<RoundaboutPassStepDetailsT>(value));
219 return *this;
220 }
222
224
225 inline const RouteTurnStepDetails& GetTurnStepDetails() const { return m_turnStepDetails; }
226 inline bool TurnStepDetailsHasBeenSet() const { return m_turnStepDetailsHasBeenSet; }
227 template <typename TurnStepDetailsT = RouteTurnStepDetails>
228 void SetTurnStepDetails(TurnStepDetailsT&& value) {
229 m_turnStepDetailsHasBeenSet = true;
230 m_turnStepDetails = std::forward<TurnStepDetailsT>(value);
231 }
232 template <typename TurnStepDetailsT = RouteTurnStepDetails>
233 RouteTaxiTravelStep& WithTurnStepDetails(TurnStepDetailsT&& value) {
234 SetTurnStepDetails(std::forward<TurnStepDetailsT>(value));
235 return *this;
236 }
238
240
243 inline RouteTaxiTravelStepType GetType() const { return m_type; }
244 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
245 inline void SetType(RouteTaxiTravelStepType value) {
246 m_typeHasBeenSet = true;
247 m_type = value;
248 }
250 SetType(value);
251 return *this;
252 }
254
256
257 inline const RouteUTurnStepDetails& GetUTurnStepDetails() const { return m_uTurnStepDetails; }
258 inline bool UTurnStepDetailsHasBeenSet() const { return m_uTurnStepDetailsHasBeenSet; }
259 template <typename UTurnStepDetailsT = RouteUTurnStepDetails>
260 void SetUTurnStepDetails(UTurnStepDetailsT&& value) {
261 m_uTurnStepDetailsHasBeenSet = true;
262 m_uTurnStepDetails = std::forward<UTurnStepDetailsT>(value);
263 }
264 template <typename UTurnStepDetailsT = RouteUTurnStepDetails>
265 RouteTaxiTravelStep& WithUTurnStepDetails(UTurnStepDetailsT&& value) {
266 SetUTurnStepDetails(std::forward<UTurnStepDetailsT>(value));
267 return *this;
268 }
270 private:
271 RouteContinueStepDetails m_continueStepDetails;
272
273 long long m_distance{0};
274
275 long long m_duration{0};
276
277 RouteExitStepDetails m_exitStepDetails;
278
279 int m_geometryOffset{0};
280
281 Aws::String m_instruction;
282
283 RouteKeepStepDetails m_keepStepDetails;
284
285 RouteRampStepDetails m_rampStepDetails;
286
287 RouteRoundaboutEnterStepDetails m_roundaboutEnterStepDetails;
288
289 RouteRoundaboutExitStepDetails m_roundaboutExitStepDetails;
290
291 RouteRoundaboutPassStepDetails m_roundaboutPassStepDetails;
292
293 RouteTurnStepDetails m_turnStepDetails;
294
296
297 RouteUTurnStepDetails m_uTurnStepDetails;
298 bool m_continueStepDetailsHasBeenSet = false;
299 bool m_distanceHasBeenSet = false;
300 bool m_durationHasBeenSet = false;
301 bool m_exitStepDetailsHasBeenSet = false;
302 bool m_geometryOffsetHasBeenSet = false;
303 bool m_instructionHasBeenSet = false;
304 bool m_keepStepDetailsHasBeenSet = false;
305 bool m_rampStepDetailsHasBeenSet = false;
306 bool m_roundaboutEnterStepDetailsHasBeenSet = false;
307 bool m_roundaboutExitStepDetailsHasBeenSet = false;
308 bool m_roundaboutPassStepDetailsHasBeenSet = false;
309 bool m_turnStepDetailsHasBeenSet = false;
310 bool m_typeHasBeenSet = false;
311 bool m_uTurnStepDetailsHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace GeoRoutes
316} // namespace Aws
RouteTaxiTravelStep & WithExitStepDetails(ExitStepDetailsT &&value)
RouteTaxiTravelStep & WithRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT &&value)
void SetRampStepDetails(RampStepDetailsT &&value)
RouteTaxiTravelStep & WithTurnStepDetails(TurnStepDetailsT &&value)
AWS_GEOROUTES_API RouteTaxiTravelStep()=default
RouteTaxiTravelStep & WithDuration(long long value)
RouteTaxiTravelStep & WithRoundaboutExitStepDetails(RoundaboutExitStepDetailsT &&value)
RouteTaxiTravelStep & WithInstruction(InstructionT &&value)
void SetType(RouteTaxiTravelStepType value)
void SetContinueStepDetails(ContinueStepDetailsT &&value)
const RouteRampStepDetails & GetRampStepDetails() const
RouteTaxiTravelStep & WithContinueStepDetails(ContinueStepDetailsT &&value)
RouteTaxiTravelStep & WithType(RouteTaxiTravelStepType value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRoundaboutPassStepDetails(RoundaboutPassStepDetailsT &&value)
const RouteKeepStepDetails & GetKeepStepDetails() const
void SetUTurnStepDetails(UTurnStepDetailsT &&value)
RouteTaxiTravelStep & WithRoundaboutPassStepDetails(RoundaboutPassStepDetailsT &&value)
RouteTaxiTravelStep & WithDistance(long long value)
const RouteRoundaboutPassStepDetails & GetRoundaboutPassStepDetails() const
void SetKeepStepDetails(KeepStepDetailsT &&value)
void SetExitStepDetails(ExitStepDetailsT &&value)
const RouteTurnStepDetails & GetTurnStepDetails() const
void SetTurnStepDetails(TurnStepDetailsT &&value)
RouteTaxiTravelStep & WithUTurnStepDetails(UTurnStepDetailsT &&value)
RouteTaxiTravelStep & WithGeometryOffset(int value)
AWS_GEOROUTES_API RouteTaxiTravelStep(Aws::Utils::Json::JsonView jsonValue)
const RouteContinueStepDetails & GetContinueStepDetails() const
RouteTaxiTravelStep & WithRampStepDetails(RampStepDetailsT &&value)
const RouteUTurnStepDetails & GetUTurnStepDetails() const
RouteTaxiTravelStep & WithKeepStepDetails(KeepStepDetailsT &&value)
void SetRoundaboutExitStepDetails(RoundaboutExitStepDetailsT &&value)
AWS_GEOROUTES_API RouteTaxiTravelStep & operator=(Aws::Utils::Json::JsonView jsonValue)
const RouteRoundaboutExitStepDetails & GetRoundaboutExitStepDetails() const
const RouteExitStepDetails & GetExitStepDetails() const
void SetRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT &&value)
const RouteRoundaboutEnterStepDetails & GetRoundaboutEnterStepDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue