AWS SDK for C++

AWS SDK for C++ Version 1.11.767

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
39 public:
40 AWS_GEOROUTES_API RouteFerryLegDetails() = default;
43 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
50 inline const Aws::Vector<RouteFerryAfterTravelStep>& GetAfterTravelSteps() const { return m_afterTravelSteps; }
51 inline bool AfterTravelStepsHasBeenSet() const { return m_afterTravelStepsHasBeenSet; }
52 template <typename AfterTravelStepsT = Aws::Vector<RouteFerryAfterTravelStep>>
53 void SetAfterTravelSteps(AfterTravelStepsT&& value) {
54 m_afterTravelStepsHasBeenSet = true;
55 m_afterTravelSteps = std::forward<AfterTravelStepsT>(value);
56 }
57 template <typename AfterTravelStepsT = Aws::Vector<RouteFerryAfterTravelStep>>
58 RouteFerryLegDetails& WithAfterTravelSteps(AfterTravelStepsT&& value) {
59 SetAfterTravelSteps(std::forward<AfterTravelStepsT>(value));
60 return *this;
61 }
62 template <typename AfterTravelStepsT = RouteFerryAfterTravelStep>
63 RouteFerryLegDetails& AddAfterTravelSteps(AfterTravelStepsT&& value) {
64 m_afterTravelStepsHasBeenSet = true;
65 m_afterTravelSteps.emplace_back(std::forward<AfterTravelStepsT>(value));
66 return *this;
67 }
69
71
74 inline const RouteFerryArrival& GetArrival() const { return m_arrival; }
75 inline bool ArrivalHasBeenSet() const { return m_arrivalHasBeenSet; }
76 template <typename ArrivalT = RouteFerryArrival>
77 void SetArrival(ArrivalT&& value) {
78 m_arrivalHasBeenSet = true;
79 m_arrival = std::forward<ArrivalT>(value);
80 }
81 template <typename ArrivalT = RouteFerryArrival>
82 RouteFerryLegDetails& WithArrival(ArrivalT&& value) {
83 SetArrival(std::forward<ArrivalT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Vector<RouteFerryBeforeTravelStep>& GetBeforeTravelSteps() const { return m_beforeTravelSteps; }
94 inline bool BeforeTravelStepsHasBeenSet() const { return m_beforeTravelStepsHasBeenSet; }
95 template <typename BeforeTravelStepsT = Aws::Vector<RouteFerryBeforeTravelStep>>
96 void SetBeforeTravelSteps(BeforeTravelStepsT&& value) {
97 m_beforeTravelStepsHasBeenSet = true;
98 m_beforeTravelSteps = std::forward<BeforeTravelStepsT>(value);
99 }
100 template <typename BeforeTravelStepsT = Aws::Vector<RouteFerryBeforeTravelStep>>
101 RouteFerryLegDetails& WithBeforeTravelSteps(BeforeTravelStepsT&& value) {
102 SetBeforeTravelSteps(std::forward<BeforeTravelStepsT>(value));
103 return *this;
104 }
105 template <typename BeforeTravelStepsT = RouteFerryBeforeTravelStep>
106 RouteFerryLegDetails& AddBeforeTravelSteps(BeforeTravelStepsT&& value) {
107 m_beforeTravelStepsHasBeenSet = true;
108 m_beforeTravelSteps.emplace_back(std::forward<BeforeTravelStepsT>(value));
109 return *this;
110 }
112
114
117 inline const RouteFerryDeparture& GetDeparture() const { return m_departure; }
118 inline bool DepartureHasBeenSet() const { return m_departureHasBeenSet; }
119 template <typename DepartureT = RouteFerryDeparture>
120 void SetDeparture(DepartureT&& value) {
121 m_departureHasBeenSet = true;
122 m_departure = std::forward<DepartureT>(value);
123 }
124 template <typename DepartureT = RouteFerryDeparture>
125 RouteFerryLegDetails& WithDeparture(DepartureT&& value) {
126 SetDeparture(std::forward<DepartureT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<RouteFerryNotice>& GetNotices() const { return m_notices; }
137 inline bool NoticesHasBeenSet() const { return m_noticesHasBeenSet; }
138 template <typename NoticesT = Aws::Vector<RouteFerryNotice>>
139 void SetNotices(NoticesT&& value) {
140 m_noticesHasBeenSet = true;
141 m_notices = std::forward<NoticesT>(value);
142 }
143 template <typename NoticesT = Aws::Vector<RouteFerryNotice>>
145 SetNotices(std::forward<NoticesT>(value));
146 return *this;
147 }
148 template <typename NoticesT = RouteFerryNotice>
149 RouteFerryLegDetails& AddNotices(NoticesT&& value) {
150 m_noticesHasBeenSet = true;
151 m_notices.emplace_back(std::forward<NoticesT>(value));
152 return *this;
153 }
155
157
161 inline const Aws::Vector<RoutePassThroughWaypoint>& GetPassThroughWaypoints() const { return m_passThroughWaypoints; }
162 inline bool PassThroughWaypointsHasBeenSet() const { return m_passThroughWaypointsHasBeenSet; }
163 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
164 void SetPassThroughWaypoints(PassThroughWaypointsT&& value) {
165 m_passThroughWaypointsHasBeenSet = true;
166 m_passThroughWaypoints = std::forward<PassThroughWaypointsT>(value);
167 }
168 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
169 RouteFerryLegDetails& WithPassThroughWaypoints(PassThroughWaypointsT&& value) {
170 SetPassThroughWaypoints(std::forward<PassThroughWaypointsT>(value));
171 return *this;
172 }
173 template <typename PassThroughWaypointsT = RoutePassThroughWaypoint>
174 RouteFerryLegDetails& AddPassThroughWaypoints(PassThroughWaypointsT&& value) {
175 m_passThroughWaypointsHasBeenSet = true;
176 m_passThroughWaypoints.emplace_back(std::forward<PassThroughWaypointsT>(value));
177 return *this;
178 }
180
182
185 inline const Aws::String& GetRouteName() const { return m_routeName; }
186 inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; }
187 template <typename RouteNameT = Aws::String>
188 void SetRouteName(RouteNameT&& value) {
189 m_routeNameHasBeenSet = true;
190 m_routeName = std::forward<RouteNameT>(value);
191 }
192 template <typename RouteNameT = Aws::String>
193 RouteFerryLegDetails& WithRouteName(RouteNameT&& value) {
194 SetRouteName(std::forward<RouteNameT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::Vector<RouteFerrySpan>& GetSpans() const { return m_spans; }
204 inline bool SpansHasBeenSet() const { return m_spansHasBeenSet; }
205 template <typename SpansT = Aws::Vector<RouteFerrySpan>>
206 void SetSpans(SpansT&& value) {
207 m_spansHasBeenSet = true;
208 m_spans = std::forward<SpansT>(value);
209 }
210 template <typename SpansT = Aws::Vector<RouteFerrySpan>>
212 SetSpans(std::forward<SpansT>(value));
213 return *this;
214 }
215 template <typename SpansT = RouteFerrySpan>
217 m_spansHasBeenSet = true;
218 m_spans.emplace_back(std::forward<SpansT>(value));
219 return *this;
220 }
222
224
227 inline const RouteFerrySummary& GetSummary() const { return m_summary; }
228 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
229 template <typename SummaryT = RouteFerrySummary>
230 void SetSummary(SummaryT&& value) {
231 m_summaryHasBeenSet = true;
232 m_summary = std::forward<SummaryT>(value);
233 }
234 template <typename SummaryT = RouteFerrySummary>
236 SetSummary(std::forward<SummaryT>(value));
237 return *this;
238 }
240
242
246 inline const Aws::Vector<RouteFerryTravelStep>& GetTravelSteps() const { return m_travelSteps; }
247 inline bool TravelStepsHasBeenSet() const { return m_travelStepsHasBeenSet; }
248 template <typename TravelStepsT = Aws::Vector<RouteFerryTravelStep>>
249 void SetTravelSteps(TravelStepsT&& value) {
250 m_travelStepsHasBeenSet = true;
251 m_travelSteps = std::forward<TravelStepsT>(value);
252 }
253 template <typename TravelStepsT = Aws::Vector<RouteFerryTravelStep>>
254 RouteFerryLegDetails& WithTravelSteps(TravelStepsT&& value) {
255 SetTravelSteps(std::forward<TravelStepsT>(value));
256 return *this;
257 }
258 template <typename TravelStepsT = RouteFerryTravelStep>
259 RouteFerryLegDetails& AddTravelSteps(TravelStepsT&& value) {
260 m_travelStepsHasBeenSet = true;
261 m_travelSteps.emplace_back(std::forward<TravelStepsT>(value));
262 return *this;
263 }
265 private:
267
268 RouteFerryArrival m_arrival;
269
270 Aws::Vector<RouteFerryBeforeTravelStep> m_beforeTravelSteps;
271
272 RouteFerryDeparture m_departure;
273
275
276 Aws::Vector<RoutePassThroughWaypoint> m_passThroughWaypoints;
277
278 Aws::String m_routeName;
279
281
282 RouteFerrySummary m_summary;
283
285 bool m_afterTravelStepsHasBeenSet = false;
286 bool m_arrivalHasBeenSet = false;
287 bool m_beforeTravelStepsHasBeenSet = false;
288 bool m_departureHasBeenSet = false;
289 bool m_noticesHasBeenSet = false;
290 bool m_passThroughWaypointsHasBeenSet = false;
291 bool m_routeNameHasBeenSet = false;
292 bool m_spansHasBeenSet = false;
293 bool m_summaryHasBeenSet = false;
294 bool m_travelStepsHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace GeoRoutes
299} // 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