AWS SDK for C++

AWS SDK for C++ Version 1.11.782

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/RoutePedestrianArrival.h>
11#include <aws/geo-routes/model/RoutePedestrianDeparture.h>
12#include <aws/geo-routes/model/RoutePedestrianNotice.h>
13#include <aws/geo-routes/model/RoutePedestrianSpan.h>
14#include <aws/geo-routes/model/RoutePedestrianSummary.h>
15#include <aws/geo-routes/model/RoutePedestrianTravelStep.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GeoRoutes {
27namespace Model {
28
35 public:
36 AWS_GEOROUTES_API RoutePedestrianLegDetails() = default;
39 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const RoutePedestrianArrival& GetArrival() const { return m_arrival; }
46 inline bool ArrivalHasBeenSet() const { return m_arrivalHasBeenSet; }
47 template <typename ArrivalT = RoutePedestrianArrival>
48 void SetArrival(ArrivalT&& value) {
49 m_arrivalHasBeenSet = true;
50 m_arrival = std::forward<ArrivalT>(value);
51 }
52 template <typename ArrivalT = RoutePedestrianArrival>
54 SetArrival(std::forward<ArrivalT>(value));
55 return *this;
56 }
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) {
67 m_departureHasBeenSet = true;
68 m_departure = std::forward<DepartureT>(value);
69 }
70 template <typename DepartureT = RoutePedestrianDeparture>
72 SetDeparture(std::forward<DepartureT>(value));
73 return *this;
74 }
76
78
85 inline const Aws::Vector<RoutePedestrianNotice>& GetNotices() const { return m_notices; }
86 inline bool NoticesHasBeenSet() const { return m_noticesHasBeenSet; }
87 template <typename NoticesT = Aws::Vector<RoutePedestrianNotice>>
88 void SetNotices(NoticesT&& value) {
89 m_noticesHasBeenSet = true;
90 m_notices = std::forward<NoticesT>(value);
91 }
92 template <typename NoticesT = Aws::Vector<RoutePedestrianNotice>>
94 SetNotices(std::forward<NoticesT>(value));
95 return *this;
96 }
97 template <typename NoticesT = RoutePedestrianNotice>
99 m_noticesHasBeenSet = true;
100 m_notices.emplace_back(std::forward<NoticesT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::Vector<RoutePassThroughWaypoint>& GetPassThroughWaypoints() const { return m_passThroughWaypoints; }
111 inline bool PassThroughWaypointsHasBeenSet() const { return m_passThroughWaypointsHasBeenSet; }
112 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
113 void SetPassThroughWaypoints(PassThroughWaypointsT&& value) {
114 m_passThroughWaypointsHasBeenSet = true;
115 m_passThroughWaypoints = std::forward<PassThroughWaypointsT>(value);
116 }
117 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
118 RoutePedestrianLegDetails& WithPassThroughWaypoints(PassThroughWaypointsT&& value) {
119 SetPassThroughWaypoints(std::forward<PassThroughWaypointsT>(value));
120 return *this;
121 }
122 template <typename PassThroughWaypointsT = RoutePassThroughWaypoint>
123 RoutePedestrianLegDetails& AddPassThroughWaypoints(PassThroughWaypointsT&& value) {
124 m_passThroughWaypointsHasBeenSet = true;
125 m_passThroughWaypoints.emplace_back(std::forward<PassThroughWaypointsT>(value));
126 return *this;
127 }
129
131
138 inline const Aws::Vector<RoutePedestrianSpan>& GetSpans() const { return m_spans; }
139 inline bool SpansHasBeenSet() const { return m_spansHasBeenSet; }
140 template <typename SpansT = Aws::Vector<RoutePedestrianSpan>>
141 void SetSpans(SpansT&& value) {
142 m_spansHasBeenSet = true;
143 m_spans = std::forward<SpansT>(value);
144 }
145 template <typename SpansT = Aws::Vector<RoutePedestrianSpan>>
147 SetSpans(std::forward<SpansT>(value));
148 return *this;
149 }
150 template <typename SpansT = RoutePedestrianSpan>
152 m_spansHasBeenSet = true;
153 m_spans.emplace_back(std::forward<SpansT>(value));
154 return *this;
155 }
157
159
162 inline const RoutePedestrianSummary& GetSummary() const { return m_summary; }
163 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
164 template <typename SummaryT = RoutePedestrianSummary>
165 void SetSummary(SummaryT&& value) {
166 m_summaryHasBeenSet = true;
167 m_summary = std::forward<SummaryT>(value);
168 }
169 template <typename SummaryT = RoutePedestrianSummary>
171 SetSummary(std::forward<SummaryT>(value));
172 return *this;
173 }
175
177
181 inline const Aws::Vector<RoutePedestrianTravelStep>& GetTravelSteps() const { return m_travelSteps; }
182 inline bool TravelStepsHasBeenSet() const { return m_travelStepsHasBeenSet; }
183 template <typename TravelStepsT = Aws::Vector<RoutePedestrianTravelStep>>
184 void SetTravelSteps(TravelStepsT&& value) {
185 m_travelStepsHasBeenSet = true;
186 m_travelSteps = std::forward<TravelStepsT>(value);
187 }
188 template <typename TravelStepsT = Aws::Vector<RoutePedestrianTravelStep>>
190 SetTravelSteps(std::forward<TravelStepsT>(value));
191 return *this;
192 }
193 template <typename TravelStepsT = RoutePedestrianTravelStep>
195 m_travelStepsHasBeenSet = true;
196 m_travelSteps.emplace_back(std::forward<TravelStepsT>(value));
197 return *this;
198 }
200 private:
201 RoutePedestrianArrival m_arrival;
202
203 RoutePedestrianDeparture m_departure;
204
206
207 Aws::Vector<RoutePassThroughWaypoint> m_passThroughWaypoints;
208
210
211 RoutePedestrianSummary m_summary;
212
214 bool m_arrivalHasBeenSet = false;
215 bool m_departureHasBeenSet = false;
216 bool m_noticesHasBeenSet = false;
217 bool m_passThroughWaypointsHasBeenSet = false;
218 bool m_spansHasBeenSet = false;
219 bool m_summaryHasBeenSet = false;
220 bool m_travelStepsHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace GeoRoutes
225} // 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