AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAxleCount(const RouteNoticeDetailRange& value) { m_axleCountHasBeenSet = true; m_axleCount = value; }
65 inline void SetAxleCount(RouteNoticeDetailRange&& value) { m_axleCountHasBeenSet = true; m_axleCount = std::move(value); }
66 inline RouteViolatedConstraints& WithAxleCount(const RouteNoticeDetailRange& value) { SetAxleCount(value); return *this;}
67 inline RouteViolatedConstraints& WithAxleCount(RouteNoticeDetailRange&& value) { SetAxleCount(std::move(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 inline void SetHazardousCargos(const Aws::Vector<RouteHazardousCargoType>& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = value; }
77 inline void SetHazardousCargos(Aws::Vector<RouteHazardousCargoType>&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = std::move(value); }
80 inline RouteViolatedConstraints& AddHazardousCargos(const RouteHazardousCargoType& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(value); return *this; }
81 inline RouteViolatedConstraints& AddHazardousCargos(RouteHazardousCargoType&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(std::move(value)); return *this; }
83
85
88 inline long long GetMaxHeight() const{ return m_maxHeight; }
89 inline bool MaxHeightHasBeenSet() const { return m_maxHeightHasBeenSet; }
90 inline void SetMaxHeight(long long value) { m_maxHeightHasBeenSet = true; m_maxHeight = value; }
91 inline RouteViolatedConstraints& WithMaxHeight(long long value) { SetMaxHeight(value); return *this;}
93
95
99 inline long long GetMaxKpraLength() const{ return m_maxKpraLength; }
100 inline bool MaxKpraLengthHasBeenSet() const { return m_maxKpraLengthHasBeenSet; }
101 inline void SetMaxKpraLength(long long value) { m_maxKpraLengthHasBeenSet = true; m_maxKpraLength = value; }
102 inline RouteViolatedConstraints& WithMaxKpraLength(long long value) { SetMaxKpraLength(value); return *this;}
104
106
109 inline long long GetMaxLength() const{ return m_maxLength; }
110 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
111 inline void SetMaxLength(long long value) { m_maxLengthHasBeenSet = true; m_maxLength = value; }
112 inline RouteViolatedConstraints& WithMaxLength(long long value) { SetMaxLength(value); return *this;}
114
116
120 inline long long GetMaxPayloadCapacity() const{ return m_maxPayloadCapacity; }
121 inline bool MaxPayloadCapacityHasBeenSet() const { return m_maxPayloadCapacityHasBeenSet; }
122 inline void SetMaxPayloadCapacity(long long value) { m_maxPayloadCapacityHasBeenSet = true; m_maxPayloadCapacity = value; }
123 inline RouteViolatedConstraints& WithMaxPayloadCapacity(long long value) { SetMaxPayloadCapacity(value); return *this;}
125
127
131 inline const RouteWeightConstraint& GetMaxWeight() const{ return m_maxWeight; }
132 inline bool MaxWeightHasBeenSet() const { return m_maxWeightHasBeenSet; }
133 inline void SetMaxWeight(const RouteWeightConstraint& value) { m_maxWeightHasBeenSet = true; m_maxWeight = value; }
134 inline void SetMaxWeight(RouteWeightConstraint&& value) { m_maxWeightHasBeenSet = true; m_maxWeight = std::move(value); }
135 inline RouteViolatedConstraints& WithMaxWeight(const RouteWeightConstraint& value) { SetMaxWeight(value); return *this;}
136 inline RouteViolatedConstraints& WithMaxWeight(RouteWeightConstraint&& value) { SetMaxWeight(std::move(value)); return *this;}
138
140
144 inline long long GetMaxWeightPerAxle() const{ return m_maxWeightPerAxle; }
145 inline bool MaxWeightPerAxleHasBeenSet() const { return m_maxWeightPerAxleHasBeenSet; }
146 inline void SetMaxWeightPerAxle(long long value) { m_maxWeightPerAxleHasBeenSet = true; m_maxWeightPerAxle = value; }
147 inline RouteViolatedConstraints& WithMaxWeightPerAxle(long long value) { SetMaxWeightPerAxle(value); return *this;}
149
151
155 inline const WeightPerAxleGroup& GetMaxWeightPerAxleGroup() const{ return m_maxWeightPerAxleGroup; }
156 inline bool MaxWeightPerAxleGroupHasBeenSet() const { return m_maxWeightPerAxleGroupHasBeenSet; }
157 inline void SetMaxWeightPerAxleGroup(const WeightPerAxleGroup& value) { m_maxWeightPerAxleGroupHasBeenSet = true; m_maxWeightPerAxleGroup = value; }
158 inline void SetMaxWeightPerAxleGroup(WeightPerAxleGroup&& value) { m_maxWeightPerAxleGroupHasBeenSet = true; m_maxWeightPerAxleGroup = std::move(value); }
162
164
167 inline long long GetMaxWidth() const{ return m_maxWidth; }
168 inline bool MaxWidthHasBeenSet() const { return m_maxWidthHasBeenSet; }
169 inline void SetMaxWidth(long long value) { m_maxWidthHasBeenSet = true; m_maxWidth = value; }
170 inline RouteViolatedConstraints& WithMaxWidth(long long value) { SetMaxWidth(value); return *this;}
172
174
178 inline const RouteNoticeDetailRange& GetOccupancy() const{ return m_occupancy; }
179 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
180 inline void SetOccupancy(const RouteNoticeDetailRange& value) { m_occupancyHasBeenSet = true; m_occupancy = value; }
181 inline void SetOccupancy(RouteNoticeDetailRange&& value) { m_occupancyHasBeenSet = true; m_occupancy = std::move(value); }
182 inline RouteViolatedConstraints& WithOccupancy(const RouteNoticeDetailRange& value) { SetOccupancy(value); return *this;}
183 inline RouteViolatedConstraints& WithOccupancy(RouteNoticeDetailRange&& value) { SetOccupancy(std::move(value)); return *this;}
185
187
190 inline const Aws::String& GetRestrictedTimes() const{ return m_restrictedTimes; }
191 inline bool RestrictedTimesHasBeenSet() const { return m_restrictedTimesHasBeenSet; }
192 inline void SetRestrictedTimes(const Aws::String& value) { m_restrictedTimesHasBeenSet = true; m_restrictedTimes = value; }
193 inline void SetRestrictedTimes(Aws::String&& value) { m_restrictedTimesHasBeenSet = true; m_restrictedTimes = std::move(value); }
194 inline void SetRestrictedTimes(const char* value) { m_restrictedTimesHasBeenSet = true; m_restrictedTimes.assign(value); }
195 inline RouteViolatedConstraints& WithRestrictedTimes(const Aws::String& value) { SetRestrictedTimes(value); return *this;}
196 inline RouteViolatedConstraints& WithRestrictedTimes(Aws::String&& value) { SetRestrictedTimes(std::move(value)); return *this;}
197 inline RouteViolatedConstraints& WithRestrictedTimes(const char* value) { SetRestrictedTimes(value); return *this;}
199
201
204 inline bool GetTimeDependent() const{ return m_timeDependent; }
205 inline bool TimeDependentHasBeenSet() const { return m_timeDependentHasBeenSet; }
206 inline void SetTimeDependent(bool value) { m_timeDependentHasBeenSet = true; m_timeDependent = value; }
207 inline RouteViolatedConstraints& WithTimeDependent(bool value) { SetTimeDependent(value); return *this;}
209
211
215 inline const RouteNoticeDetailRange& GetTrailerCount() const{ return m_trailerCount; }
216 inline bool TrailerCountHasBeenSet() const { return m_trailerCountHasBeenSet; }
217 inline void SetTrailerCount(const RouteNoticeDetailRange& value) { m_trailerCountHasBeenSet = true; m_trailerCount = value; }
218 inline void SetTrailerCount(RouteNoticeDetailRange&& value) { m_trailerCountHasBeenSet = true; m_trailerCount = std::move(value); }
220 inline RouteViolatedConstraints& WithTrailerCount(RouteNoticeDetailRange&& value) { SetTrailerCount(std::move(value)); return *this;}
222
224
227 inline bool GetTravelMode() const{ return m_travelMode; }
228 inline bool TravelModeHasBeenSet() const { return m_travelModeHasBeenSet; }
229 inline void SetTravelMode(bool value) { m_travelModeHasBeenSet = true; m_travelMode = value; }
230 inline RouteViolatedConstraints& WithTravelMode(bool value) { SetTravelMode(value); return *this;}
232
234
240 inline const Aws::String& GetTruckRoadType() const{ return m_truckRoadType; }
241 inline bool TruckRoadTypeHasBeenSet() const { return m_truckRoadTypeHasBeenSet; }
242 inline void SetTruckRoadType(const Aws::String& value) { m_truckRoadTypeHasBeenSet = true; m_truckRoadType = value; }
243 inline void SetTruckRoadType(Aws::String&& value) { m_truckRoadTypeHasBeenSet = true; m_truckRoadType = std::move(value); }
244 inline void SetTruckRoadType(const char* value) { m_truckRoadTypeHasBeenSet = true; m_truckRoadType.assign(value); }
245 inline RouteViolatedConstraints& WithTruckRoadType(const Aws::String& value) { SetTruckRoadType(value); return *this;}
246 inline RouteViolatedConstraints& WithTruckRoadType(Aws::String&& value) { SetTruckRoadType(std::move(value)); return *this;}
247 inline RouteViolatedConstraints& WithTruckRoadType(const char* value) { SetTruckRoadType(value); return *this;}
249
251
254 inline const RouteTruckType& GetTruckType() const{ return m_truckType; }
255 inline bool TruckTypeHasBeenSet() const { return m_truckTypeHasBeenSet; }
256 inline void SetTruckType(const RouteTruckType& value) { m_truckTypeHasBeenSet = true; m_truckType = value; }
257 inline void SetTruckType(RouteTruckType&& value) { m_truckTypeHasBeenSet = true; m_truckType = std::move(value); }
258 inline RouteViolatedConstraints& WithTruckType(const RouteTruckType& value) { SetTruckType(value); return *this;}
259 inline RouteViolatedConstraints& WithTruckType(RouteTruckType&& value) { SetTruckType(std::move(value)); return *this;}
261
263
277 inline const Aws::String& GetTunnelRestrictionCode() const{ return m_tunnelRestrictionCode; }
278 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
279 inline void SetTunnelRestrictionCode(const Aws::String& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = value; }
280 inline void SetTunnelRestrictionCode(Aws::String&& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = std::move(value); }
281 inline void SetTunnelRestrictionCode(const char* value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode.assign(value); }
284 inline RouteViolatedConstraints& WithTunnelRestrictionCode(const char* value) { SetTunnelRestrictionCode(value); return *this;}
286 private:
287
288 bool m_allHazardsRestricted;
289 bool m_allHazardsRestrictedHasBeenSet = false;
290
291 RouteNoticeDetailRange m_axleCount;
292 bool m_axleCountHasBeenSet = false;
293
294 Aws::Vector<RouteHazardousCargoType> m_hazardousCargos;
295 bool m_hazardousCargosHasBeenSet = false;
296
297 long long m_maxHeight;
298 bool m_maxHeightHasBeenSet = false;
299
300 long long m_maxKpraLength;
301 bool m_maxKpraLengthHasBeenSet = false;
302
303 long long m_maxLength;
304 bool m_maxLengthHasBeenSet = false;
305
306 long long m_maxPayloadCapacity;
307 bool m_maxPayloadCapacityHasBeenSet = false;
308
309 RouteWeightConstraint m_maxWeight;
310 bool m_maxWeightHasBeenSet = false;
311
312 long long m_maxWeightPerAxle;
313 bool m_maxWeightPerAxleHasBeenSet = false;
314
315 WeightPerAxleGroup m_maxWeightPerAxleGroup;
316 bool m_maxWeightPerAxleGroupHasBeenSet = false;
317
318 long long m_maxWidth;
319 bool m_maxWidthHasBeenSet = false;
320
321 RouteNoticeDetailRange m_occupancy;
322 bool m_occupancyHasBeenSet = false;
323
324 Aws::String m_restrictedTimes;
325 bool m_restrictedTimesHasBeenSet = false;
326
327 bool m_timeDependent;
328 bool m_timeDependentHasBeenSet = false;
329
330 RouteNoticeDetailRange m_trailerCount;
331 bool m_trailerCountHasBeenSet = false;
332
333 bool m_travelMode;
334 bool m_travelModeHasBeenSet = false;
335
336 Aws::String m_truckRoadType;
337 bool m_truckRoadTypeHasBeenSet = false;
338
339 RouteTruckType m_truckType;
340 bool m_truckTypeHasBeenSet = false;
341
342 Aws::String m_tunnelRestrictionCode;
343 bool m_tunnelRestrictionCodeHasBeenSet = false;
344 };
345
346} // namespace Model
347} // namespace GeoRoutes
348} // namespace Aws
RouteViolatedConstraints & WithMaxWeight(RouteWeightConstraint &&value)
RouteViolatedConstraints & WithTrailerCount(RouteNoticeDetailRange &&value)
void SetTrailerCount(const RouteNoticeDetailRange &value)
RouteViolatedConstraints & WithTruckRoadType(const char *value)
const RouteNoticeDetailRange & GetTrailerCount() const
RouteViolatedConstraints & WithMaxWidth(long long value)
RouteViolatedConstraints & WithTunnelRestrictionCode(const Aws::String &value)
RouteViolatedConstraints & WithAllHazardsRestricted(bool value)
RouteViolatedConstraints & WithMaxKpraLength(long long value)
RouteViolatedConstraints & WithTunnelRestrictionCode(const char *value)
RouteViolatedConstraints & WithMaxPayloadCapacity(long long value)
void SetTrailerCount(RouteNoticeDetailRange &&value)
RouteViolatedConstraints & WithMaxWeightPerAxleGroup(WeightPerAxleGroup &&value)
void SetMaxWeight(const RouteWeightConstraint &value)
const RouteNoticeDetailRange & GetOccupancy() const
RouteViolatedConstraints & WithTravelMode(bool value)
RouteViolatedConstraints & WithMaxHeight(long long value)
RouteViolatedConstraints & WithTruckType(RouteTruckType &&value)
RouteViolatedConstraints & WithMaxWeightPerAxle(long long value)
RouteViolatedConstraints & WithAxleCount(RouteNoticeDetailRange &&value)
RouteViolatedConstraints & WithRestrictedTimes(Aws::String &&value)
void SetAxleCount(RouteNoticeDetailRange &&value)
const RouteWeightConstraint & GetMaxWeight() const
void SetHazardousCargos(const Aws::Vector< RouteHazardousCargoType > &value)
RouteViolatedConstraints & WithHazardousCargos(const Aws::Vector< RouteHazardousCargoType > &value)
RouteViolatedConstraints & WithTimeDependent(bool value)
void SetMaxWeightPerAxleGroup(const WeightPerAxleGroup &value)
RouteViolatedConstraints & WithAxleCount(const RouteNoticeDetailRange &value)
RouteViolatedConstraints & WithTruckRoadType(Aws::String &&value)
RouteViolatedConstraints & WithRestrictedTimes(const char *value)
const WeightPerAxleGroup & GetMaxWeightPerAxleGroup() const
const RouteNoticeDetailRange & GetAxleCount() const
RouteViolatedConstraints & AddHazardousCargos(const RouteHazardousCargoType &value)
AWS_GEOROUTES_API RouteViolatedConstraints(Aws::Utils::Json::JsonView jsonValue)
RouteViolatedConstraints & WithTunnelRestrictionCode(Aws::String &&value)
RouteViolatedConstraints & WithMaxWeight(const RouteWeightConstraint &value)
AWS_GEOROUTES_API RouteViolatedConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAxleCount(const RouteNoticeDetailRange &value)
RouteViolatedConstraints & WithMaxLength(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHazardousCargos(Aws::Vector< RouteHazardousCargoType > &&value)
RouteViolatedConstraints & WithOccupancy(RouteNoticeDetailRange &&value)
RouteViolatedConstraints & WithMaxWeightPerAxleGroup(const WeightPerAxleGroup &value)
const Aws::Vector< RouteHazardousCargoType > & GetHazardousCargos() const
RouteViolatedConstraints & WithTruckType(const RouteTruckType &value)
RouteViolatedConstraints & AddHazardousCargos(RouteHazardousCargoType &&value)
RouteViolatedConstraints & WithRestrictedTimes(const Aws::String &value)
void SetOccupancy(const RouteNoticeDetailRange &value)
RouteViolatedConstraints & WithTrailerCount(const RouteNoticeDetailRange &value)
RouteViolatedConstraints & WithTruckRoadType(const Aws::String &value)
RouteViolatedConstraints & WithHazardousCargos(Aws::Vector< RouteHazardousCargoType > &&value)
RouteViolatedConstraints & WithOccupancy(const RouteNoticeDetailRange &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