AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RoutePedestrianTravelStep.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteContinueStepDetails.h>
9#include <aws/geo-routes/model/RouteRoad.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/geo-routes/model/RouteKeepStepDetails.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/RouteSignpost.h>
17#include <aws/geo-routes/model/RouteTurnStepDetails.h>
18#include <aws/geo-routes/model/RoutePedestrianTravelStepType.h>
19#include <aws/geo-routes/model/LocalizedString.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace GeoRoutes
33{
34namespace Model
35{
36
44 {
45 public:
46 AWS_GEOROUTES_API RoutePedestrianTravelStep() = default;
49 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const RouteContinueStepDetails& GetContinueStepDetails() const { return m_continueStepDetails; }
57 inline bool ContinueStepDetailsHasBeenSet() const { return m_continueStepDetailsHasBeenSet; }
58 template<typename ContinueStepDetailsT = RouteContinueStepDetails>
59 void SetContinueStepDetails(ContinueStepDetailsT&& value) { m_continueStepDetailsHasBeenSet = true; m_continueStepDetails = std::forward<ContinueStepDetailsT>(value); }
60 template<typename ContinueStepDetailsT = RouteContinueStepDetails>
61 RoutePedestrianTravelStep& WithContinueStepDetails(ContinueStepDetailsT&& value) { SetContinueStepDetails(std::forward<ContinueStepDetailsT>(value)); return *this;}
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) { m_currentRoadHasBeenSet = true; m_currentRoad = std::forward<CurrentRoadT>(value); }
72 template<typename CurrentRoadT = RouteRoad>
73 RoutePedestrianTravelStep& WithCurrentRoad(CurrentRoadT&& value) { SetCurrentRoad(std::forward<CurrentRoadT>(value)); return *this;}
75
77
80 inline long long GetDistance() const { return m_distance; }
81 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
82 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
83 inline RoutePedestrianTravelStep& WithDistance(long long value) { SetDistance(value); return *this;}
85
87
90 inline long long GetDuration() const { return m_duration; }
91 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
92 inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
93 inline RoutePedestrianTravelStep& WithDuration(long long value) { SetDuration(value); return *this;}
95
97
100 inline const Aws::Vector<LocalizedString>& GetExitNumber() const { return m_exitNumber; }
101 inline bool ExitNumberHasBeenSet() const { return m_exitNumberHasBeenSet; }
102 template<typename ExitNumberT = Aws::Vector<LocalizedString>>
103 void SetExitNumber(ExitNumberT&& value) { m_exitNumberHasBeenSet = true; m_exitNumber = std::forward<ExitNumberT>(value); }
104 template<typename ExitNumberT = Aws::Vector<LocalizedString>>
105 RoutePedestrianTravelStep& WithExitNumber(ExitNumberT&& value) { SetExitNumber(std::forward<ExitNumberT>(value)); return *this;}
106 template<typename ExitNumberT = LocalizedString>
107 RoutePedestrianTravelStep& AddExitNumber(ExitNumberT&& value) { m_exitNumberHasBeenSet = true; m_exitNumber.emplace_back(std::forward<ExitNumberT>(value)); return *this; }
109
111
114 inline int GetGeometryOffset() const { return m_geometryOffset; }
115 inline bool GeometryOffsetHasBeenSet() const { return m_geometryOffsetHasBeenSet; }
116 inline void SetGeometryOffset(int value) { m_geometryOffsetHasBeenSet = true; m_geometryOffset = value; }
117 inline RoutePedestrianTravelStep& WithGeometryOffset(int value) { SetGeometryOffset(value); return *this;}
119
121
125 inline const Aws::String& GetInstruction() const { return m_instruction; }
126 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
127 template<typename InstructionT = Aws::String>
128 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet = true; m_instruction = std::forward<InstructionT>(value); }
129 template<typename InstructionT = Aws::String>
130 RoutePedestrianTravelStep& WithInstruction(InstructionT&& value) { SetInstruction(std::forward<InstructionT>(value)); return *this;}
132
134
137 inline const RouteKeepStepDetails& GetKeepStepDetails() const { return m_keepStepDetails; }
138 inline bool KeepStepDetailsHasBeenSet() const { return m_keepStepDetailsHasBeenSet; }
139 template<typename KeepStepDetailsT = RouteKeepStepDetails>
140 void SetKeepStepDetails(KeepStepDetailsT&& value) { m_keepStepDetailsHasBeenSet = true; m_keepStepDetails = std::forward<KeepStepDetailsT>(value); }
141 template<typename KeepStepDetailsT = RouteKeepStepDetails>
142 RoutePedestrianTravelStep& WithKeepStepDetails(KeepStepDetailsT&& value) { SetKeepStepDetails(std::forward<KeepStepDetailsT>(value)); return *this;}
144
146
149 inline const RouteRoad& GetNextRoad() const { return m_nextRoad; }
150 inline bool NextRoadHasBeenSet() const { return m_nextRoadHasBeenSet; }
151 template<typename NextRoadT = RouteRoad>
152 void SetNextRoad(NextRoadT&& value) { m_nextRoadHasBeenSet = true; m_nextRoad = std::forward<NextRoadT>(value); }
153 template<typename NextRoadT = RouteRoad>
154 RoutePedestrianTravelStep& WithNextRoad(NextRoadT&& value) { SetNextRoad(std::forward<NextRoadT>(value)); return *this;}
156
158
161 inline const RouteRoundaboutEnterStepDetails& GetRoundaboutEnterStepDetails() const { return m_roundaboutEnterStepDetails; }
162 inline bool RoundaboutEnterStepDetailsHasBeenSet() const { return m_roundaboutEnterStepDetailsHasBeenSet; }
163 template<typename RoundaboutEnterStepDetailsT = RouteRoundaboutEnterStepDetails>
164 void SetRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT&& value) { m_roundaboutEnterStepDetailsHasBeenSet = true; m_roundaboutEnterStepDetails = std::forward<RoundaboutEnterStepDetailsT>(value); }
165 template<typename RoundaboutEnterStepDetailsT = RouteRoundaboutEnterStepDetails>
166 RoutePedestrianTravelStep& WithRoundaboutEnterStepDetails(RoundaboutEnterStepDetailsT&& value) { SetRoundaboutEnterStepDetails(std::forward<RoundaboutEnterStepDetailsT>(value)); return *this;}
168
170
173 inline const RouteRoundaboutExitStepDetails& GetRoundaboutExitStepDetails() const { return m_roundaboutExitStepDetails; }
174 inline bool RoundaboutExitStepDetailsHasBeenSet() const { return m_roundaboutExitStepDetailsHasBeenSet; }
175 template<typename RoundaboutExitStepDetailsT = RouteRoundaboutExitStepDetails>
176 void SetRoundaboutExitStepDetails(RoundaboutExitStepDetailsT&& value) { m_roundaboutExitStepDetailsHasBeenSet = true; m_roundaboutExitStepDetails = std::forward<RoundaboutExitStepDetailsT>(value); }
177 template<typename RoundaboutExitStepDetailsT = RouteRoundaboutExitStepDetails>
178 RoutePedestrianTravelStep& WithRoundaboutExitStepDetails(RoundaboutExitStepDetailsT&& value) { SetRoundaboutExitStepDetails(std::forward<RoundaboutExitStepDetailsT>(value)); return *this;}
180
182
185 inline const RouteRoundaboutPassStepDetails& GetRoundaboutPassStepDetails() const { return m_roundaboutPassStepDetails; }
186 inline bool RoundaboutPassStepDetailsHasBeenSet() const { return m_roundaboutPassStepDetailsHasBeenSet; }
187 template<typename RoundaboutPassStepDetailsT = RouteRoundaboutPassStepDetails>
188 void SetRoundaboutPassStepDetails(RoundaboutPassStepDetailsT&& value) { m_roundaboutPassStepDetailsHasBeenSet = true; m_roundaboutPassStepDetails = std::forward<RoundaboutPassStepDetailsT>(value); }
189 template<typename RoundaboutPassStepDetailsT = RouteRoundaboutPassStepDetails>
190 RoutePedestrianTravelStep& WithRoundaboutPassStepDetails(RoundaboutPassStepDetailsT&& value) { SetRoundaboutPassStepDetails(std::forward<RoundaboutPassStepDetailsT>(value)); return *this;}
192
194
198 inline const RouteSignpost& GetSignpost() const { return m_signpost; }
199 inline bool SignpostHasBeenSet() const { return m_signpostHasBeenSet; }
200 template<typename SignpostT = RouteSignpost>
201 void SetSignpost(SignpostT&& value) { m_signpostHasBeenSet = true; m_signpost = std::forward<SignpostT>(value); }
202 template<typename SignpostT = RouteSignpost>
203 RoutePedestrianTravelStep& WithSignpost(SignpostT&& value) { SetSignpost(std::forward<SignpostT>(value)); return *this;}
205
207
210 inline const RouteTurnStepDetails& GetTurnStepDetails() const { return m_turnStepDetails; }
211 inline bool TurnStepDetailsHasBeenSet() const { return m_turnStepDetailsHasBeenSet; }
212 template<typename TurnStepDetailsT = RouteTurnStepDetails>
213 void SetTurnStepDetails(TurnStepDetailsT&& value) { m_turnStepDetailsHasBeenSet = true; m_turnStepDetails = std::forward<TurnStepDetailsT>(value); }
214 template<typename TurnStepDetailsT = RouteTurnStepDetails>
215 RoutePedestrianTravelStep& WithTurnStepDetails(TurnStepDetailsT&& value) { SetTurnStepDetails(std::forward<TurnStepDetailsT>(value)); return *this;}
217
219
222 inline RoutePedestrianTravelStepType GetType() const { return m_type; }
223 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
224 inline void SetType(RoutePedestrianTravelStepType value) { m_typeHasBeenSet = true; m_type = value; }
227 private:
228
229 RouteContinueStepDetails m_continueStepDetails;
230 bool m_continueStepDetailsHasBeenSet = false;
231
232 RouteRoad m_currentRoad;
233 bool m_currentRoadHasBeenSet = false;
234
235 long long m_distance{0};
236 bool m_distanceHasBeenSet = false;
237
238 long long m_duration{0};
239 bool m_durationHasBeenSet = false;
240
241 Aws::Vector<LocalizedString> m_exitNumber;
242 bool m_exitNumberHasBeenSet = false;
243
244 int m_geometryOffset{0};
245 bool m_geometryOffsetHasBeenSet = false;
246
247 Aws::String m_instruction;
248 bool m_instructionHasBeenSet = false;
249
250 RouteKeepStepDetails m_keepStepDetails;
251 bool m_keepStepDetailsHasBeenSet = false;
252
253 RouteRoad m_nextRoad;
254 bool m_nextRoadHasBeenSet = false;
255
256 RouteRoundaboutEnterStepDetails m_roundaboutEnterStepDetails;
257 bool m_roundaboutEnterStepDetailsHasBeenSet = false;
258
259 RouteRoundaboutExitStepDetails m_roundaboutExitStepDetails;
260 bool m_roundaboutExitStepDetailsHasBeenSet = false;
261
262 RouteRoundaboutPassStepDetails m_roundaboutPassStepDetails;
263 bool m_roundaboutPassStepDetailsHasBeenSet = false;
264
265 RouteSignpost m_signpost;
266 bool m_signpostHasBeenSet = false;
267
268 RouteTurnStepDetails m_turnStepDetails;
269 bool m_turnStepDetailsHasBeenSet = false;
270
272 bool m_typeHasBeenSet = false;
273 };
274
275} // namespace Model
276} // namespace GeoRoutes
277} // 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