AWS SDK for C++

AWS SDK for C++ Version 1.11.773

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
82 inline const Aws::Vector<RoutePedestrianNotice>& GetNotices() const { return m_notices; }
83 inline bool NoticesHasBeenSet() const { return m_noticesHasBeenSet; }
84 template <typename NoticesT = Aws::Vector<RoutePedestrianNotice>>
85 void SetNotices(NoticesT&& value) {
86 m_noticesHasBeenSet = true;
87 m_notices = std::forward<NoticesT>(value);
88 }
89 template <typename NoticesT = Aws::Vector<RoutePedestrianNotice>>
91 SetNotices(std::forward<NoticesT>(value));
92 return *this;
93 }
94 template <typename NoticesT = RoutePedestrianNotice>
96 m_noticesHasBeenSet = true;
97 m_notices.emplace_back(std::forward<NoticesT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::Vector<RoutePassThroughWaypoint>& GetPassThroughWaypoints() const { return m_passThroughWaypoints; }
108 inline bool PassThroughWaypointsHasBeenSet() const { return m_passThroughWaypointsHasBeenSet; }
109 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
110 void SetPassThroughWaypoints(PassThroughWaypointsT&& value) {
111 m_passThroughWaypointsHasBeenSet = true;
112 m_passThroughWaypoints = std::forward<PassThroughWaypointsT>(value);
113 }
114 template <typename PassThroughWaypointsT = Aws::Vector<RoutePassThroughWaypoint>>
115 RoutePedestrianLegDetails& WithPassThroughWaypoints(PassThroughWaypointsT&& value) {
116 SetPassThroughWaypoints(std::forward<PassThroughWaypointsT>(value));
117 return *this;
118 }
119 template <typename PassThroughWaypointsT = RoutePassThroughWaypoint>
120 RoutePedestrianLegDetails& AddPassThroughWaypoints(PassThroughWaypointsT&& value) {
121 m_passThroughWaypointsHasBeenSet = true;
122 m_passThroughWaypoints.emplace_back(std::forward<PassThroughWaypointsT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Vector<RoutePedestrianSpan>& GetSpans() const { return m_spans; }
132 inline bool SpansHasBeenSet() const { return m_spansHasBeenSet; }
133 template <typename SpansT = Aws::Vector<RoutePedestrianSpan>>
134 void SetSpans(SpansT&& value) {
135 m_spansHasBeenSet = true;
136 m_spans = std::forward<SpansT>(value);
137 }
138 template <typename SpansT = Aws::Vector<RoutePedestrianSpan>>
140 SetSpans(std::forward<SpansT>(value));
141 return *this;
142 }
143 template <typename SpansT = RoutePedestrianSpan>
145 m_spansHasBeenSet = true;
146 m_spans.emplace_back(std::forward<SpansT>(value));
147 return *this;
148 }
150
152
155 inline const RoutePedestrianSummary& GetSummary() const { return m_summary; }
156 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
157 template <typename SummaryT = RoutePedestrianSummary>
158 void SetSummary(SummaryT&& value) {
159 m_summaryHasBeenSet = true;
160 m_summary = std::forward<SummaryT>(value);
161 }
162 template <typename SummaryT = RoutePedestrianSummary>
164 SetSummary(std::forward<SummaryT>(value));
165 return *this;
166 }
168
170
174 inline const Aws::Vector<RoutePedestrianTravelStep>& GetTravelSteps() const { return m_travelSteps; }
175 inline bool TravelStepsHasBeenSet() const { return m_travelStepsHasBeenSet; }
176 template <typename TravelStepsT = Aws::Vector<RoutePedestrianTravelStep>>
177 void SetTravelSteps(TravelStepsT&& value) {
178 m_travelStepsHasBeenSet = true;
179 m_travelSteps = std::forward<TravelStepsT>(value);
180 }
181 template <typename TravelStepsT = Aws::Vector<RoutePedestrianTravelStep>>
183 SetTravelSteps(std::forward<TravelStepsT>(value));
184 return *this;
185 }
186 template <typename TravelStepsT = RoutePedestrianTravelStep>
188 m_travelStepsHasBeenSet = true;
189 m_travelSteps.emplace_back(std::forward<TravelStepsT>(value));
190 return *this;
191 }
193 private:
194 RoutePedestrianArrival m_arrival;
195
196 RoutePedestrianDeparture m_departure;
197
199
200 Aws::Vector<RoutePassThroughWaypoint> m_passThroughWaypoints;
201
203
204 RoutePedestrianSummary m_summary;
205
207 bool m_arrivalHasBeenSet = false;
208 bool m_departureHasBeenSet = false;
209 bool m_noticesHasBeenSet = false;
210 bool m_passThroughWaypointsHasBeenSet = false;
211 bool m_spansHasBeenSet = false;
212 bool m_summaryHasBeenSet = false;
213 bool m_travelStepsHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace GeoRoutes
218} // 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