AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
RouteFerryLegDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
10#include <aws/geo-routes/model/RouteFerryAfterTravelStep.h>
11#include <aws/geo-routes/model/RouteFerryArrival.h>
12#include <aws/geo-routes/model/RouteFerryBeforeTravelStep.h>
13#include <aws/geo-routes/model/RouteFerryDeparture.h>
14#include <aws/geo-routes/model/RouteFerryNotice.h>
15#include <aws/geo-routes/model/RouteFerrySpan.h>
16#include <aws/geo-routes/model/RouteFerrySummary.h>
17#include <aws/geo-routes/model/RouteFerryTravelStep.h>
18#include <aws/geo-routes/model/RoutePassThroughWaypoint.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace GeoRoutes {
30namespace Model {
31
40 public:
41 AWS_GEOROUTES_API RouteFerryLegDetails() = default;
44 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
51 inline const Aws::Vector<RouteFerryAfterTravelStep>& GetAfterTravelSteps() const { return m_afterTravelSteps; }
52 inline bool AfterTravelStepsHasBeenSet() const { return m_afterTravelStepsHasBeenSet; }
53 template <typename AfterTravelStepsT = Aws::Vector<RouteFerryAfterTravelStep>>
54 void SetAfterTravelSteps(AfterTravelStepsT&& value) {
55 m_afterTravelStepsHasBeenSet = true;
56 m_afterTravelSteps = std::forward<AfterTravelStepsT>(value);
57 }
58 template <typename AfterTravelStepsT = Aws::Vector<RouteFerryAfterTravelStep>>
59 RouteFerryLegDetails& WithAfterTravelSteps(AfterTravelStepsT&& value) {
60 SetAfterTravelSteps(std::forward<AfterTravelStepsT>(value));
61 return *this;
62 }
63 template <typename AfterTravelStepsT = RouteFerryAfterTravelStep>
64 RouteFerryLegDetails& AddAfterTravelSteps(AfterTravelStepsT&& value) {
65 m_afterTravelStepsHasBeenSet = true;
66 m_afterTravelSteps.emplace_back(std::forward<AfterTravelStepsT>(value));
67 return *this;
68 }
70
72
75 inline const RouteFerryArrival& GetArrival() const { return m_arrival; }
76 inline bool ArrivalHasBeenSet() const { return m_arrivalHasBeenSet; }
77 template <typename ArrivalT = RouteFerryArrival>
78 void SetArrival(ArrivalT&& value) {
79 m_arrivalHasBeenSet = true;
80 m_arrival = std::forward<ArrivalT>(value);
81 }
82 template <typename ArrivalT = RouteFerryArrival>
83 RouteFerryLegDetails& WithArrival(ArrivalT&& value) {
84 SetArrival(std::forward<ArrivalT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::Vector<RouteFerryBeforeTravelStep>& GetBeforeTravelSteps() const { return m_beforeTravelSteps; }
95 inline bool BeforeTravelStepsHasBeenSet() const { return m_beforeTravelStepsHasBeenSet; }
96 template <typename BeforeTravelStepsT = Aws::Vector<RouteFerryBeforeTravelStep>>
97 void SetBeforeTravelSteps(BeforeTravelStepsT&& value) {
98 m_beforeTravelStepsHasBeenSet = true;
99 m_beforeTravelSteps = std::forward<BeforeTravelStepsT>(value);
100 }
101 template <typename BeforeTravelStepsT = Aws::Vector<RouteFerryBeforeTravelStep>>
102 RouteFerryLegDetails& WithBeforeTravelSteps(BeforeTravelStepsT&& value) {
103 SetBeforeTravelSteps(std::forward<BeforeTravelStepsT>(value));
104 return *this;
105 }
106 template <typename BeforeTravelStepsT = RouteFerryBeforeTravelStep>
107 RouteFerryLegDetails& AddBeforeTravelSteps(BeforeTravelStepsT&& value) {
108 m_beforeTravelStepsHasBeenSet = true;
109 m_beforeTravelSteps.emplace_back(std::forward<BeforeTravelStepsT>(value));
110 return *this;
111 }
113
115
118 inline const RouteFerryDeparture& GetDeparture() const { return m_departure; }
119 inline bool DepartureHasBeenSet() const { return m_departureHasBeenSet; }
120 template <typename DepartureT = RouteFerryDeparture>
121 void SetDeparture(DepartureT&& value) {
122 m_departureHasBeenSet = true;
123 m_departure = std::forward<DepartureT>(value);
124 }
125 template <typename DepartureT = RouteFerryDeparture>
126 RouteFerryLegDetails& WithDeparture(DepartureT&& value) {
127 SetDeparture(std::forward<DepartureT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::Vector<RouteFerryNotice>& GetNotices() const { return m_notices; }
138 inline bool NoticesHasBeenSet() const { return m_noticesHasBeenSet; }
139 template <typename NoticesT = Aws::Vector<RouteFerryNotice>>
140 void SetNotices(NoticesT&& value) {
141 m_noticesHasBeenSet = true;
142 m_notices = std::forward<NoticesT>(value);
143 }
144 template <typename NoticesT = Aws::Vector<RouteFerryNotice>>
146 SetNotices(std::forward<NoticesT>(value));
147 return *this;
148 }
149 template <typename NoticesT = RouteFerryNotice>
150 RouteFerryLegDetails& AddNotices(NoticesT&& value) {
151 m_noticesHasBeenSet = true;
152 m_notices.emplace_back(std::forward<NoticesT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::Vector<RoutePassThroughWaypoint>& GetPassThroughWaypoints() const { return m_passThroughWaypoints; }
163 inline bool PassThroughWaypointsHasBeenSet() const { return m_passThroughWaypointsHasBeenSet; }
164 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
165 void SetPassThroughWaypoints(PassThroughWaypointsT&& value) {
166 m_passThroughWaypointsHasBeenSet = true;
167 m_passThroughWaypoints = std::forward<PassThroughWaypointsT>(value);
168 }
169 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
170 RouteFerryLegDetails& WithPassThroughWaypoints(PassThroughWaypointsT&& value) {
171 SetPassThroughWaypoints(std::forward<PassThroughWaypointsT>(value));
172 return *this;
173 }
174 template <typename PassThroughWaypointsT = RoutePassThroughWaypoint>
175 RouteFerryLegDetails& AddPassThroughWaypoints(PassThroughWaypointsT&& value) {
176 m_passThroughWaypointsHasBeenSet = true;
177 m_passThroughWaypoints.emplace_back(std::forward<PassThroughWaypointsT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetRouteName() const { return m_routeName; }
187 inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; }
188 template <typename RouteNameT = Aws::String>
189 void SetRouteName(RouteNameT&& value) {
190 m_routeNameHasBeenSet = true;
191 m_routeName = std::forward<RouteNameT>(value);
192 }
193 template <typename RouteNameT = Aws::String>
194 RouteFerryLegDetails& WithRouteName(RouteNameT&& value) {
195 SetRouteName(std::forward<RouteNameT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Vector<RouteFerrySpan>& GetSpans() const { return m_spans; }
205 inline bool SpansHasBeenSet() const { return m_spansHasBeenSet; }
206 template <typename SpansT = Aws::Vector<RouteFerrySpan>>
207 void SetSpans(SpansT&& value) {
208 m_spansHasBeenSet = true;
209 m_spans = std::forward<SpansT>(value);
210 }
211 template <typename SpansT = Aws::Vector<RouteFerrySpan>>
213 SetSpans(std::forward<SpansT>(value));
214 return *this;
215 }
216 template <typename SpansT = RouteFerrySpan>
218 m_spansHasBeenSet = true;
219 m_spans.emplace_back(std::forward<SpansT>(value));
220 return *this;
221 }
223
225
228 inline const RouteFerrySummary& GetSummary() const { return m_summary; }
229 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
230 template <typename SummaryT = RouteFerrySummary>
231 void SetSummary(SummaryT&& value) {
232 m_summaryHasBeenSet = true;
233 m_summary = std::forward<SummaryT>(value);
234 }
235 template <typename SummaryT = RouteFerrySummary>
237 SetSummary(std::forward<SummaryT>(value));
238 return *this;
239 }
241
243
247 inline const Aws::Vector<RouteFerryTravelStep>& GetTravelSteps() const { return m_travelSteps; }
248 inline bool TravelStepsHasBeenSet() const { return m_travelStepsHasBeenSet; }
249 template <typename TravelStepsT = Aws::Vector<RouteFerryTravelStep>>
250 void SetTravelSteps(TravelStepsT&& value) {
251 m_travelStepsHasBeenSet = true;
252 m_travelSteps = std::forward<TravelStepsT>(value);
253 }
254 template <typename TravelStepsT = Aws::Vector<RouteFerryTravelStep>>
255 RouteFerryLegDetails& WithTravelSteps(TravelStepsT&& value) {
256 SetTravelSteps(std::forward<TravelStepsT>(value));
257 return *this;
258 }
259 template <typename TravelStepsT = RouteFerryTravelStep>
260 RouteFerryLegDetails& AddTravelSteps(TravelStepsT&& value) {
261 m_travelStepsHasBeenSet = true;
262 m_travelSteps.emplace_back(std::forward<TravelStepsT>(value));
263 return *this;
264 }
266 private:
268
269 RouteFerryArrival m_arrival;
270
271 Aws::Vector<RouteFerryBeforeTravelStep> m_beforeTravelSteps;
272
273 RouteFerryDeparture m_departure;
274
276
277 Aws::Vector<RoutePassThroughWaypoint> m_passThroughWaypoints;
278
279 Aws::String m_routeName;
280
282
283 RouteFerrySummary m_summary;
284
286 bool m_afterTravelStepsHasBeenSet = false;
287 bool m_arrivalHasBeenSet = false;
288 bool m_beforeTravelStepsHasBeenSet = false;
289 bool m_departureHasBeenSet = false;
290 bool m_noticesHasBeenSet = false;
291 bool m_passThroughWaypointsHasBeenSet = false;
292 bool m_routeNameHasBeenSet = false;
293 bool m_spansHasBeenSet = false;
294 bool m_summaryHasBeenSet = false;
295 bool m_travelStepsHasBeenSet = false;
296};
297
298} // namespace Model
299} // namespace GeoRoutes
300} // namespace Aws
const Aws::Vector< RouteFerrySpan > & GetSpans() const
RouteFerryLegDetails & AddPassThroughWaypoints(PassThroughWaypointsT &&value)
const RouteFerrySummary & GetSummary() const
void SetBeforeTravelSteps(BeforeTravelStepsT &&value)
RouteFerryLegDetails & WithBeforeTravelSteps(BeforeTravelStepsT &&value)
AWS_GEOROUTES_API RouteFerryLegDetails()=default
RouteFerryLegDetails & WithSummary(SummaryT &&value)
AWS_GEOROUTES_API RouteFerryLegDetails(Aws::Utils::Json::JsonView jsonValue)
RouteFerryLegDetails & AddBeforeTravelSteps(BeforeTravelStepsT &&value)
const RouteFerryDeparture & GetDeparture() const
const Aws::Vector< RouteFerryBeforeTravelStep > & GetBeforeTravelSteps() const
void SetAfterTravelSteps(AfterTravelStepsT &&value)
RouteFerryLegDetails & AddSpans(SpansT &&value)
RouteFerryLegDetails & WithArrival(ArrivalT &&value)
const Aws::Vector< RouteFerryNotice > & GetNotices() const
RouteFerryLegDetails & AddNotices(NoticesT &&value)
RouteFerryLegDetails & AddTravelSteps(TravelStepsT &&value)
RouteFerryLegDetails & WithRouteName(RouteNameT &&value)
RouteFerryLegDetails & AddAfterTravelSteps(AfterTravelStepsT &&value)
RouteFerryLegDetails & WithAfterTravelSteps(AfterTravelStepsT &&value)
const Aws::Vector< RouteFerryAfterTravelStep > & GetAfterTravelSteps() const
RouteFerryLegDetails & WithTravelSteps(TravelStepsT &&value)
const RouteFerryArrival & GetArrival() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteFerryLegDetails & WithNotices(NoticesT &&value)
RouteFerryLegDetails & WithDeparture(DepartureT &&value)
void SetPassThroughWaypoints(PassThroughWaypointsT &&value)
RouteFerryLegDetails & WithPassThroughWaypoints(PassThroughWaypointsT &&value)
RouteFerryLegDetails & WithSpans(SpansT &&value)
const Aws::Vector< RouteFerryTravelStep > & GetTravelSteps() const
const Aws::Vector< RoutePassThroughWaypoint > & GetPassThroughWaypoints() const
AWS_GEOROUTES_API RouteFerryLegDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue