AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RoutePedestrianLegDetails.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RoutePedestrianArrival.h>
9#include <aws/geo-routes/model/RoutePedestrianDeparture.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/geo-routes/model/RoutePedestrianSummary.h>
12#include <aws/geo-routes/model/RoutePedestrianNotice.h>
13#include <aws/geo-routes/model/RoutePassThroughWaypoint.h>
14#include <aws/geo-routes/model/RoutePedestrianSpan.h>
15#include <aws/geo-routes/model/RoutePedestrianTravelStep.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace GeoRoutes
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_GEOROUTES_API RoutePedestrianLegDetails() = default;
44 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const RoutePedestrianArrival& GetArrival() const { return m_arrival; }
52 inline bool ArrivalHasBeenSet() const { return m_arrivalHasBeenSet; }
53 template<typename ArrivalT = RoutePedestrianArrival>
54 void SetArrival(ArrivalT&& value) { m_arrivalHasBeenSet = true; m_arrival = std::forward<ArrivalT>(value); }
55 template<typename ArrivalT = RoutePedestrianArrival>
56 RoutePedestrianLegDetails& WithArrival(ArrivalT&& value) { SetArrival(std::forward<ArrivalT>(value)); return *this;}
58
60
63 inline const RoutePedestrianDeparture& GetDeparture() const { return m_departure; }
64 inline bool DepartureHasBeenSet() const { return m_departureHasBeenSet; }
65 template<typename DepartureT = RoutePedestrianDeparture>
66 void SetDeparture(DepartureT&& value) { m_departureHasBeenSet = true; m_departure = std::forward<DepartureT>(value); }
67 template<typename DepartureT = RoutePedestrianDeparture>
68 RoutePedestrianLegDetails& WithDeparture(DepartureT&& value) { SetDeparture(std::forward<DepartureT>(value)); return *this;}
70
72
76 inline const Aws::Vector<RoutePedestrianNotice>& GetNotices() const { return m_notices; }
77 inline bool NoticesHasBeenSet() const { return m_noticesHasBeenSet; }
78 template<typename NoticesT = Aws::Vector<RoutePedestrianNotice>>
79 void SetNotices(NoticesT&& value) { m_noticesHasBeenSet = true; m_notices = std::forward<NoticesT>(value); }
80 template<typename NoticesT = Aws::Vector<RoutePedestrianNotice>>
81 RoutePedestrianLegDetails& WithNotices(NoticesT&& value) { SetNotices(std::forward<NoticesT>(value)); return *this;}
82 template<typename NoticesT = RoutePedestrianNotice>
83 RoutePedestrianLegDetails& AddNotices(NoticesT&& value) { m_noticesHasBeenSet = true; m_notices.emplace_back(std::forward<NoticesT>(value)); return *this; }
85
87
91 inline const Aws::Vector<RoutePassThroughWaypoint>& GetPassThroughWaypoints() const { return m_passThroughWaypoints; }
92 inline bool PassThroughWaypointsHasBeenSet() const { return m_passThroughWaypointsHasBeenSet; }
93 template<typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
94 void SetPassThroughWaypoints(PassThroughWaypointsT&& value) { m_passThroughWaypointsHasBeenSet = true; m_passThroughWaypoints = std::forward<PassThroughWaypointsT>(value); }
95 template<typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
96 RoutePedestrianLegDetails& WithPassThroughWaypoints(PassThroughWaypointsT&& value) { SetPassThroughWaypoints(std::forward<PassThroughWaypointsT>(value)); return *this;}
97 template<typename PassThroughWaypointsT = RoutePassThroughWaypoint>
98 RoutePedestrianLegDetails& AddPassThroughWaypoints(PassThroughWaypointsT&& value) { m_passThroughWaypointsHasBeenSet = true; m_passThroughWaypoints.emplace_back(std::forward<PassThroughWaypointsT>(value)); return *this; }
100
102
105 inline const Aws::Vector<RoutePedestrianSpan>& GetSpans() const { return m_spans; }
106 inline bool SpansHasBeenSet() const { return m_spansHasBeenSet; }
107 template<typename SpansT = Aws::Vector<RoutePedestrianSpan>>
108 void SetSpans(SpansT&& value) { m_spansHasBeenSet = true; m_spans = std::forward<SpansT>(value); }
109 template<typename SpansT = Aws::Vector<RoutePedestrianSpan>>
110 RoutePedestrianLegDetails& WithSpans(SpansT&& value) { SetSpans(std::forward<SpansT>(value)); return *this;}
111 template<typename SpansT = RoutePedestrianSpan>
112 RoutePedestrianLegDetails& AddSpans(SpansT&& value) { m_spansHasBeenSet = true; m_spans.emplace_back(std::forward<SpansT>(value)); return *this; }
114
116
119 inline const RoutePedestrianSummary& GetSummary() const { return m_summary; }
120 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
121 template<typename SummaryT = RoutePedestrianSummary>
122 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
123 template<typename SummaryT = RoutePedestrianSummary>
124 RoutePedestrianLegDetails& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
126
128
132 inline const Aws::Vector<RoutePedestrianTravelStep>& GetTravelSteps() const { return m_travelSteps; }
133 inline bool TravelStepsHasBeenSet() const { return m_travelStepsHasBeenSet; }
134 template<typename TravelStepsT = Aws::Vector<RoutePedestrianTravelStep>>
135 void SetTravelSteps(TravelStepsT&& value) { m_travelStepsHasBeenSet = true; m_travelSteps = std::forward<TravelStepsT>(value); }
136 template<typename TravelStepsT = Aws::Vector<RoutePedestrianTravelStep>>
137 RoutePedestrianLegDetails& WithTravelSteps(TravelStepsT&& value) { SetTravelSteps(std::forward<TravelStepsT>(value)); return *this;}
138 template<typename TravelStepsT = RoutePedestrianTravelStep>
139 RoutePedestrianLegDetails& AddTravelSteps(TravelStepsT&& value) { m_travelStepsHasBeenSet = true; m_travelSteps.emplace_back(std::forward<TravelStepsT>(value)); return *this; }
141 private:
142
143 RoutePedestrianArrival m_arrival;
144 bool m_arrivalHasBeenSet = false;
145
146 RoutePedestrianDeparture m_departure;
147 bool m_departureHasBeenSet = false;
148
150 bool m_noticesHasBeenSet = false;
151
152 Aws::Vector<RoutePassThroughWaypoint> m_passThroughWaypoints;
153 bool m_passThroughWaypointsHasBeenSet = false;
154
156 bool m_spansHasBeenSet = false;
157
158 RoutePedestrianSummary m_summary;
159 bool m_summaryHasBeenSet = false;
160
162 bool m_travelStepsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace GeoRoutes
167} // 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)
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< RoutePedestrianSpan > & GetSpans() const
RoutePedestrianLegDetails & AddTravelSteps(TravelStepsT &&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