AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
RoutePedestrianTravelStep.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
10#include <aws/geo-routes/model/LocalizedString.h>
11#include <aws/geo-routes/model/RouteContinueStepDetails.h>
12#include <aws/geo-routes/model/RouteKeepStepDetails.h>
13#include <aws/geo-routes/model/RoutePedestrianTravelStepType.h>
14#include <aws/geo-routes/model/RouteRoad.h>
15#include <aws/geo-routes/model/RouteRoundaboutEnterStepDetails.h>
16#include <aws/geo-routes/model/RouteRoundaboutExitStepDetails.h>
17#include <aws/geo-routes/model/RouteRoundaboutPassStepDetails.h>
18#include <aws/geo-routes/model/RouteSignpost.h>
19#include <aws/geo-routes/model/RouteTurnStepDetails.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace GeoRoutes {
31namespace Model {
32
40 public:
41 AWS_GEOROUTES_API RoutePedestrianTravelStep() = default;
44 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const RouteContinueStepDetails& GetContinueStepDetails() const { return m_continueStepDetails; }
51 inline bool ContinueStepDetailsHasBeenSet() const { return m_continueStepDetailsHasBeenSet; }
52 template <typename ContinueStepDetailsT = RouteContinueStepDetails>
53 void SetContinueStepDetails(ContinueStepDetailsT&& value) {
54 m_continueStepDetailsHasBeenSet = true;
55 m_continueStepDetails = std::forward<ContinueStepDetailsT>(value);
56 }
57 template <typename ContinueStepDetailsT = RouteContinueStepDetails>
58 RoutePedestrianTravelStep& WithContinueStepDetails(ContinueStepDetailsT&& value) {
59 SetContinueStepDetails(std::forward<ContinueStepDetailsT>(value));
60 return *this;
61 }
63
65
68 inline const RouteRoad& GetCurrentRoad() const { return m_currentRoad; }
69 inline bool CurrentRoadHasBeenSet() const { return m_currentRoadHasBeenSet; }
70 template <typename CurrentRoadT = RouteRoad>
71 void SetCurrentRoad(CurrentRoadT&& value) {
72 m_currentRoadHasBeenSet = true;
73 m_currentRoad = std::forward<CurrentRoadT>(value);
74 }
75 template <typename CurrentRoadT = RouteRoad>
77 SetCurrentRoad(std::forward<CurrentRoadT>(value));
78 return *this;
79 }
81
83
86 inline long long GetDistance() const { return m_distance; }
87 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
88 inline void SetDistance(long long value) {
89 m_distanceHasBeenSet = true;
90 m_distance = value;
91 }
92 inline RoutePedestrianTravelStep& WithDistance(long long value) {
93 SetDistance(value);
94 return *this;
95 }
97
99
102 inline long long GetDuration() const { return m_duration; }
103 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
104 inline void SetDuration(long long value) {
105 m_durationHasBeenSet = true;
106 m_duration = value;
107 }
108 inline RoutePedestrianTravelStep& WithDuration(long long value) {
109 SetDuration(value);
110 return *this;
111 }
113
115
118 inline const Aws::Vector<LocalizedString>& GetExitNumber() const { return m_exitNumber; }
119 inline bool ExitNumberHasBeenSet() const { return m_exitNumberHasBeenSet; }
120 template <typename ExitNumberT = Aws::Vector<LocalizedString>>
121 void SetExitNumber(ExitNumberT&& value) {
122 m_exitNumberHasBeenSet = true;
123 m_exitNumber = std::forward<ExitNumberT>(value);
124 }
125 template <typename ExitNumberT = Aws::Vector<LocalizedString>>
127 SetExitNumber(std::forward<ExitNumberT>(value));
128 return *this;
129 }
130 template <typename ExitNumberT = LocalizedString>
132 m_exitNumberHasBeenSet = true;
133 m_exitNumber.emplace_back(std::forward<ExitNumberT>(value));
134 return *this;
135 }
137
139
142 inline int GetGeometryOffset() const { return m_geometryOffset; }
143 inline bool GeometryOffsetHasBeenSet() const { return m_geometryOffsetHasBeenSet; }
144 inline void SetGeometryOffset(int value) {
145 m_geometryOffsetHasBeenSet = true;
146 m_geometryOffset = value;
147 }
149 SetGeometryOffset(value);
150 return *this;
151 }
153
155
159 inline const Aws::String& GetInstruction() const { return m_instruction; }
160 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
161 template <typename InstructionT = Aws::String>
162 void SetInstruction(InstructionT&& value) {
163 m_instructionHasBeenSet = true;
164 m_instruction = std::forward<InstructionT>(value);
165 }
166 template <typename InstructionT = Aws::String>
168 SetInstruction(std::forward<InstructionT>(value));
169 return *this;
170 }
172
174
177 inline const RouteKeepStepDetails& GetKeepStepDetails() const { return m_keepStepDetails; }
178 inline bool KeepStepDetailsHasBeenSet() const { return m_keepStepDetailsHasBeenSet; }
179 template <typename KeepStepDetailsT = RouteKeepStepDetails>
180 void SetKeepStepDetails(KeepStepDetailsT&& value) {
181 m_keepStepDetailsHasBeenSet = true;
182 m_keepStepDetails = std::forward<KeepStepDetailsT>(value);
183 }
184 template <typename KeepStepDetailsT = RouteKeepStepDetails>
186 SetKeepStepDetails(std::forward<KeepStepDetailsT>(value));
187 return *this;
188 }
190
192
195 inline const RouteRoad& GetNextRoad() const { return m_nextRoad; }
196 inline bool NextRoadHasBeenSet() const { return m_nextRoadHasBeenSet; }
197 template <typename NextRoadT = RouteRoad>
198 void SetNextRoad(NextRoadT&& value) {
199 m_nextRoadHasBeenSet = true;
200 m_nextRoad = std::forward<NextRoadT>(value);
201 }
202 template <typename NextRoadT = RouteRoad>
204 SetNextRoad(std::forward<NextRoadT>(value));
205 return *this;
206 }
208
210
213 inline const RouteRoundaboutEnterStepDetails& GetRoundaboutEnterStepDetails() const { return m_roundaboutEnterStepDetails; }
214 inline bool RoundaboutEnterStepDetailsHasBeenSet() const { return m_roundaboutEnterStepDetailsHasBeenSet; }
215 template <typename RoundaboutEnterStepDetailsT = RouteRoundaboutEnterStepDetails>
216 void SetRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT&& value) {
217 m_roundaboutEnterStepDetailsHasBeenSet = true;
218 m_roundaboutEnterStepDetails = std::forward<RoundaboutEnterStepDetailsT>(value);
219 }
220 template <typename RoundaboutEnterStepDetailsT = RouteRoundaboutEnterStepDetails>
221 RoutePedestrianTravelStep& WithRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT&& value) {
222 SetRoundaboutEnterStepDetails(std::forward<RoundaboutEnterStepDetailsT>(value));
223 return *this;
224 }
226
228
231 inline const RouteRoundaboutExitStepDetails& GetRoundaboutExitStepDetails() const { return m_roundaboutExitStepDetails; }
232 inline bool RoundaboutExitStepDetailsHasBeenSet() const { return m_roundaboutExitStepDetailsHasBeenSet; }
233 template <typename RoundaboutExitStepDetailsT = RouteRoundaboutExitStepDetails>
234 void SetRoundaboutExitStepDetails(RoundaboutExitStepDetailsT&& value) {
235 m_roundaboutExitStepDetailsHasBeenSet = true;
236 m_roundaboutExitStepDetails = std::forward<RoundaboutExitStepDetailsT>(value);
237 }
238 template <typename RoundaboutExitStepDetailsT = RouteRoundaboutExitStepDetails>
239 RoutePedestrianTravelStep& WithRoundaboutExitStepDetails(RoundaboutExitStepDetailsT&& value) {
240 SetRoundaboutExitStepDetails(std::forward<RoundaboutExitStepDetailsT>(value));
241 return *this;
242 }
244
246
249 inline const RouteRoundaboutPassStepDetails& GetRoundaboutPassStepDetails() const { return m_roundaboutPassStepDetails; }
250 inline bool RoundaboutPassStepDetailsHasBeenSet() const { return m_roundaboutPassStepDetailsHasBeenSet; }
251 template <typename RoundaboutPassStepDetailsT = RouteRoundaboutPassStepDetails>
252 void SetRoundaboutPassStepDetails(RoundaboutPassStepDetailsT&& value) {
253 m_roundaboutPassStepDetailsHasBeenSet = true;
254 m_roundaboutPassStepDetails = std::forward<RoundaboutPassStepDetailsT>(value);
255 }
256 template <typename RoundaboutPassStepDetailsT = RouteRoundaboutPassStepDetails>
257 RoutePedestrianTravelStep& WithRoundaboutPassStepDetails(RoundaboutPassStepDetailsT&& value) {
258 SetRoundaboutPassStepDetails(std::forward<RoundaboutPassStepDetailsT>(value));
259 return *this;
260 }
262
264
268 inline const RouteSignpost& GetSignpost() const { return m_signpost; }
269 inline bool SignpostHasBeenSet() const { return m_signpostHasBeenSet; }
270 template <typename SignpostT = RouteSignpost>
271 void SetSignpost(SignpostT&& value) {
272 m_signpostHasBeenSet = true;
273 m_signpost = std::forward<SignpostT>(value);
274 }
275 template <typename SignpostT = RouteSignpost>
277 SetSignpost(std::forward<SignpostT>(value));
278 return *this;
279 }
281
283
286 inline const RouteTurnStepDetails& GetTurnStepDetails() const { return m_turnStepDetails; }
287 inline bool TurnStepDetailsHasBeenSet() const { return m_turnStepDetailsHasBeenSet; }
288 template <typename TurnStepDetailsT = RouteTurnStepDetails>
289 void SetTurnStepDetails(TurnStepDetailsT&& value) {
290 m_turnStepDetailsHasBeenSet = true;
291 m_turnStepDetails = std::forward<TurnStepDetailsT>(value);
292 }
293 template <typename TurnStepDetailsT = RouteTurnStepDetails>
295 SetTurnStepDetails(std::forward<TurnStepDetailsT>(value));
296 return *this;
297 }
299
301
304 inline RoutePedestrianTravelStepType GetType() const { return m_type; }
305 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
307 m_typeHasBeenSet = true;
308 m_type = value;
309 }
311 SetType(value);
312 return *this;
313 }
315 private:
316 RouteContinueStepDetails m_continueStepDetails;
317
318 RouteRoad m_currentRoad;
319
320 long long m_distance{0};
321
322 long long m_duration{0};
323
324 Aws::Vector<LocalizedString> m_exitNumber;
325
326 int m_geometryOffset{0};
327
328 Aws::String m_instruction;
329
330 RouteKeepStepDetails m_keepStepDetails;
331
332 RouteRoad m_nextRoad;
333
334 RouteRoundaboutEnterStepDetails m_roundaboutEnterStepDetails;
335
336 RouteRoundaboutExitStepDetails m_roundaboutExitStepDetails;
337
338 RouteRoundaboutPassStepDetails m_roundaboutPassStepDetails;
339
340 RouteSignpost m_signpost;
341
342 RouteTurnStepDetails m_turnStepDetails;
343
345 bool m_continueStepDetailsHasBeenSet = false;
346 bool m_currentRoadHasBeenSet = false;
347 bool m_distanceHasBeenSet = false;
348 bool m_durationHasBeenSet = false;
349 bool m_exitNumberHasBeenSet = false;
350 bool m_geometryOffsetHasBeenSet = false;
351 bool m_instructionHasBeenSet = false;
352 bool m_keepStepDetailsHasBeenSet = false;
353 bool m_nextRoadHasBeenSet = false;
354 bool m_roundaboutEnterStepDetailsHasBeenSet = false;
355 bool m_roundaboutExitStepDetailsHasBeenSet = false;
356 bool m_roundaboutPassStepDetailsHasBeenSet = false;
357 bool m_signpostHasBeenSet = false;
358 bool m_turnStepDetailsHasBeenSet = false;
359 bool m_typeHasBeenSet = false;
360};
361
362} // namespace Model
363} // namespace GeoRoutes
364} // namespace Aws
RoutePedestrianTravelStep & WithGeometryOffset(int value)
RoutePedestrianTravelStep & WithRoundaboutExitStepDetails(RoundaboutExitStepDetailsT &&value)
void SetType(RoutePedestrianTravelStepType value)
const RouteKeepStepDetails & GetKeepStepDetails() const
void SetContinueStepDetails(ContinueStepDetailsT &&value)
RoutePedestrianTravelStep & WithInstruction(InstructionT &&value)
const RouteRoundaboutPassStepDetails & GetRoundaboutPassStepDetails() const
RoutePedestrianTravelStep & WithType(RoutePedestrianTravelStepType value)
RoutePedestrianTravelStep & WithSignpost(SignpostT &&value)
void SetRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT &&value)
RoutePedestrianTravelStep & WithCurrentRoad(CurrentRoadT &&value)
AWS_GEOROUTES_API RoutePedestrianTravelStep & operator=(Aws::Utils::Json::JsonView jsonValue)
const RouteTurnStepDetails & GetTurnStepDetails() const
AWS_GEOROUTES_API RoutePedestrianTravelStep()=default
RoutePedestrianTravelStep & WithRoundaboutPassStepDetails(RoundaboutPassStepDetailsT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRoundaboutPassStepDetails(RoundaboutPassStepDetailsT &&value)
void SetRoundaboutExitStepDetails(RoundaboutExitStepDetailsT &&value)
RoutePedestrianTravelStep & WithContinueStepDetails(ContinueStepDetailsT &&value)
RoutePedestrianTravelStep & WithNextRoad(NextRoadT &&value)
AWS_GEOROUTES_API RoutePedestrianTravelStep(Aws::Utils::Json::JsonView jsonValue)
RoutePedestrianTravelStep & WithKeepStepDetails(KeepStepDetailsT &&value)
RoutePedestrianTravelStep & WithTurnStepDetails(TurnStepDetailsT &&value)
const RouteContinueStepDetails & GetContinueStepDetails() const
RoutePedestrianTravelStep & WithDuration(long long value)
const RouteRoundaboutEnterStepDetails & GetRoundaboutEnterStepDetails() const
RoutePedestrianTravelStep & AddExitNumber(ExitNumberT &&value)
RoutePedestrianTravelStep & WithExitNumber(ExitNumberT &&value)
const Aws::Vector< LocalizedString > & GetExitNumber() const
RoutePedestrianTravelStep & WithDistance(long long value)
RoutePedestrianTravelStep & WithRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT &&value)
const RouteRoundaboutExitStepDetails & GetRoundaboutExitStepDetails() 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