AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteVehicleLegDetails.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteVehicleArrival.h>
9#include <aws/geo-routes/model/RouteVehicleDeparture.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/geo-routes/model/RouteVehicleSummary.h>
12#include <aws/geo-routes/model/RouteVehicleIncident.h>
13#include <aws/geo-routes/model/RouteVehicleNotice.h>
14#include <aws/geo-routes/model/RoutePassThroughWaypoint.h>
15#include <aws/geo-routes/model/RouteVehicleSpan.h>
16#include <aws/geo-routes/model/RouteToll.h>
17#include <aws/geo-routes/model/RouteTollSystem.h>
18#include <aws/geo-routes/model/RouteVehicleTravelStep.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/geo-routes/model/RouteZone.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace GeoRoutes
34{
35namespace Model
36{
37
45 {
46 public:
47 AWS_GEOROUTES_API RouteVehicleLegDetails();
50 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
57 inline const RouteVehicleArrival& GetArrival() const{ return m_arrival; }
58 inline bool ArrivalHasBeenSet() const { return m_arrivalHasBeenSet; }
59 inline void SetArrival(const RouteVehicleArrival& value) { m_arrivalHasBeenSet = true; m_arrival = value; }
60 inline void SetArrival(RouteVehicleArrival&& value) { m_arrivalHasBeenSet = true; m_arrival = std::move(value); }
61 inline RouteVehicleLegDetails& WithArrival(const RouteVehicleArrival& value) { SetArrival(value); return *this;}
62 inline RouteVehicleLegDetails& WithArrival(RouteVehicleArrival&& value) { SetArrival(std::move(value)); return *this;}
64
66
69 inline const RouteVehicleDeparture& GetDeparture() const{ return m_departure; }
70 inline bool DepartureHasBeenSet() const { return m_departureHasBeenSet; }
71 inline void SetDeparture(const RouteVehicleDeparture& value) { m_departureHasBeenSet = true; m_departure = value; }
72 inline void SetDeparture(RouteVehicleDeparture&& value) { m_departureHasBeenSet = true; m_departure = std::move(value); }
73 inline RouteVehicleLegDetails& WithDeparture(const RouteVehicleDeparture& value) { SetDeparture(value); return *this;}
74 inline RouteVehicleLegDetails& WithDeparture(RouteVehicleDeparture&& value) { SetDeparture(std::move(value)); return *this;}
76
78
81 inline const Aws::Vector<RouteVehicleIncident>& GetIncidents() const{ return m_incidents; }
82 inline bool IncidentsHasBeenSet() const { return m_incidentsHasBeenSet; }
83 inline void SetIncidents(const Aws::Vector<RouteVehicleIncident>& value) { m_incidentsHasBeenSet = true; m_incidents = value; }
84 inline void SetIncidents(Aws::Vector<RouteVehicleIncident>&& value) { m_incidentsHasBeenSet = true; m_incidents = std::move(value); }
86 inline RouteVehicleLegDetails& WithIncidents(Aws::Vector<RouteVehicleIncident>&& value) { SetIncidents(std::move(value)); return *this;}
87 inline RouteVehicleLegDetails& AddIncidents(const RouteVehicleIncident& value) { m_incidentsHasBeenSet = true; m_incidents.push_back(value); return *this; }
88 inline RouteVehicleLegDetails& AddIncidents(RouteVehicleIncident&& value) { m_incidentsHasBeenSet = true; m_incidents.push_back(std::move(value)); return *this; }
90
92
96 inline const Aws::Vector<RouteVehicleNotice>& GetNotices() const{ return m_notices; }
97 inline bool NoticesHasBeenSet() const { return m_noticesHasBeenSet; }
98 inline void SetNotices(const Aws::Vector<RouteVehicleNotice>& value) { m_noticesHasBeenSet = true; m_notices = value; }
99 inline void SetNotices(Aws::Vector<RouteVehicleNotice>&& value) { m_noticesHasBeenSet = true; m_notices = std::move(value); }
101 inline RouteVehicleLegDetails& WithNotices(Aws::Vector<RouteVehicleNotice>&& value) { SetNotices(std::move(value)); return *this;}
102 inline RouteVehicleLegDetails& AddNotices(const RouteVehicleNotice& value) { m_noticesHasBeenSet = true; m_notices.push_back(value); return *this; }
103 inline RouteVehicleLegDetails& AddNotices(RouteVehicleNotice&& value) { m_noticesHasBeenSet = true; m_notices.push_back(std::move(value)); return *this; }
105
107
111 inline const Aws::Vector<RoutePassThroughWaypoint>& GetPassThroughWaypoints() const{ return m_passThroughWaypoints; }
112 inline bool PassThroughWaypointsHasBeenSet() const { return m_passThroughWaypointsHasBeenSet; }
113 inline void SetPassThroughWaypoints(const Aws::Vector<RoutePassThroughWaypoint>& value) { m_passThroughWaypointsHasBeenSet = true; m_passThroughWaypoints = value; }
114 inline void SetPassThroughWaypoints(Aws::Vector<RoutePassThroughWaypoint>&& value) { m_passThroughWaypointsHasBeenSet = true; m_passThroughWaypoints = std::move(value); }
117 inline RouteVehicleLegDetails& AddPassThroughWaypoints(const RoutePassThroughWaypoint& value) { m_passThroughWaypointsHasBeenSet = true; m_passThroughWaypoints.push_back(value); return *this; }
118 inline RouteVehicleLegDetails& AddPassThroughWaypoints(RoutePassThroughWaypoint&& value) { m_passThroughWaypointsHasBeenSet = true; m_passThroughWaypoints.push_back(std::move(value)); return *this; }
120
122
125 inline const Aws::Vector<RouteVehicleSpan>& GetSpans() const{ return m_spans; }
126 inline bool SpansHasBeenSet() const { return m_spansHasBeenSet; }
127 inline void SetSpans(const Aws::Vector<RouteVehicleSpan>& value) { m_spansHasBeenSet = true; m_spans = value; }
128 inline void SetSpans(Aws::Vector<RouteVehicleSpan>&& value) { m_spansHasBeenSet = true; m_spans = std::move(value); }
129 inline RouteVehicleLegDetails& WithSpans(const Aws::Vector<RouteVehicleSpan>& value) { SetSpans(value); return *this;}
130 inline RouteVehicleLegDetails& WithSpans(Aws::Vector<RouteVehicleSpan>&& value) { SetSpans(std::move(value)); return *this;}
131 inline RouteVehicleLegDetails& AddSpans(const RouteVehicleSpan& value) { m_spansHasBeenSet = true; m_spans.push_back(value); return *this; }
132 inline RouteVehicleLegDetails& AddSpans(RouteVehicleSpan&& value) { m_spansHasBeenSet = true; m_spans.push_back(std::move(value)); return *this; }
134
136
139 inline const RouteVehicleSummary& GetSummary() const{ return m_summary; }
140 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
141 inline void SetSummary(const RouteVehicleSummary& value) { m_summaryHasBeenSet = true; m_summary = value; }
142 inline void SetSummary(RouteVehicleSummary&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); }
143 inline RouteVehicleLegDetails& WithSummary(const RouteVehicleSummary& value) { SetSummary(value); return *this;}
144 inline RouteVehicleLegDetails& WithSummary(RouteVehicleSummary&& value) { SetSummary(std::move(value)); return *this;}
146
148
151 inline const Aws::Vector<RouteToll>& GetTolls() const{ return m_tolls; }
152 inline bool TollsHasBeenSet() const { return m_tollsHasBeenSet; }
153 inline void SetTolls(const Aws::Vector<RouteToll>& value) { m_tollsHasBeenSet = true; m_tolls = value; }
154 inline void SetTolls(Aws::Vector<RouteToll>&& value) { m_tollsHasBeenSet = true; m_tolls = std::move(value); }
155 inline RouteVehicleLegDetails& WithTolls(const Aws::Vector<RouteToll>& value) { SetTolls(value); return *this;}
156 inline RouteVehicleLegDetails& WithTolls(Aws::Vector<RouteToll>&& value) { SetTolls(std::move(value)); return *this;}
157 inline RouteVehicleLegDetails& AddTolls(const RouteToll& value) { m_tollsHasBeenSet = true; m_tolls.push_back(value); return *this; }
158 inline RouteVehicleLegDetails& AddTolls(RouteToll&& value) { m_tollsHasBeenSet = true; m_tolls.push_back(std::move(value)); return *this; }
160
162
165 inline const Aws::Vector<RouteTollSystem>& GetTollSystems() const{ return m_tollSystems; }
166 inline bool TollSystemsHasBeenSet() const { return m_tollSystemsHasBeenSet; }
167 inline void SetTollSystems(const Aws::Vector<RouteTollSystem>& value) { m_tollSystemsHasBeenSet = true; m_tollSystems = value; }
168 inline void SetTollSystems(Aws::Vector<RouteTollSystem>&& value) { m_tollSystemsHasBeenSet = true; m_tollSystems = std::move(value); }
170 inline RouteVehicleLegDetails& WithTollSystems(Aws::Vector<RouteTollSystem>&& value) { SetTollSystems(std::move(value)); return *this;}
171 inline RouteVehicleLegDetails& AddTollSystems(const RouteTollSystem& value) { m_tollSystemsHasBeenSet = true; m_tollSystems.push_back(value); return *this; }
172 inline RouteVehicleLegDetails& AddTollSystems(RouteTollSystem&& value) { m_tollSystemsHasBeenSet = true; m_tollSystems.push_back(std::move(value)); return *this; }
174
176
180 inline const Aws::Vector<RouteVehicleTravelStep>& GetTravelSteps() const{ return m_travelSteps; }
181 inline bool TravelStepsHasBeenSet() const { return m_travelStepsHasBeenSet; }
182 inline void SetTravelSteps(const Aws::Vector<RouteVehicleTravelStep>& value) { m_travelStepsHasBeenSet = true; m_travelSteps = value; }
183 inline void SetTravelSteps(Aws::Vector<RouteVehicleTravelStep>&& value) { m_travelStepsHasBeenSet = true; m_travelSteps = std::move(value); }
186 inline RouteVehicleLegDetails& AddTravelSteps(const RouteVehicleTravelStep& value) { m_travelStepsHasBeenSet = true; m_travelSteps.push_back(value); return *this; }
187 inline RouteVehicleLegDetails& AddTravelSteps(RouteVehicleTravelStep&& value) { m_travelStepsHasBeenSet = true; m_travelSteps.push_back(std::move(value)); return *this; }
189
191
197 inline const Aws::Vector<Aws::String>& GetTruckRoadTypes() const{ return m_truckRoadTypes; }
198 inline bool TruckRoadTypesHasBeenSet() const { return m_truckRoadTypesHasBeenSet; }
199 inline void SetTruckRoadTypes(const Aws::Vector<Aws::String>& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes = value; }
200 inline void SetTruckRoadTypes(Aws::Vector<Aws::String>&& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes = std::move(value); }
202 inline RouteVehicleLegDetails& WithTruckRoadTypes(Aws::Vector<Aws::String>&& value) { SetTruckRoadTypes(std::move(value)); return *this;}
203 inline RouteVehicleLegDetails& AddTruckRoadTypes(const Aws::String& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes.push_back(value); return *this; }
204 inline RouteVehicleLegDetails& AddTruckRoadTypes(Aws::String&& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes.push_back(std::move(value)); return *this; }
205 inline RouteVehicleLegDetails& AddTruckRoadTypes(const char* value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes.push_back(value); return *this; }
207
209
212 inline const Aws::Vector<RouteZone>& GetZones() const{ return m_zones; }
213 inline bool ZonesHasBeenSet() const { return m_zonesHasBeenSet; }
214 inline void SetZones(const Aws::Vector<RouteZone>& value) { m_zonesHasBeenSet = true; m_zones = value; }
215 inline void SetZones(Aws::Vector<RouteZone>&& value) { m_zonesHasBeenSet = true; m_zones = std::move(value); }
216 inline RouteVehicleLegDetails& WithZones(const Aws::Vector<RouteZone>& value) { SetZones(value); return *this;}
217 inline RouteVehicleLegDetails& WithZones(Aws::Vector<RouteZone>&& value) { SetZones(std::move(value)); return *this;}
218 inline RouteVehicleLegDetails& AddZones(const RouteZone& value) { m_zonesHasBeenSet = true; m_zones.push_back(value); return *this; }
219 inline RouteVehicleLegDetails& AddZones(RouteZone&& value) { m_zonesHasBeenSet = true; m_zones.push_back(std::move(value)); return *this; }
221 private:
222
223 RouteVehicleArrival m_arrival;
224 bool m_arrivalHasBeenSet = false;
225
226 RouteVehicleDeparture m_departure;
227 bool m_departureHasBeenSet = false;
228
230 bool m_incidentsHasBeenSet = false;
231
233 bool m_noticesHasBeenSet = false;
234
235 Aws::Vector<RoutePassThroughWaypoint> m_passThroughWaypoints;
236 bool m_passThroughWaypointsHasBeenSet = false;
237
239 bool m_spansHasBeenSet = false;
240
241 RouteVehicleSummary m_summary;
242 bool m_summaryHasBeenSet = false;
243
245 bool m_tollsHasBeenSet = false;
246
247 Aws::Vector<RouteTollSystem> m_tollSystems;
248 bool m_tollSystemsHasBeenSet = false;
249
251 bool m_travelStepsHasBeenSet = false;
252
253 Aws::Vector<Aws::String> m_truckRoadTypes;
254 bool m_truckRoadTypesHasBeenSet = false;
255
257 bool m_zonesHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace GeoRoutes
262} // namespace Aws
RouteVehicleLegDetails & WithIncidents(Aws::Vector< RouteVehicleIncident > &&value)
void SetSpans(Aws::Vector< RouteVehicleSpan > &&value)
RouteVehicleLegDetails & AddIncidents(const RouteVehicleIncident &value)
void SetTolls(Aws::Vector< RouteToll > &&value)
RouteVehicleLegDetails & AddTruckRoadTypes(Aws::String &&value)
RouteVehicleLegDetails & AddTollSystems(const RouteTollSystem &value)
RouteVehicleLegDetails & WithTravelSteps(Aws::Vector< RouteVehicleTravelStep > &&value)
const Aws::Vector< RouteVehicleTravelStep > & GetTravelSteps() const
const Aws::Vector< RouteTollSystem > & GetTollSystems() const
RouteVehicleLegDetails & AddSpans(RouteVehicleSpan &&value)
RouteVehicleLegDetails & WithTollSystems(Aws::Vector< RouteTollSystem > &&value)
RouteVehicleLegDetails & WithNotices(const Aws::Vector< RouteVehicleNotice > &value)
const RouteVehicleArrival & GetArrival() const
RouteVehicleLegDetails & WithTravelSteps(const Aws::Vector< RouteVehicleTravelStep > &value)
const Aws::Vector< Aws::String > & GetTruckRoadTypes() const
void SetTollSystems(const Aws::Vector< RouteTollSystem > &value)
void SetSpans(const Aws::Vector< RouteVehicleSpan > &value)
void SetPassThroughWaypoints(const Aws::Vector< RoutePassThroughWaypoint > &value)
RouteVehicleLegDetails & WithNotices(Aws::Vector< RouteVehicleNotice > &&value)
RouteVehicleLegDetails & AddNotices(const RouteVehicleNotice &value)
RouteVehicleLegDetails & WithZones(Aws::Vector< RouteZone > &&value)
RouteVehicleLegDetails & WithSpans(const Aws::Vector< RouteVehicleSpan > &value)
const RouteVehicleSummary & GetSummary() const
AWS_GEOROUTES_API RouteVehicleLegDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIncidents(const Aws::Vector< RouteVehicleIncident > &value)
RouteVehicleLegDetails & WithSpans(Aws::Vector< RouteVehicleSpan > &&value)
RouteVehicleLegDetails & WithPassThroughWaypoints(Aws::Vector< RoutePassThroughWaypoint > &&value)
RouteVehicleLegDetails & WithTruckRoadTypes(const Aws::Vector< Aws::String > &value)
RouteVehicleLegDetails & AddZones(const RouteZone &value)
RouteVehicleLegDetails & AddTruckRoadTypes(const char *value)
void SetDeparture(const RouteVehicleDeparture &value)
const Aws::Vector< RoutePassThroughWaypoint > & GetPassThroughWaypoints() const
void SetTruckRoadTypes(Aws::Vector< Aws::String > &&value)
RouteVehicleLegDetails & WithSummary(const RouteVehicleSummary &value)
void SetNotices(Aws::Vector< RouteVehicleNotice > &&value)
RouteVehicleLegDetails & WithSummary(RouteVehicleSummary &&value)
RouteVehicleLegDetails & AddTravelSteps(const RouteVehicleTravelStep &value)
RouteVehicleLegDetails & WithPassThroughWaypoints(const Aws::Vector< RoutePassThroughWaypoint > &value)
RouteVehicleLegDetails & AddTruckRoadTypes(const Aws::String &value)
void SetSummary(const RouteVehicleSummary &value)
const Aws::Vector< RouteVehicleNotice > & GetNotices() const
RouteVehicleLegDetails & WithDeparture(const RouteVehicleDeparture &value)
RouteVehicleLegDetails & AddTolls(const RouteToll &value)
RouteVehicleLegDetails & AddPassThroughWaypoints(const RoutePassThroughWaypoint &value)
void SetTolls(const Aws::Vector< RouteToll > &value)
RouteVehicleLegDetails & AddZones(RouteZone &&value)
RouteVehicleLegDetails & WithArrival(RouteVehicleArrival &&value)
RouteVehicleLegDetails & AddTolls(RouteToll &&value)
RouteVehicleLegDetails & WithTollSystems(const Aws::Vector< RouteTollSystem > &value)
RouteVehicleLegDetails & WithZones(const Aws::Vector< RouteZone > &value)
const Aws::Vector< RouteZone > & GetZones() const
RouteVehicleLegDetails & AddPassThroughWaypoints(RoutePassThroughWaypoint &&value)
const Aws::Vector< RouteToll > & GetTolls() const
RouteVehicleLegDetails & WithDeparture(RouteVehicleDeparture &&value)
RouteVehicleLegDetails & WithTolls(Aws::Vector< RouteToll > &&value)
void SetPassThroughWaypoints(Aws::Vector< RoutePassThroughWaypoint > &&value)
void SetTravelSteps(const Aws::Vector< RouteVehicleTravelStep > &value)
RouteVehicleLegDetails & WithIncidents(const Aws::Vector< RouteVehicleIncident > &value)
const Aws::Vector< RouteVehicleIncident > & GetIncidents() const
void SetDeparture(RouteVehicleDeparture &&value)
RouteVehicleLegDetails & WithArrival(const RouteVehicleArrival &value)
void SetZones(const Aws::Vector< RouteZone > &value)
RouteVehicleLegDetails & AddNotices(RouteVehicleNotice &&value)
void SetIncidents(Aws::Vector< RouteVehicleIncident > &&value)
RouteVehicleLegDetails & AddTollSystems(RouteTollSystem &&value)
RouteVehicleLegDetails & AddIncidents(RouteVehicleIncident &&value)
void SetTollSystems(Aws::Vector< RouteTollSystem > &&value)
RouteVehicleLegDetails & AddTravelSteps(RouteVehicleTravelStep &&value)
RouteVehicleLegDetails & WithTruckRoadTypes(Aws::Vector< Aws::String > &&value)
void SetTruckRoadTypes(const Aws::Vector< Aws::String > &value)
RouteVehicleLegDetails & AddSpans(const RouteVehicleSpan &value)
RouteVehicleLegDetails & WithTolls(const Aws::Vector< RouteToll > &value)
AWS_GEOROUTES_API RouteVehicleLegDetails(Aws::Utils::Json::JsonView jsonValue)
const RouteVehicleDeparture & GetDeparture() const
void SetArrival(const RouteVehicleArrival &value)
const Aws::Vector< RouteVehicleSpan > & GetSpans() const
void SetZones(Aws::Vector< RouteZone > &&value)
void SetTravelSteps(Aws::Vector< RouteVehicleTravelStep > &&value)
void SetNotices(const Aws::Vector< RouteVehicleNotice > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue