AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteFerryLegDetails.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/model/RouteFerryArrival.h>
10#include <aws/geo-routes/model/RouteFerryDeparture.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/geo-routes/model/RouteFerrySummary.h>
13#include <aws/geo-routes/model/RouteFerryAfterTravelStep.h>
14#include <aws/geo-routes/model/RouteFerryBeforeTravelStep.h>
15#include <aws/geo-routes/model/RouteFerryNotice.h>
16#include <aws/geo-routes/model/RoutePassThroughWaypoint.h>
17#include <aws/geo-routes/model/RouteFerrySpan.h>
18#include <aws/geo-routes/model/RouteFerryTravelStep.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace GeoRoutes
32{
33namespace Model
34{
35
43 {
44 public:
45 AWS_GEOROUTES_API RouteFerryLegDetails() = default;
48 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const Aws::Vector<RouteFerryAfterTravelStep>& GetAfterTravelSteps() const { return m_afterTravelSteps; }
57 inline bool AfterTravelStepsHasBeenSet() const { return m_afterTravelStepsHasBeenSet; }
58 template<typename AfterTravelStepsT = Aws::Vector<RouteFerryAfterTravelStep>>
59 void SetAfterTravelSteps(AfterTravelStepsT&& value) { m_afterTravelStepsHasBeenSet = true; m_afterTravelSteps = std::forward<AfterTravelStepsT>(value); }
60 template<typename AfterTravelStepsT = Aws::Vector<RouteFerryAfterTravelStep>>
61 RouteFerryLegDetails& WithAfterTravelSteps(AfterTravelStepsT&& value) { SetAfterTravelSteps(std::forward<AfterTravelStepsT>(value)); return *this;}
62 template<typename AfterTravelStepsT = RouteFerryAfterTravelStep>
63 RouteFerryLegDetails& AddAfterTravelSteps(AfterTravelStepsT&& value) { m_afterTravelStepsHasBeenSet = true; m_afterTravelSteps.emplace_back(std::forward<AfterTravelStepsT>(value)); return *this; }
65
67
70 inline const RouteFerryArrival& GetArrival() const { return m_arrival; }
71 inline bool ArrivalHasBeenSet() const { return m_arrivalHasBeenSet; }
72 template<typename ArrivalT = RouteFerryArrival>
73 void SetArrival(ArrivalT&& value) { m_arrivalHasBeenSet = true; m_arrival = std::forward<ArrivalT>(value); }
74 template<typename ArrivalT = RouteFerryArrival>
75 RouteFerryLegDetails& WithArrival(ArrivalT&& value) { SetArrival(std::forward<ArrivalT>(value)); return *this;}
77
79
83 inline const Aws::Vector<RouteFerryBeforeTravelStep>& GetBeforeTravelSteps() const { return m_beforeTravelSteps; }
84 inline bool BeforeTravelStepsHasBeenSet() const { return m_beforeTravelStepsHasBeenSet; }
85 template<typename BeforeTravelStepsT = Aws::Vector<RouteFerryBeforeTravelStep>>
86 void SetBeforeTravelSteps(BeforeTravelStepsT&& value) { m_beforeTravelStepsHasBeenSet = true; m_beforeTravelSteps = std::forward<BeforeTravelStepsT>(value); }
87 template<typename BeforeTravelStepsT = Aws::Vector<RouteFerryBeforeTravelStep>>
88 RouteFerryLegDetails& WithBeforeTravelSteps(BeforeTravelStepsT&& value) { SetBeforeTravelSteps(std::forward<BeforeTravelStepsT>(value)); return *this;}
89 template<typename BeforeTravelStepsT = RouteFerryBeforeTravelStep>
90 RouteFerryLegDetails& AddBeforeTravelSteps(BeforeTravelStepsT&& value) { m_beforeTravelStepsHasBeenSet = true; m_beforeTravelSteps.emplace_back(std::forward<BeforeTravelStepsT>(value)); return *this; }
92
94
97 inline const RouteFerryDeparture& GetDeparture() const { return m_departure; }
98 inline bool DepartureHasBeenSet() const { return m_departureHasBeenSet; }
99 template<typename DepartureT = RouteFerryDeparture>
100 void SetDeparture(DepartureT&& value) { m_departureHasBeenSet = true; m_departure = std::forward<DepartureT>(value); }
101 template<typename DepartureT = RouteFerryDeparture>
102 RouteFerryLegDetails& WithDeparture(DepartureT&& value) { SetDeparture(std::forward<DepartureT>(value)); return *this;}
104
106
110 inline const Aws::Vector<RouteFerryNotice>& GetNotices() const { return m_notices; }
111 inline bool NoticesHasBeenSet() const { return m_noticesHasBeenSet; }
112 template<typename NoticesT = Aws::Vector<RouteFerryNotice>>
113 void SetNotices(NoticesT&& value) { m_noticesHasBeenSet = true; m_notices = std::forward<NoticesT>(value); }
114 template<typename NoticesT = Aws::Vector<RouteFerryNotice>>
115 RouteFerryLegDetails& WithNotices(NoticesT&& value) { SetNotices(std::forward<NoticesT>(value)); return *this;}
116 template<typename NoticesT = RouteFerryNotice>
117 RouteFerryLegDetails& AddNotices(NoticesT&& value) { m_noticesHasBeenSet = true; m_notices.emplace_back(std::forward<NoticesT>(value)); return *this; }
119
121
125 inline const Aws::Vector<RoutePassThroughWaypoint>& GetPassThroughWaypoints() const { return m_passThroughWaypoints; }
126 inline bool PassThroughWaypointsHasBeenSet() const { return m_passThroughWaypointsHasBeenSet; }
127 template<typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
128 void SetPassThroughWaypoints(PassThroughWaypointsT&& value) { m_passThroughWaypointsHasBeenSet = true; m_passThroughWaypoints = std::forward<PassThroughWaypointsT>(value); }
129 template<typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
130 RouteFerryLegDetails& WithPassThroughWaypoints(PassThroughWaypointsT&& value) { SetPassThroughWaypoints(std::forward<PassThroughWaypointsT>(value)); return *this;}
131 template<typename PassThroughWaypointsT = RoutePassThroughWaypoint>
132 RouteFerryLegDetails& AddPassThroughWaypoints(PassThroughWaypointsT&& value) { m_passThroughWaypointsHasBeenSet = true; m_passThroughWaypoints.emplace_back(std::forward<PassThroughWaypointsT>(value)); return *this; }
134
136
139 inline const Aws::String& GetRouteName() const { return m_routeName; }
140 inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; }
141 template<typename RouteNameT = Aws::String>
142 void SetRouteName(RouteNameT&& value) { m_routeNameHasBeenSet = true; m_routeName = std::forward<RouteNameT>(value); }
143 template<typename RouteNameT = Aws::String>
144 RouteFerryLegDetails& WithRouteName(RouteNameT&& value) { SetRouteName(std::forward<RouteNameT>(value)); return *this;}
146
148
151 inline const Aws::Vector<RouteFerrySpan>& GetSpans() const { return m_spans; }
152 inline bool SpansHasBeenSet() const { return m_spansHasBeenSet; }
153 template<typename SpansT = Aws::Vector<RouteFerrySpan>>
154 void SetSpans(SpansT&& value) { m_spansHasBeenSet = true; m_spans = std::forward<SpansT>(value); }
155 template<typename SpansT = Aws::Vector<RouteFerrySpan>>
156 RouteFerryLegDetails& WithSpans(SpansT&& value) { SetSpans(std::forward<SpansT>(value)); return *this;}
157 template<typename SpansT = RouteFerrySpan>
158 RouteFerryLegDetails& AddSpans(SpansT&& value) { m_spansHasBeenSet = true; m_spans.emplace_back(std::forward<SpansT>(value)); return *this; }
160
162
165 inline const RouteFerrySummary& GetSummary() const { return m_summary; }
166 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
167 template<typename SummaryT = RouteFerrySummary>
168 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
169 template<typename SummaryT = RouteFerrySummary>
170 RouteFerryLegDetails& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
172
174
178 inline const Aws::Vector<RouteFerryTravelStep>& GetTravelSteps() const { return m_travelSteps; }
179 inline bool TravelStepsHasBeenSet() const { return m_travelStepsHasBeenSet; }
180 template<typename TravelStepsT = Aws::Vector<RouteFerryTravelStep>>
181 void SetTravelSteps(TravelStepsT&& value) { m_travelStepsHasBeenSet = true; m_travelSteps = std::forward<TravelStepsT>(value); }
182 template<typename TravelStepsT = Aws::Vector<RouteFerryTravelStep>>
183 RouteFerryLegDetails& WithTravelSteps(TravelStepsT&& value) { SetTravelSteps(std::forward<TravelStepsT>(value)); return *this;}
184 template<typename TravelStepsT = RouteFerryTravelStep>
185 RouteFerryLegDetails& AddTravelSteps(TravelStepsT&& value) { m_travelStepsHasBeenSet = true; m_travelSteps.emplace_back(std::forward<TravelStepsT>(value)); return *this; }
187 private:
188
190 bool m_afterTravelStepsHasBeenSet = false;
191
192 RouteFerryArrival m_arrival;
193 bool m_arrivalHasBeenSet = false;
194
195 Aws::Vector<RouteFerryBeforeTravelStep> m_beforeTravelSteps;
196 bool m_beforeTravelStepsHasBeenSet = false;
197
198 RouteFerryDeparture m_departure;
199 bool m_departureHasBeenSet = false;
200
202 bool m_noticesHasBeenSet = false;
203
204 Aws::Vector<RoutePassThroughWaypoint> m_passThroughWaypoints;
205 bool m_passThroughWaypointsHasBeenSet = false;
206
207 Aws::String m_routeName;
208 bool m_routeNameHasBeenSet = false;
209
211 bool m_spansHasBeenSet = false;
212
213 RouteFerrySummary m_summary;
214 bool m_summaryHasBeenSet = false;
215
217 bool m_travelStepsHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace GeoRoutes
222} // 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