AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteViolatedConstraints.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteNoticeDetailRange.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/geo-routes/model/RouteWeightConstraint.h>
11#include <aws/geo-routes/model/WeightPerAxleGroup.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/geo-routes/model/RouteTruckType.h>
14#include <aws/geo-routes/model/RouteHazardousCargoType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace GeoRoutes
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_GEOROUTES_API RouteViolatedConstraints() = default;
44 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline bool GetAllHazardsRestricted() const { return m_allHazardsRestricted; }
53 inline bool AllHazardsRestrictedHasBeenSet() const { return m_allHazardsRestrictedHasBeenSet; }
54 inline void SetAllHazardsRestricted(bool value) { m_allHazardsRestrictedHasBeenSet = true; m_allHazardsRestricted = value; }
57
59
62 inline const RouteNoticeDetailRange& GetAxleCount() const { return m_axleCount; }
63 inline bool AxleCountHasBeenSet() const { return m_axleCountHasBeenSet; }
64 template<typename AxleCountT = RouteNoticeDetailRange>
65 void SetAxleCount(AxleCountT&& value) { m_axleCountHasBeenSet = true; m_axleCount = std::forward<AxleCountT>(value); }
66 template<typename AxleCountT = RouteNoticeDetailRange>
67 RouteViolatedConstraints& WithAxleCount(AxleCountT&& value) { SetAxleCount(std::forward<AxleCountT>(value)); return *this;}
69
71
74 inline const Aws::Vector<RouteHazardousCargoType>& GetHazardousCargos() const { return m_hazardousCargos; }
75 inline bool HazardousCargosHasBeenSet() const { return m_hazardousCargosHasBeenSet; }
76 template<typename HazardousCargosT = Aws::Vector<RouteHazardousCargoType>>
77 void SetHazardousCargos(HazardousCargosT&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = std::forward<HazardousCargosT>(value); }
78 template<typename HazardousCargosT = Aws::Vector<RouteHazardousCargoType>>
79 RouteViolatedConstraints& WithHazardousCargos(HazardousCargosT&& value) { SetHazardousCargos(std::forward<HazardousCargosT>(value)); return *this;}
80 inline RouteViolatedConstraints& AddHazardousCargos(RouteHazardousCargoType value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(value); return *this; }
82
84
87 inline long long GetMaxHeight() const { return m_maxHeight; }
88 inline bool MaxHeightHasBeenSet() const { return m_maxHeightHasBeenSet; }
89 inline void SetMaxHeight(long long value) { m_maxHeightHasBeenSet = true; m_maxHeight = value; }
90 inline RouteViolatedConstraints& WithMaxHeight(long long value) { SetMaxHeight(value); return *this;}
92
94
98 inline long long GetMaxKpraLength() const { return m_maxKpraLength; }
99 inline bool MaxKpraLengthHasBeenSet() const { return m_maxKpraLengthHasBeenSet; }
100 inline void SetMaxKpraLength(long long value) { m_maxKpraLengthHasBeenSet = true; m_maxKpraLength = value; }
101 inline RouteViolatedConstraints& WithMaxKpraLength(long long value) { SetMaxKpraLength(value); return *this;}
103
105
108 inline long long GetMaxLength() const { return m_maxLength; }
109 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
110 inline void SetMaxLength(long long value) { m_maxLengthHasBeenSet = true; m_maxLength = value; }
111 inline RouteViolatedConstraints& WithMaxLength(long long value) { SetMaxLength(value); return *this;}
113
115
119 inline long long GetMaxPayloadCapacity() const { return m_maxPayloadCapacity; }
120 inline bool MaxPayloadCapacityHasBeenSet() const { return m_maxPayloadCapacityHasBeenSet; }
121 inline void SetMaxPayloadCapacity(long long value) { m_maxPayloadCapacityHasBeenSet = true; m_maxPayloadCapacity = value; }
122 inline RouteViolatedConstraints& WithMaxPayloadCapacity(long long value) { SetMaxPayloadCapacity(value); return *this;}
124
126
130 inline const RouteWeightConstraint& GetMaxWeight() const { return m_maxWeight; }
131 inline bool MaxWeightHasBeenSet() const { return m_maxWeightHasBeenSet; }
132 template<typename MaxWeightT = RouteWeightConstraint>
133 void SetMaxWeight(MaxWeightT&& value) { m_maxWeightHasBeenSet = true; m_maxWeight = std::forward<MaxWeightT>(value); }
134 template<typename MaxWeightT = RouteWeightConstraint>
135 RouteViolatedConstraints& WithMaxWeight(MaxWeightT&& value) { SetMaxWeight(std::forward<MaxWeightT>(value)); return *this;}
137
139
143 inline long long GetMaxWeightPerAxle() const { return m_maxWeightPerAxle; }
144 inline bool MaxWeightPerAxleHasBeenSet() const { return m_maxWeightPerAxleHasBeenSet; }
145 inline void SetMaxWeightPerAxle(long long value) { m_maxWeightPerAxleHasBeenSet = true; m_maxWeightPerAxle = value; }
146 inline RouteViolatedConstraints& WithMaxWeightPerAxle(long long value) { SetMaxWeightPerAxle(value); return *this;}
148
150
154 inline const WeightPerAxleGroup& GetMaxWeightPerAxleGroup() const { return m_maxWeightPerAxleGroup; }
155 inline bool MaxWeightPerAxleGroupHasBeenSet() const { return m_maxWeightPerAxleGroupHasBeenSet; }
156 template<typename MaxWeightPerAxleGroupT = WeightPerAxleGroup>
157 void SetMaxWeightPerAxleGroup(MaxWeightPerAxleGroupT&& value) { m_maxWeightPerAxleGroupHasBeenSet = true; m_maxWeightPerAxleGroup = std::forward<MaxWeightPerAxleGroupT>(value); }
158 template<typename MaxWeightPerAxleGroupT = WeightPerAxleGroup>
159 RouteViolatedConstraints& WithMaxWeightPerAxleGroup(MaxWeightPerAxleGroupT&& value) { SetMaxWeightPerAxleGroup(std::forward<MaxWeightPerAxleGroupT>(value)); return *this;}
161
163
166 inline long long GetMaxWidth() const { return m_maxWidth; }
167 inline bool MaxWidthHasBeenSet() const { return m_maxWidthHasBeenSet; }
168 inline void SetMaxWidth(long long value) { m_maxWidthHasBeenSet = true; m_maxWidth = value; }
169 inline RouteViolatedConstraints& WithMaxWidth(long long value) { SetMaxWidth(value); return *this;}
171
173
177 inline const RouteNoticeDetailRange& GetOccupancy() const { return m_occupancy; }
178 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
179 template<typename OccupancyT = RouteNoticeDetailRange>
180 void SetOccupancy(OccupancyT&& value) { m_occupancyHasBeenSet = true; m_occupancy = std::forward<OccupancyT>(value); }
181 template<typename OccupancyT = RouteNoticeDetailRange>
182 RouteViolatedConstraints& WithOccupancy(OccupancyT&& value) { SetOccupancy(std::forward<OccupancyT>(value)); return *this;}
184
186
189 inline const Aws::String& GetRestrictedTimes() const { return m_restrictedTimes; }
190 inline bool RestrictedTimesHasBeenSet() const { return m_restrictedTimesHasBeenSet; }
191 template<typename RestrictedTimesT = Aws::String>
192 void SetRestrictedTimes(RestrictedTimesT&& value) { m_restrictedTimesHasBeenSet = true; m_restrictedTimes = std::forward<RestrictedTimesT>(value); }
193 template<typename RestrictedTimesT = Aws::String>
194 RouteViolatedConstraints& WithRestrictedTimes(RestrictedTimesT&& value) { SetRestrictedTimes(std::forward<RestrictedTimesT>(value)); return *this;}
196
198
201 inline bool GetTimeDependent() const { return m_timeDependent; }
202 inline bool TimeDependentHasBeenSet() const { return m_timeDependentHasBeenSet; }
203 inline void SetTimeDependent(bool value) { m_timeDependentHasBeenSet = true; m_timeDependent = value; }
204 inline RouteViolatedConstraints& WithTimeDependent(bool value) { SetTimeDependent(value); return *this;}
206
208
212 inline const RouteNoticeDetailRange& GetTrailerCount() const { return m_trailerCount; }
213 inline bool TrailerCountHasBeenSet() const { return m_trailerCountHasBeenSet; }
214 template<typename TrailerCountT = RouteNoticeDetailRange>
215 void SetTrailerCount(TrailerCountT&& value) { m_trailerCountHasBeenSet = true; m_trailerCount = std::forward<TrailerCountT>(value); }
216 template<typename TrailerCountT = RouteNoticeDetailRange>
217 RouteViolatedConstraints& WithTrailerCount(TrailerCountT&& value) { SetTrailerCount(std::forward<TrailerCountT>(value)); return *this;}
219
221
224 inline bool GetTravelMode() const { return m_travelMode; }
225 inline bool TravelModeHasBeenSet() const { return m_travelModeHasBeenSet; }
226 inline void SetTravelMode(bool value) { m_travelModeHasBeenSet = true; m_travelMode = value; }
227 inline RouteViolatedConstraints& WithTravelMode(bool value) { SetTravelMode(value); return *this;}
229
231
237 inline const Aws::String& GetTruckRoadType() const { return m_truckRoadType; }
238 inline bool TruckRoadTypeHasBeenSet() const { return m_truckRoadTypeHasBeenSet; }
239 template<typename TruckRoadTypeT = Aws::String>
240 void SetTruckRoadType(TruckRoadTypeT&& value) { m_truckRoadTypeHasBeenSet = true; m_truckRoadType = std::forward<TruckRoadTypeT>(value); }
241 template<typename TruckRoadTypeT = Aws::String>
242 RouteViolatedConstraints& WithTruckRoadType(TruckRoadTypeT&& value) { SetTruckRoadType(std::forward<TruckRoadTypeT>(value)); return *this;}
244
246
249 inline RouteTruckType GetTruckType() const { return m_truckType; }
250 inline bool TruckTypeHasBeenSet() const { return m_truckTypeHasBeenSet; }
251 inline void SetTruckType(RouteTruckType value) { m_truckTypeHasBeenSet = true; m_truckType = value; }
254
256
270 inline const Aws::String& GetTunnelRestrictionCode() const { return m_tunnelRestrictionCode; }
271 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
272 template<typename TunnelRestrictionCodeT = Aws::String>
273 void SetTunnelRestrictionCode(TunnelRestrictionCodeT&& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = std::forward<TunnelRestrictionCodeT>(value); }
274 template<typename TunnelRestrictionCodeT = Aws::String>
275 RouteViolatedConstraints& WithTunnelRestrictionCode(TunnelRestrictionCodeT&& value) { SetTunnelRestrictionCode(std::forward<TunnelRestrictionCodeT>(value)); return *this;}
277 private:
278
279 bool m_allHazardsRestricted{false};
280 bool m_allHazardsRestrictedHasBeenSet = false;
281
282 RouteNoticeDetailRange m_axleCount;
283 bool m_axleCountHasBeenSet = false;
284
285 Aws::Vector<RouteHazardousCargoType> m_hazardousCargos;
286 bool m_hazardousCargosHasBeenSet = false;
287
288 long long m_maxHeight{0};
289 bool m_maxHeightHasBeenSet = false;
290
291 long long m_maxKpraLength{0};
292 bool m_maxKpraLengthHasBeenSet = false;
293
294 long long m_maxLength{0};
295 bool m_maxLengthHasBeenSet = false;
296
297 long long m_maxPayloadCapacity{0};
298 bool m_maxPayloadCapacityHasBeenSet = false;
299
300 RouteWeightConstraint m_maxWeight;
301 bool m_maxWeightHasBeenSet = false;
302
303 long long m_maxWeightPerAxle{0};
304 bool m_maxWeightPerAxleHasBeenSet = false;
305
306 WeightPerAxleGroup m_maxWeightPerAxleGroup;
307 bool m_maxWeightPerAxleGroupHasBeenSet = false;
308
309 long long m_maxWidth{0};
310 bool m_maxWidthHasBeenSet = false;
311
312 RouteNoticeDetailRange m_occupancy;
313 bool m_occupancyHasBeenSet = false;
314
315 Aws::String m_restrictedTimes;
316 bool m_restrictedTimesHasBeenSet = false;
317
318 bool m_timeDependent{false};
319 bool m_timeDependentHasBeenSet = false;
320
321 RouteNoticeDetailRange m_trailerCount;
322 bool m_trailerCountHasBeenSet = false;
323
324 bool m_travelMode{false};
325 bool m_travelModeHasBeenSet = false;
326
327 Aws::String m_truckRoadType;
328 bool m_truckRoadTypeHasBeenSet = false;
329
331 bool m_truckTypeHasBeenSet = false;
332
333 Aws::String m_tunnelRestrictionCode;
334 bool m_tunnelRestrictionCodeHasBeenSet = false;
335 };
336
337} // namespace Model
338} // namespace GeoRoutes
339} // namespace Aws
RouteViolatedConstraints & WithMaxWeightPerAxleGroup(MaxWeightPerAxleGroupT &&value)
RouteViolatedConstraints & WithTruckRoadType(TruckRoadTypeT &&value)
const RouteNoticeDetailRange & GetTrailerCount() const
RouteViolatedConstraints & WithTruckType(RouteTruckType value)
RouteViolatedConstraints & WithMaxWidth(long long value)
RouteViolatedConstraints & WithAxleCount(AxleCountT &&value)
RouteViolatedConstraints & WithAllHazardsRestricted(bool value)
RouteViolatedConstraints & WithMaxKpraLength(long long value)
void SetTunnelRestrictionCode(TunnelRestrictionCodeT &&value)
RouteViolatedConstraints & WithMaxPayloadCapacity(long long value)
AWS_GEOROUTES_API RouteViolatedConstraints()=default
RouteViolatedConstraints & WithMaxWeight(MaxWeightT &&value)
const RouteNoticeDetailRange & GetOccupancy() const
RouteViolatedConstraints & WithTravelMode(bool value)
RouteViolatedConstraints & WithMaxHeight(long long value)
RouteViolatedConstraints & WithMaxWeightPerAxle(long long value)
void SetMaxWeightPerAxleGroup(MaxWeightPerAxleGroupT &&value)
RouteViolatedConstraints & WithTunnelRestrictionCode(TunnelRestrictionCodeT &&value)
const RouteWeightConstraint & GetMaxWeight() const
RouteViolatedConstraints & WithOccupancy(OccupancyT &&value)
RouteViolatedConstraints & WithTimeDependent(bool value)
const WeightPerAxleGroup & GetMaxWeightPerAxleGroup() const
const RouteNoticeDetailRange & GetAxleCount() const
AWS_GEOROUTES_API RouteViolatedConstraints(Aws::Utils::Json::JsonView jsonValue)
RouteViolatedConstraints & AddHazardousCargos(RouteHazardousCargoType value)
RouteViolatedConstraints & WithRestrictedTimes(RestrictedTimesT &&value)
AWS_GEOROUTES_API RouteViolatedConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteViolatedConstraints & WithMaxLength(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteViolatedConstraints & WithHazardousCargos(HazardousCargosT &&value)
RouteViolatedConstraints & WithTrailerCount(TrailerCountT &&value)
const Aws::Vector< RouteHazardousCargoType > & GetHazardousCargos() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue