AWS SDK for C++

AWS SDK for C++ Version 1.11.834

Loading...
Searching...
No Matches
RoutePedestrianLegDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/RoutePassThroughWaypoint.h>
10#include <aws/geo-routes/model/RoutePedestrianAfterTravelStep.h>
11#include <aws/geo-routes/model/RoutePedestrianArrival.h>
12#include <aws/geo-routes/model/RoutePedestrianDeparture.h>
13#include <aws/geo-routes/model/RoutePedestrianNotice.h>
14#include <aws/geo-routes/model/RoutePedestrianSpan.h>
15#include <aws/geo-routes/model/RoutePedestrianSummary.h>
16#include <aws/geo-routes/model/RoutePedestrianTravelStep.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace GeoRoutes {
28namespace Model {
29
36 public:
37 AWS_GEOROUTES_API RoutePedestrianLegDetails() = default;
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::Vector<RoutePedestrianAfterTravelStep>& GetAfterTravelSteps() const { return m_afterTravelSteps; }
48 inline bool AfterTravelStepsHasBeenSet() const { return m_afterTravelStepsHasBeenSet; }
49 template <typename AfterTravelStepsT = Aws::Vector<RoutePedestrianAfterTravelStep>>
50 void SetAfterTravelSteps(AfterTravelStepsT&& value) {
51 m_afterTravelStepsHasBeenSet = true;
52 m_afterTravelSteps = std::forward<AfterTravelStepsT>(value);
53 }
54 template <typename AfterTravelStepsT = Aws::Vector<RoutePedestrianAfterTravelStep>>
55 RoutePedestrianLegDetails& WithAfterTravelSteps(AfterTravelStepsT&& value) {
56 SetAfterTravelSteps(std::forward<AfterTravelStepsT>(value));
57 return *this;
58 }
59 template <typename AfterTravelStepsT = RoutePedestrianAfterTravelStep>
60 RoutePedestrianLegDetails& AddAfterTravelSteps(AfterTravelStepsT&& value) {
61 m_afterTravelStepsHasBeenSet = true;
62 m_afterTravelSteps.emplace_back(std::forward<AfterTravelStepsT>(value));
63 return *this;
64 }
66
68
71 inline const RoutePedestrianArrival& GetArrival() const { return m_arrival; }
72 inline bool ArrivalHasBeenSet() const { return m_arrivalHasBeenSet; }
73 template <typename ArrivalT = RoutePedestrianArrival>
74 void SetArrival(ArrivalT&& value) {
75 m_arrivalHasBeenSet = true;
76 m_arrival = std::forward<ArrivalT>(value);
77 }
78 template <typename ArrivalT = RoutePedestrianArrival>
80 SetArrival(std::forward<ArrivalT>(value));
81 return *this;
82 }
84
86
89 inline const RoutePedestrianDeparture& GetDeparture() const { return m_departure; }
90 inline bool DepartureHasBeenSet() const { return m_departureHasBeenSet; }
91 template <typename DepartureT = RoutePedestrianDeparture>
92 void SetDeparture(DepartureT&& value) {
93 m_departureHasBeenSet = true;
94 m_departure = std::forward<DepartureT>(value);
95 }
96 template <typename DepartureT = RoutePedestrianDeparture>
98 SetDeparture(std::forward<DepartureT>(value));
99 return *this;
100 }
102
104
111 inline const Aws::Vector<RoutePedestrianNotice>& GetNotices() const { return m_notices; }
112 inline bool NoticesHasBeenSet() const { return m_noticesHasBeenSet; }
113 template <typename NoticesT = Aws::Vector<RoutePedestrianNotice>>
114 void SetNotices(NoticesT&& value) {
115 m_noticesHasBeenSet = true;
116 m_notices = std::forward<NoticesT>(value);
117 }
118 template <typename NoticesT = Aws::Vector<RoutePedestrianNotice>>
120 SetNotices(std::forward<NoticesT>(value));
121 return *this;
122 }
123 template <typename NoticesT = RoutePedestrianNotice>
125 m_noticesHasBeenSet = true;
126 m_notices.emplace_back(std::forward<NoticesT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<RoutePassThroughWaypoint>& GetPassThroughWaypoints() const { return m_passThroughWaypoints; }
137 inline bool PassThroughWaypointsHasBeenSet() const { return m_passThroughWaypointsHasBeenSet; }
138 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
139 void SetPassThroughWaypoints(PassThroughWaypointsT&& value) {
140 m_passThroughWaypointsHasBeenSet = true;
141 m_passThroughWaypoints = std::forward<PassThroughWaypointsT>(value);
142 }
143 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
144 RoutePedestrianLegDetails& WithPassThroughWaypoints(PassThroughWaypointsT&& value) {
145 SetPassThroughWaypoints(std::forward<PassThroughWaypointsT>(value));
146 return *this;
147 }
148 template <typename PassThroughWaypointsT = RoutePassThroughWaypoint>
149 RoutePedestrianLegDetails& AddPassThroughWaypoints(PassThroughWaypointsT&& value) {
150 m_passThroughWaypointsHasBeenSet = true;
151 m_passThroughWaypoints.emplace_back(std::forward<PassThroughWaypointsT>(value));
152 return *this;
153 }
155
157
164 inline const Aws::Vector<RoutePedestrianSpan>& GetSpans() const { return m_spans; }
165 inline bool SpansHasBeenSet() const { return m_spansHasBeenSet; }
166 template <typename SpansT = Aws::Vector<RoutePedestrianSpan>>
167 void SetSpans(SpansT&& value) {
168 m_spansHasBeenSet = true;
169 m_spans = std::forward<SpansT>(value);
170 }
171 template <typename SpansT = Aws::Vector<RoutePedestrianSpan>>
173 SetSpans(std::forward<SpansT>(value));
174 return *this;
175 }
176 template <typename SpansT = RoutePedestrianSpan>
178 m_spansHasBeenSet = true;
179 m_spans.emplace_back(std::forward<SpansT>(value));
180 return *this;
181 }
183
185
188 inline const RoutePedestrianSummary& GetSummary() const { return m_summary; }
189 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
190 template <typename SummaryT = RoutePedestrianSummary>
191 void SetSummary(SummaryT&& value) {
192 m_summaryHasBeenSet = true;
193 m_summary = std::forward<SummaryT>(value);
194 }
195 template <typename SummaryT = RoutePedestrianSummary>
197 SetSummary(std::forward<SummaryT>(value));
198 return *this;
199 }
201
203
207 inline const Aws::Vector<RoutePedestrianTravelStep>& GetTravelSteps() const { return m_travelSteps; }
208 inline bool TravelStepsHasBeenSet() const { return m_travelStepsHasBeenSet; }
209 template <typename TravelStepsT = Aws::Vector<RoutePedestrianTravelStep>>
210 void SetTravelSteps(TravelStepsT&& value) {
211 m_travelStepsHasBeenSet = true;
212 m_travelSteps = std::forward<TravelStepsT>(value);
213 }
214 template <typename TravelStepsT = Aws::Vector<RoutePedestrianTravelStep>>
216 SetTravelSteps(std::forward<TravelStepsT>(value));
217 return *this;
218 }
219 template <typename TravelStepsT = RoutePedestrianTravelStep>
221 m_travelStepsHasBeenSet = true;
222 m_travelSteps.emplace_back(std::forward<TravelStepsT>(value));
223 return *this;
224 }
226 private:
228
229 RoutePedestrianArrival m_arrival;
230
231 RoutePedestrianDeparture m_departure;
232
234
235 Aws::Vector<RoutePassThroughWaypoint> m_passThroughWaypoints;
236
238
239 RoutePedestrianSummary m_summary;
240
242 bool m_afterTravelStepsHasBeenSet = false;
243 bool m_arrivalHasBeenSet = false;
244 bool m_departureHasBeenSet = false;
245 bool m_noticesHasBeenSet = false;
246 bool m_passThroughWaypointsHasBeenSet = false;
247 bool m_spansHasBeenSet = false;
248 bool m_summaryHasBeenSet = false;
249 bool m_travelStepsHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace GeoRoutes
254} // namespace Aws
RoutePedestrianLegDetails & AddSpans(SpansT &&value)
const RoutePedestrianDeparture & GetDeparture() const
RoutePedestrianLegDetails & WithNotices(NoticesT &&value)
RoutePedestrianLegDetails & WithSpans(SpansT &&value)
RoutePedestrianLegDetails & WithTravelSteps(TravelStepsT &&value)
const Aws::Vector< RoutePedestrianNotice > & GetNotices() const
const Aws::Vector< RoutePassThroughWaypoint > & GetPassThroughWaypoints() const
AWS_GEOROUTES_API RoutePedestrianLegDetails()=default
RoutePedestrianLegDetails & AddNotices(NoticesT &&value)
RoutePedestrianLegDetails & AddAfterTravelSteps(AfterTravelStepsT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RoutePedestrianLegDetails & AddPassThroughWaypoints(PassThroughWaypointsT &&value)
RoutePedestrianLegDetails & WithDeparture(DepartureT &&value)
AWS_GEOROUTES_API RoutePedestrianLegDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RoutePedestrianAfterTravelStep > & GetAfterTravelSteps() const
const Aws::Vector< RoutePedestrianSpan > & GetSpans() const
RoutePedestrianLegDetails & AddTravelSteps(TravelStepsT &&value)
RoutePedestrianLegDetails & WithAfterTravelSteps(AfterTravelStepsT &&value)
RoutePedestrianLegDetails & WithArrival(ArrivalT &&value)
const Aws::Vector< RoutePedestrianTravelStep > & GetTravelSteps() const
AWS_GEOROUTES_API RoutePedestrianLegDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const RoutePedestrianArrival & GetArrival() const
RoutePedestrianLegDetails & WithPassThroughWaypoints(PassThroughWaypointsT &&value)
void SetPassThroughWaypoints(PassThroughWaypointsT &&value)
RoutePedestrianLegDetails & WithSummary(SummaryT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue