AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RouteTransitLegDetails.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/RouteAttribution.h>
10#include <aws/geo-routes/model/RoutePassThroughWaypoint.h>
11#include <aws/geo-routes/model/RouteTransitAfterTravelStep.h>
12#include <aws/geo-routes/model/RouteTransitAgency.h>
13#include <aws/geo-routes/model/RouteTransitArrival.h>
14#include <aws/geo-routes/model/RouteTransitBeforeTravelStep.h>
15#include <aws/geo-routes/model/RouteTransitDeparture.h>
16#include <aws/geo-routes/model/RouteTransitIncident.h>
17#include <aws/geo-routes/model/RouteTransitIntermediateStop.h>
18#include <aws/geo-routes/model/RouteTransitNextDeparture.h>
19#include <aws/geo-routes/model/RouteTransitNotice.h>
20#include <aws/geo-routes/model/RouteTransitSpan.h>
21#include <aws/geo-routes/model/RouteTransitSummary.h>
22#include <aws/geo-routes/model/RouteTransitTransportModeDetails.h>
23#include <aws/geo-routes/model/RouteTransitTravelStep.h>
24#include <aws/geo-routes/model/RouteWebLink.h>
25
26#include <utility>
27
28namespace Aws {
29namespace Utils {
30namespace Json {
31class JsonValue;
32class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace GeoRoutes {
36namespace Model {
37
45 public:
46 AWS_GEOROUTES_API RouteTransitLegDetails() = default;
49 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
50
52
56 inline const Aws::Vector<RouteTransitAfterTravelStep>& GetAfterTravelSteps() const { return m_afterTravelSteps; }
57 inline bool AfterTravelStepsHasBeenSet() const { return m_afterTravelStepsHasBeenSet; }
58 template <typename AfterTravelStepsT = Aws::Vector<RouteTransitAfterTravelStep>>
59 void SetAfterTravelSteps(AfterTravelStepsT&& value) {
60 m_afterTravelStepsHasBeenSet = true;
61 m_afterTravelSteps = std::forward<AfterTravelStepsT>(value);
62 }
63 template <typename AfterTravelStepsT = Aws::Vector<RouteTransitAfterTravelStep>>
64 RouteTransitLegDetails& WithAfterTravelSteps(AfterTravelStepsT&& value) {
65 SetAfterTravelSteps(std::forward<AfterTravelStepsT>(value));
66 return *this;
67 }
68 template <typename AfterTravelStepsT = RouteTransitAfterTravelStep>
69 RouteTransitLegDetails& AddAfterTravelSteps(AfterTravelStepsT&& value) {
70 m_afterTravelStepsHasBeenSet = true;
71 m_afterTravelSteps.emplace_back(std::forward<AfterTravelStepsT>(value));
72 return *this;
73 }
75
77
80 inline const RouteTransitAgency& GetAgency() const { return m_agency; }
81 inline bool AgencyHasBeenSet() const { return m_agencyHasBeenSet; }
82 template <typename AgencyT = RouteTransitAgency>
83 void SetAgency(AgencyT&& value) {
84 m_agencyHasBeenSet = true;
85 m_agency = std::forward<AgencyT>(value);
86 }
87 template <typename AgencyT = RouteTransitAgency>
89 SetAgency(std::forward<AgencyT>(value));
90 return *this;
91 }
93
95
98 inline const RouteTransitArrival& GetArrival() const { return m_arrival; }
99 inline bool ArrivalHasBeenSet() const { return m_arrivalHasBeenSet; }
100 template <typename ArrivalT = RouteTransitArrival>
101 void SetArrival(ArrivalT&& value) {
102 m_arrivalHasBeenSet = true;
103 m_arrival = std::forward<ArrivalT>(value);
104 }
105 template <typename ArrivalT = RouteTransitArrival>
107 SetArrival(std::forward<ArrivalT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<RouteAttribution>& GetAttributions() const { return m_attributions; }
117 inline bool AttributionsHasBeenSet() const { return m_attributionsHasBeenSet; }
118 template <typename AttributionsT = Aws::Vector<RouteAttribution>>
119 void SetAttributions(AttributionsT&& value) {
120 m_attributionsHasBeenSet = true;
121 m_attributions = std::forward<AttributionsT>(value);
122 }
123 template <typename AttributionsT = Aws::Vector<RouteAttribution>>
124 RouteTransitLegDetails& WithAttributions(AttributionsT&& value) {
125 SetAttributions(std::forward<AttributionsT>(value));
126 return *this;
127 }
128 template <typename AttributionsT = RouteAttribution>
129 RouteTransitLegDetails& AddAttributions(AttributionsT&& value) {
130 m_attributionsHasBeenSet = true;
131 m_attributions.emplace_back(std::forward<AttributionsT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Vector<RouteTransitBeforeTravelStep>& GetBeforeTravelSteps() const { return m_beforeTravelSteps; }
142 inline bool BeforeTravelStepsHasBeenSet() const { return m_beforeTravelStepsHasBeenSet; }
143 template <typename BeforeTravelStepsT = Aws::Vector<RouteTransitBeforeTravelStep>>
144 void SetBeforeTravelSteps(BeforeTravelStepsT&& value) {
145 m_beforeTravelStepsHasBeenSet = true;
146 m_beforeTravelSteps = std::forward<BeforeTravelStepsT>(value);
147 }
148 template <typename BeforeTravelStepsT = Aws::Vector<RouteTransitBeforeTravelStep>>
149 RouteTransitLegDetails& WithBeforeTravelSteps(BeforeTravelStepsT&& value) {
150 SetBeforeTravelSteps(std::forward<BeforeTravelStepsT>(value));
151 return *this;
152 }
153 template <typename BeforeTravelStepsT = RouteTransitBeforeTravelStep>
154 RouteTransitLegDetails& AddBeforeTravelSteps(BeforeTravelStepsT&& value) {
155 m_beforeTravelStepsHasBeenSet = true;
156 m_beforeTravelSteps.emplace_back(std::forward<BeforeTravelStepsT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Vector<RouteWebLink>& GetBookingWebLinks() const { return m_bookingWebLinks; }
166 inline bool BookingWebLinksHasBeenSet() const { return m_bookingWebLinksHasBeenSet; }
167 template <typename BookingWebLinksT = Aws::Vector<RouteWebLink>>
168 void SetBookingWebLinks(BookingWebLinksT&& value) {
169 m_bookingWebLinksHasBeenSet = true;
170 m_bookingWebLinks = std::forward<BookingWebLinksT>(value);
171 }
172 template <typename BookingWebLinksT = Aws::Vector<RouteWebLink>>
173 RouteTransitLegDetails& WithBookingWebLinks(BookingWebLinksT&& value) {
174 SetBookingWebLinks(std::forward<BookingWebLinksT>(value));
175 return *this;
176 }
177 template <typename BookingWebLinksT = RouteWebLink>
178 RouteTransitLegDetails& AddBookingWebLinks(BookingWebLinksT&& value) {
179 m_bookingWebLinksHasBeenSet = true;
180 m_bookingWebLinks.emplace_back(std::forward<BookingWebLinksT>(value));
181 return *this;
182 }
184
186
189 inline const RouteTransitDeparture& GetDeparture() const { return m_departure; }
190 inline bool DepartureHasBeenSet() const { return m_departureHasBeenSet; }
191 template <typename DepartureT = RouteTransitDeparture>
192 void SetDeparture(DepartureT&& value) {
193 m_departureHasBeenSet = true;
194 m_departure = std::forward<DepartureT>(value);
195 }
196 template <typename DepartureT = RouteTransitDeparture>
198 SetDeparture(std::forward<DepartureT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::Vector<RouteTransitIncident>& GetIncidents() const { return m_incidents; }
208 inline bool IncidentsHasBeenSet() const { return m_incidentsHasBeenSet; }
209 template <typename IncidentsT = Aws::Vector<RouteTransitIncident>>
210 void SetIncidents(IncidentsT&& value) {
211 m_incidentsHasBeenSet = true;
212 m_incidents = std::forward<IncidentsT>(value);
213 }
214 template <typename IncidentsT = Aws::Vector<RouteTransitIncident>>
216 SetIncidents(std::forward<IncidentsT>(value));
217 return *this;
218 }
219 template <typename IncidentsT = RouteTransitIncident>
221 m_incidentsHasBeenSet = true;
222 m_incidents.emplace_back(std::forward<IncidentsT>(value));
223 return *this;
224 }
226
228
232 inline const Aws::Vector<RouteTransitIntermediateStop>& GetIntermediateStops() const { return m_intermediateStops; }
233 inline bool IntermediateStopsHasBeenSet() const { return m_intermediateStopsHasBeenSet; }
234 template <typename IntermediateStopsT = Aws::Vector<RouteTransitIntermediateStop>>
235 void SetIntermediateStops(IntermediateStopsT&& value) {
236 m_intermediateStopsHasBeenSet = true;
237 m_intermediateStops = std::forward<IntermediateStopsT>(value);
238 }
239 template <typename IntermediateStopsT = Aws::Vector<RouteTransitIntermediateStop>>
240 RouteTransitLegDetails& WithIntermediateStops(IntermediateStopsT&& value) {
241 SetIntermediateStops(std::forward<IntermediateStopsT>(value));
242 return *this;
243 }
244 template <typename IntermediateStopsT = RouteTransitIntermediateStop>
245 RouteTransitLegDetails& AddIntermediateStops(IntermediateStopsT&& value) {
246 m_intermediateStopsHasBeenSet = true;
247 m_intermediateStops.emplace_back(std::forward<IntermediateStopsT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::Vector<RouteTransitNextDeparture>& GetNextDepartures() const { return m_nextDepartures; }
257 inline bool NextDeparturesHasBeenSet() const { return m_nextDeparturesHasBeenSet; }
258 template <typename NextDeparturesT = Aws::Vector<RouteTransitNextDeparture>>
259 void SetNextDepartures(NextDeparturesT&& value) {
260 m_nextDeparturesHasBeenSet = true;
261 m_nextDepartures = std::forward<NextDeparturesT>(value);
262 }
263 template <typename NextDeparturesT = Aws::Vector<RouteTransitNextDeparture>>
264 RouteTransitLegDetails& WithNextDepartures(NextDeparturesT&& value) {
265 SetNextDepartures(std::forward<NextDeparturesT>(value));
266 return *this;
267 }
268 template <typename NextDeparturesT = RouteTransitNextDeparture>
269 RouteTransitLegDetails& AddNextDepartures(NextDeparturesT&& value) {
270 m_nextDeparturesHasBeenSet = true;
271 m_nextDepartures.emplace_back(std::forward<NextDeparturesT>(value));
272 return *this;
273 }
275
277
281 inline const Aws::Vector<RouteTransitNotice>& GetNotices() const { return m_notices; }
282 inline bool NoticesHasBeenSet() const { return m_noticesHasBeenSet; }
283 template <typename NoticesT = Aws::Vector<RouteTransitNotice>>
284 void SetNotices(NoticesT&& value) {
285 m_noticesHasBeenSet = true;
286 m_notices = std::forward<NoticesT>(value);
287 }
288 template <typename NoticesT = Aws::Vector<RouteTransitNotice>>
290 SetNotices(std::forward<NoticesT>(value));
291 return *this;
292 }
293 template <typename NoticesT = RouteTransitNotice>
295 m_noticesHasBeenSet = true;
296 m_notices.emplace_back(std::forward<NoticesT>(value));
297 return *this;
298 }
300
302
307 inline const Aws::Vector<RoutePassThroughWaypoint>& GetPassThroughWaypoints() const { return m_passThroughWaypoints; }
308 inline bool PassThroughWaypointsHasBeenSet() const { return m_passThroughWaypointsHasBeenSet; }
309 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
310 void SetPassThroughWaypoints(PassThroughWaypointsT&& value) {
311 m_passThroughWaypointsHasBeenSet = true;
312 m_passThroughWaypoints = std::forward<PassThroughWaypointsT>(value);
313 }
314 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
315 RouteTransitLegDetails& WithPassThroughWaypoints(PassThroughWaypointsT&& value) {
316 SetPassThroughWaypoints(std::forward<PassThroughWaypointsT>(value));
317 return *this;
318 }
319 template <typename PassThroughWaypointsT = RoutePassThroughWaypoint>
320 RouteTransitLegDetails& AddPassThroughWaypoints(PassThroughWaypointsT&& value) {
321 m_passThroughWaypointsHasBeenSet = true;
322 m_passThroughWaypoints.emplace_back(std::forward<PassThroughWaypointsT>(value));
323 return *this;
324 }
326
328
333 inline const Aws::Vector<RouteTransitSpan>& GetSpans() const { return m_spans; }
334 inline bool SpansHasBeenSet() const { return m_spansHasBeenSet; }
335 template <typename SpansT = Aws::Vector<RouteTransitSpan>>
336 void SetSpans(SpansT&& value) {
337 m_spansHasBeenSet = true;
338 m_spans = std::forward<SpansT>(value);
339 }
340 template <typename SpansT = Aws::Vector<RouteTransitSpan>>
342 SetSpans(std::forward<SpansT>(value));
343 return *this;
344 }
345 template <typename SpansT = RouteTransitSpan>
347 m_spansHasBeenSet = true;
348 m_spans.emplace_back(std::forward<SpansT>(value));
349 return *this;
350 }
352
354
357 inline const RouteTransitSummary& GetSummary() const { return m_summary; }
358 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
359 template <typename SummaryT = RouteTransitSummary>
360 void SetSummary(SummaryT&& value) {
361 m_summaryHasBeenSet = true;
362 m_summary = std::forward<SummaryT>(value);
363 }
364 template <typename SummaryT = RouteTransitSummary>
366 SetSummary(std::forward<SummaryT>(value));
367 return *this;
368 }
370
372
375 inline const RouteTransitTransportModeDetails& GetTransport() const { return m_transport; }
376 inline bool TransportHasBeenSet() const { return m_transportHasBeenSet; }
377 template <typename TransportT = RouteTransitTransportModeDetails>
378 void SetTransport(TransportT&& value) {
379 m_transportHasBeenSet = true;
380 m_transport = std::forward<TransportT>(value);
381 }
382 template <typename TransportT = RouteTransitTransportModeDetails>
384 SetTransport(std::forward<TransportT>(value));
385 return *this;
386 }
388
390
394 inline const Aws::Vector<RouteTransitTravelStep>& GetTravelSteps() const { return m_travelSteps; }
395 inline bool TravelStepsHasBeenSet() const { return m_travelStepsHasBeenSet; }
396 template <typename TravelStepsT = Aws::Vector<RouteTransitTravelStep>>
397 void SetTravelSteps(TravelStepsT&& value) {
398 m_travelStepsHasBeenSet = true;
399 m_travelSteps = std::forward<TravelStepsT>(value);
400 }
401 template <typename TravelStepsT = Aws::Vector<RouteTransitTravelStep>>
403 SetTravelSteps(std::forward<TravelStepsT>(value));
404 return *this;
405 }
406 template <typename TravelStepsT = RouteTransitTravelStep>
407 RouteTransitLegDetails& AddTravelSteps(TravelStepsT&& value) {
408 m_travelStepsHasBeenSet = true;
409 m_travelSteps.emplace_back(std::forward<TravelStepsT>(value));
410 return *this;
411 }
413 private:
415
416 RouteTransitAgency m_agency;
417
418 RouteTransitArrival m_arrival;
419
420 Aws::Vector<RouteAttribution> m_attributions;
421
423
424 Aws::Vector<RouteWebLink> m_bookingWebLinks;
425
426 RouteTransitDeparture m_departure;
427
429
431
433
435
436 Aws::Vector<RoutePassThroughWaypoint> m_passThroughWaypoints;
437
439
440 RouteTransitSummary m_summary;
441
443
445 bool m_afterTravelStepsHasBeenSet = false;
446 bool m_agencyHasBeenSet = false;
447 bool m_arrivalHasBeenSet = false;
448 bool m_attributionsHasBeenSet = false;
449 bool m_beforeTravelStepsHasBeenSet = false;
450 bool m_bookingWebLinksHasBeenSet = false;
451 bool m_departureHasBeenSet = false;
452 bool m_incidentsHasBeenSet = false;
453 bool m_intermediateStopsHasBeenSet = false;
454 bool m_nextDeparturesHasBeenSet = false;
455 bool m_noticesHasBeenSet = false;
456 bool m_passThroughWaypointsHasBeenSet = false;
457 bool m_spansHasBeenSet = false;
458 bool m_summaryHasBeenSet = false;
459 bool m_transportHasBeenSet = false;
460 bool m_travelStepsHasBeenSet = false;
461};
462
463} // namespace Model
464} // namespace GeoRoutes
465} // namespace Aws
const Aws::Vector< RouteTransitSpan > & GetSpans() const
RouteTransitLegDetails & WithBookingWebLinks(BookingWebLinksT &&value)
const Aws::Vector< RouteTransitIncident > & GetIncidents() const
RouteTransitLegDetails & AddNextDepartures(NextDeparturesT &&value)
const Aws::Vector< RouteTransitAfterTravelStep > & GetAfterTravelSteps() const
RouteTransitLegDetails & WithIncidents(IncidentsT &&value)
RouteTransitLegDetails & AddTravelSteps(TravelStepsT &&value)
RouteTransitLegDetails & WithBeforeTravelSteps(BeforeTravelStepsT &&value)
RouteTransitLegDetails & AddAttributions(AttributionsT &&value)
const RouteTransitSummary & GetSummary() const
AWS_GEOROUTES_API RouteTransitLegDetails(Aws::Utils::Json::JsonView jsonValue)
RouteTransitLegDetails & AddSpans(SpansT &&value)
RouteTransitLegDetails & WithDeparture(DepartureT &&value)
RouteTransitLegDetails & WithNotices(NoticesT &&value)
RouteTransitLegDetails & WithSummary(SummaryT &&value)
const Aws::Vector< RoutePassThroughWaypoint > & GetPassThroughWaypoints() const
RouteTransitLegDetails & WithTravelSteps(TravelStepsT &&value)
RouteTransitLegDetails & AddBeforeTravelSteps(BeforeTravelStepsT &&value)
RouteTransitLegDetails & WithNextDepartures(NextDeparturesT &&value)
RouteTransitLegDetails & WithSpans(SpansT &&value)
const RouteTransitDeparture & GetDeparture() const
RouteTransitLegDetails & AddAfterTravelSteps(AfterTravelStepsT &&value)
RouteTransitLegDetails & WithAgency(AgencyT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteTransitLegDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< RouteAttribution > & GetAttributions() const
const Aws::Vector< RouteTransitBeforeTravelStep > & GetBeforeTravelSteps() const
RouteTransitLegDetails & WithPassThroughWaypoints(PassThroughWaypointsT &&value)
const Aws::Vector< RouteWebLink > & GetBookingWebLinks() const
RouteTransitLegDetails & AddPassThroughWaypoints(PassThroughWaypointsT &&value)
RouteTransitLegDetails & AddNotices(NoticesT &&value)
void SetAfterTravelSteps(AfterTravelStepsT &&value)
const Aws::Vector< RouteTransitNextDeparture > & GetNextDepartures() const
RouteTransitLegDetails & WithAfterTravelSteps(AfterTravelStepsT &&value)
RouteTransitLegDetails & WithArrival(ArrivalT &&value)
AWS_GEOROUTES_API RouteTransitLegDetails()=default
const Aws::Vector< RouteTransitNotice > & GetNotices() const
const RouteTransitTransportModeDetails & GetTransport() const
const RouteTransitArrival & GetArrival() const
RouteTransitLegDetails & WithIntermediateStops(IntermediateStopsT &&value)
RouteTransitLegDetails & AddIncidents(IncidentsT &&value)
RouteTransitLegDetails & WithTransport(TransportT &&value)
RouteTransitLegDetails & AddBookingWebLinks(BookingWebLinksT &&value)
void SetIntermediateStops(IntermediateStopsT &&value)
const Aws::Vector< RouteTransitTravelStep > & GetTravelSteps() const
void SetPassThroughWaypoints(PassThroughWaypointsT &&value)
void SetBeforeTravelSteps(BeforeTravelStepsT &&value)
RouteTransitLegDetails & AddIntermediateStops(IntermediateStopsT &&value)
RouteTransitLegDetails & WithAttributions(AttributionsT &&value)
const Aws::Vector< RouteTransitIntermediateStop > & GetIntermediateStops() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue