AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
RouteViolatedConstraints.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/RouteHazardousCargoType.h>
11#include <aws/geo-routes/model/RouteNoticeDetailRange.h>
12#include <aws/geo-routes/model/RouteTruckType.h>
13#include <aws/geo-routes/model/RouteWeightConstraint.h>
14#include <aws/geo-routes/model/WeightPerAxleGroup.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GeoRoutes {
26namespace Model {
27
35 public:
36 AWS_GEOROUTES_API RouteViolatedConstraints() = default;
39 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline bool GetAllHazardsRestricted() const { return m_allHazardsRestricted; }
47 inline bool AllHazardsRestrictedHasBeenSet() const { return m_allHazardsRestrictedHasBeenSet; }
48 inline void SetAllHazardsRestricted(bool value) {
49 m_allHazardsRestrictedHasBeenSet = true;
50 m_allHazardsRestricted = value;
51 }
54 return *this;
55 }
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) {
66 m_axleCountHasBeenSet = true;
67 m_axleCount = std::forward<AxleCountT>(value);
68 }
69 template <typename AxleCountT = RouteNoticeDetailRange>
71 SetAxleCount(std::forward<AxleCountT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<RouteHazardousCargoType>& GetHazardousCargos() const { return m_hazardousCargos; }
81 inline bool HazardousCargosHasBeenSet() const { return m_hazardousCargosHasBeenSet; }
82 template <typename HazardousCargosT = Aws::Vector<RouteHazardousCargoType>>
83 void SetHazardousCargos(HazardousCargosT&& value) {
84 m_hazardousCargosHasBeenSet = true;
85 m_hazardousCargos = std::forward<HazardousCargosT>(value);
86 }
87 template <typename HazardousCargosT = Aws::Vector<RouteHazardousCargoType>>
88 RouteViolatedConstraints& WithHazardousCargos(HazardousCargosT&& value) {
89 SetHazardousCargos(std::forward<HazardousCargosT>(value));
90 return *this;
91 }
93 m_hazardousCargosHasBeenSet = true;
94 m_hazardousCargos.push_back(value);
95 return *this;
96 }
98
100
103 inline long long GetMaxHeight() const { return m_maxHeight; }
104 inline bool MaxHeightHasBeenSet() const { return m_maxHeightHasBeenSet; }
105 inline void SetMaxHeight(long long value) {
106 m_maxHeightHasBeenSet = true;
107 m_maxHeight = value;
108 }
109 inline RouteViolatedConstraints& WithMaxHeight(long long value) {
110 SetMaxHeight(value);
111 return *this;
112 }
114
116
120 inline long long GetMaxKpraLength() const { return m_maxKpraLength; }
121 inline bool MaxKpraLengthHasBeenSet() const { return m_maxKpraLengthHasBeenSet; }
122 inline void SetMaxKpraLength(long long value) {
123 m_maxKpraLengthHasBeenSet = true;
124 m_maxKpraLength = value;
125 }
127 SetMaxKpraLength(value);
128 return *this;
129 }
131
133
136 inline long long GetMaxLength() const { return m_maxLength; }
137 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
138 inline void SetMaxLength(long long value) {
139 m_maxLengthHasBeenSet = true;
140 m_maxLength = value;
141 }
142 inline RouteViolatedConstraints& WithMaxLength(long long value) {
143 SetMaxLength(value);
144 return *this;
145 }
147
149
153 inline long long GetMaxPayloadCapacity() const { return m_maxPayloadCapacity; }
154 inline bool MaxPayloadCapacityHasBeenSet() const { return m_maxPayloadCapacityHasBeenSet; }
155 inline void SetMaxPayloadCapacity(long long value) {
156 m_maxPayloadCapacityHasBeenSet = true;
157 m_maxPayloadCapacity = value;
158 }
161 return *this;
162 }
164
166
170 inline const RouteWeightConstraint& GetMaxWeight() const { return m_maxWeight; }
171 inline bool MaxWeightHasBeenSet() const { return m_maxWeightHasBeenSet; }
172 template <typename MaxWeightT = RouteWeightConstraint>
173 void SetMaxWeight(MaxWeightT&& value) {
174 m_maxWeightHasBeenSet = true;
175 m_maxWeight = std::forward<MaxWeightT>(value);
176 }
177 template <typename MaxWeightT = RouteWeightConstraint>
179 SetMaxWeight(std::forward<MaxWeightT>(value));
180 return *this;
181 }
183
185
189 inline long long GetMaxWeightPerAxle() const { return m_maxWeightPerAxle; }
190 inline bool MaxWeightPerAxleHasBeenSet() const { return m_maxWeightPerAxleHasBeenSet; }
191 inline void SetMaxWeightPerAxle(long long value) {
192 m_maxWeightPerAxleHasBeenSet = true;
193 m_maxWeightPerAxle = value;
194 }
196 SetMaxWeightPerAxle(value);
197 return *this;
198 }
200
202
206 inline const WeightPerAxleGroup& GetMaxWeightPerAxleGroup() const { return m_maxWeightPerAxleGroup; }
207 inline bool MaxWeightPerAxleGroupHasBeenSet() const { return m_maxWeightPerAxleGroupHasBeenSet; }
208 template <typename MaxWeightPerAxleGroupT = WeightPerAxleGroup>
209 void SetMaxWeightPerAxleGroup(MaxWeightPerAxleGroupT&& value) {
210 m_maxWeightPerAxleGroupHasBeenSet = true;
211 m_maxWeightPerAxleGroup = std::forward<MaxWeightPerAxleGroupT>(value);
212 }
213 template <typename MaxWeightPerAxleGroupT = WeightPerAxleGroup>
214 RouteViolatedConstraints& WithMaxWeightPerAxleGroup(MaxWeightPerAxleGroupT&& value) {
215 SetMaxWeightPerAxleGroup(std::forward<MaxWeightPerAxleGroupT>(value));
216 return *this;
217 }
219
221
224 inline long long GetMaxWidth() const { return m_maxWidth; }
225 inline bool MaxWidthHasBeenSet() const { return m_maxWidthHasBeenSet; }
226 inline void SetMaxWidth(long long value) {
227 m_maxWidthHasBeenSet = true;
228 m_maxWidth = value;
229 }
230 inline RouteViolatedConstraints& WithMaxWidth(long long value) {
231 SetMaxWidth(value);
232 return *this;
233 }
235
237
241 inline const RouteNoticeDetailRange& GetOccupancy() const { return m_occupancy; }
242 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
243 template <typename OccupancyT = RouteNoticeDetailRange>
244 void SetOccupancy(OccupancyT&& value) {
245 m_occupancyHasBeenSet = true;
246 m_occupancy = std::forward<OccupancyT>(value);
247 }
248 template <typename OccupancyT = RouteNoticeDetailRange>
250 SetOccupancy(std::forward<OccupancyT>(value));
251 return *this;
252 }
254
256
259 inline const Aws::String& GetRestrictedTimes() const { return m_restrictedTimes; }
260 inline bool RestrictedTimesHasBeenSet() const { return m_restrictedTimesHasBeenSet; }
261 template <typename RestrictedTimesT = Aws::String>
262 void SetRestrictedTimes(RestrictedTimesT&& value) {
263 m_restrictedTimesHasBeenSet = true;
264 m_restrictedTimes = std::forward<RestrictedTimesT>(value);
265 }
266 template <typename RestrictedTimesT = Aws::String>
268 SetRestrictedTimes(std::forward<RestrictedTimesT>(value));
269 return *this;
270 }
272
274
277 inline bool GetTimeDependent() const { return m_timeDependent; }
278 inline bool TimeDependentHasBeenSet() const { return m_timeDependentHasBeenSet; }
279 inline void SetTimeDependent(bool value) {
280 m_timeDependentHasBeenSet = true;
281 m_timeDependent = value;
282 }
284 SetTimeDependent(value);
285 return *this;
286 }
288
290
294 inline const RouteNoticeDetailRange& GetTrailerCount() const { return m_trailerCount; }
295 inline bool TrailerCountHasBeenSet() const { return m_trailerCountHasBeenSet; }
296 template <typename TrailerCountT = RouteNoticeDetailRange>
297 void SetTrailerCount(TrailerCountT&& value) {
298 m_trailerCountHasBeenSet = true;
299 m_trailerCount = std::forward<TrailerCountT>(value);
300 }
301 template <typename TrailerCountT = RouteNoticeDetailRange>
303 SetTrailerCount(std::forward<TrailerCountT>(value));
304 return *this;
305 }
307
309
312 inline bool GetTravelMode() const { return m_travelMode; }
313 inline bool TravelModeHasBeenSet() const { return m_travelModeHasBeenSet; }
314 inline void SetTravelMode(bool value) {
315 m_travelModeHasBeenSet = true;
316 m_travelMode = value;
317 }
319 SetTravelMode(value);
320 return *this;
321 }
323
325
331 inline const Aws::String& GetTruckRoadType() const { return m_truckRoadType; }
332 inline bool TruckRoadTypeHasBeenSet() const { return m_truckRoadTypeHasBeenSet; }
333 template <typename TruckRoadTypeT = Aws::String>
334 void SetTruckRoadType(TruckRoadTypeT&& value) {
335 m_truckRoadTypeHasBeenSet = true;
336 m_truckRoadType = std::forward<TruckRoadTypeT>(value);
337 }
338 template <typename TruckRoadTypeT = Aws::String>
340 SetTruckRoadType(std::forward<TruckRoadTypeT>(value));
341 return *this;
342 }
344
346
349 inline RouteTruckType GetTruckType() const { return m_truckType; }
350 inline bool TruckTypeHasBeenSet() const { return m_truckTypeHasBeenSet; }
351 inline void SetTruckType(RouteTruckType value) {
352 m_truckTypeHasBeenSet = true;
353 m_truckType = value;
354 }
356 SetTruckType(value);
357 return *this;
358 }
360
362
376 inline const Aws::String& GetTunnelRestrictionCode() const { return m_tunnelRestrictionCode; }
377 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
378 template <typename TunnelRestrictionCodeT = Aws::String>
379 void SetTunnelRestrictionCode(TunnelRestrictionCodeT&& value) {
380 m_tunnelRestrictionCodeHasBeenSet = true;
381 m_tunnelRestrictionCode = std::forward<TunnelRestrictionCodeT>(value);
382 }
383 template <typename TunnelRestrictionCodeT = Aws::String>
384 RouteViolatedConstraints& WithTunnelRestrictionCode(TunnelRestrictionCodeT&& value) {
385 SetTunnelRestrictionCode(std::forward<TunnelRestrictionCodeT>(value));
386 return *this;
387 }
389 private:
390 bool m_allHazardsRestricted{false};
391
392 RouteNoticeDetailRange m_axleCount;
393
394 Aws::Vector<RouteHazardousCargoType> m_hazardousCargos;
395
396 long long m_maxHeight{0};
397
398 long long m_maxKpraLength{0};
399
400 long long m_maxLength{0};
401
402 long long m_maxPayloadCapacity{0};
403
404 RouteWeightConstraint m_maxWeight;
405
406 long long m_maxWeightPerAxle{0};
407
408 WeightPerAxleGroup m_maxWeightPerAxleGroup;
409
410 long long m_maxWidth{0};
411
412 RouteNoticeDetailRange m_occupancy;
413
414 Aws::String m_restrictedTimes;
415
416 bool m_timeDependent{false};
417
418 RouteNoticeDetailRange m_trailerCount;
419
420 bool m_travelMode{false};
421
422 Aws::String m_truckRoadType;
423
425
426 Aws::String m_tunnelRestrictionCode;
427 bool m_allHazardsRestrictedHasBeenSet = false;
428 bool m_axleCountHasBeenSet = false;
429 bool m_hazardousCargosHasBeenSet = false;
430 bool m_maxHeightHasBeenSet = false;
431 bool m_maxKpraLengthHasBeenSet = false;
432 bool m_maxLengthHasBeenSet = false;
433 bool m_maxPayloadCapacityHasBeenSet = false;
434 bool m_maxWeightHasBeenSet = false;
435 bool m_maxWeightPerAxleHasBeenSet = false;
436 bool m_maxWeightPerAxleGroupHasBeenSet = false;
437 bool m_maxWidthHasBeenSet = false;
438 bool m_occupancyHasBeenSet = false;
439 bool m_restrictedTimesHasBeenSet = false;
440 bool m_timeDependentHasBeenSet = false;
441 bool m_trailerCountHasBeenSet = false;
442 bool m_travelModeHasBeenSet = false;
443 bool m_truckRoadTypeHasBeenSet = false;
444 bool m_truckTypeHasBeenSet = false;
445 bool m_tunnelRestrictionCodeHasBeenSet = false;
446};
447
448} // namespace Model
449} // namespace GeoRoutes
450} // 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