AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
IsolineTruckOptions.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/IsolineEngineType.h>
11#include <aws/geo-routes/model/IsolineHazardousCargoType.h>
12#include <aws/geo-routes/model/IsolineTrailerOptions.h>
13#include <aws/geo-routes/model/IsolineTruckType.h>
14#include <aws/geo-routes/model/IsolineVehicleLicensePlate.h>
15#include <aws/geo-routes/model/WeightPerAxleGroup.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
36 public:
37 AWS_GEOROUTES_API IsolineTruckOptions() = default;
38 AWS_GEOROUTES_API IsolineTruckOptions(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline int GetAxleCount() const { return m_axleCount; }
47 inline bool AxleCountHasBeenSet() const { return m_axleCountHasBeenSet; }
48 inline void SetAxleCount(int value) {
49 m_axleCountHasBeenSet = true;
50 m_axleCount = value;
51 }
53 SetAxleCount(value);
54 return *this;
55 }
57
59
62 inline IsolineEngineType GetEngineType() const { return m_engineType; }
63 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
64 inline void SetEngineType(IsolineEngineType value) {
65 m_engineTypeHasBeenSet = true;
66 m_engineType = value;
67 }
69 SetEngineType(value);
70 return *this;
71 }
73
75
79 inline long long GetGrossWeight() const { return m_grossWeight; }
80 inline bool GrossWeightHasBeenSet() const { return m_grossWeightHasBeenSet; }
81 inline void SetGrossWeight(long long value) {
82 m_grossWeightHasBeenSet = true;
83 m_grossWeight = value;
84 }
85 inline IsolineTruckOptions& WithGrossWeight(long long value) {
86 SetGrossWeight(value);
87 return *this;
88 }
90
92
95 inline const Aws::Vector<IsolineHazardousCargoType>& GetHazardousCargos() const { return m_hazardousCargos; }
96 inline bool HazardousCargosHasBeenSet() const { return m_hazardousCargosHasBeenSet; }
97 template <typename HazardousCargosT = Aws::Vector<IsolineHazardousCargoType>>
98 void SetHazardousCargos(HazardousCargosT&& value) {
99 m_hazardousCargosHasBeenSet = true;
100 m_hazardousCargos = std::forward<HazardousCargosT>(value);
101 }
102 template <typename HazardousCargosT = Aws::Vector<IsolineHazardousCargoType>>
103 IsolineTruckOptions& WithHazardousCargos(HazardousCargosT&& value) {
104 SetHazardousCargos(std::forward<HazardousCargosT>(value));
105 return *this;
106 }
108 m_hazardousCargosHasBeenSet = true;
109 m_hazardousCargos.push_back(value);
110 return *this;
111 }
113
115
118 inline long long GetHeight() const { return m_height; }
119 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
120 inline void SetHeight(long long value) {
121 m_heightHasBeenSet = true;
122 m_height = value;
123 }
124 inline IsolineTruckOptions& WithHeight(long long value) {
125 SetHeight(value);
126 return *this;
127 }
129
131
135 inline long long GetHeightAboveFirstAxle() const { return m_heightAboveFirstAxle; }
136 inline bool HeightAboveFirstAxleHasBeenSet() const { return m_heightAboveFirstAxleHasBeenSet; }
137 inline void SetHeightAboveFirstAxle(long long value) {
138 m_heightAboveFirstAxleHasBeenSet = true;
139 m_heightAboveFirstAxle = value;
140 }
143 return *this;
144 }
146
148
152 inline long long GetKpraLength() const { return m_kpraLength; }
153 inline bool KpraLengthHasBeenSet() const { return m_kpraLengthHasBeenSet; }
154 inline void SetKpraLength(long long value) {
155 m_kpraLengthHasBeenSet = true;
156 m_kpraLength = value;
157 }
158 inline IsolineTruckOptions& WithKpraLength(long long value) {
159 SetKpraLength(value);
160 return *this;
161 }
163
165
168 inline long long GetLength() const { return m_length; }
169 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
170 inline void SetLength(long long value) {
171 m_lengthHasBeenSet = true;
172 m_length = value;
173 }
174 inline IsolineTruckOptions& WithLength(long long value) {
175 SetLength(value);
176 return *this;
177 }
179
181
184 inline const IsolineVehicleLicensePlate& GetLicensePlate() const { return m_licensePlate; }
185 inline bool LicensePlateHasBeenSet() const { return m_licensePlateHasBeenSet; }
186 template <typename LicensePlateT = IsolineVehicleLicensePlate>
187 void SetLicensePlate(LicensePlateT&& value) {
188 m_licensePlateHasBeenSet = true;
189 m_licensePlate = std::forward<LicensePlateT>(value);
190 }
191 template <typename LicensePlateT = IsolineVehicleLicensePlate>
192 IsolineTruckOptions& WithLicensePlate(LicensePlateT&& value) {
193 SetLicensePlate(std::forward<LicensePlateT>(value));
194 return *this;
195 }
197
199
203 inline double GetMaxSpeed() const { return m_maxSpeed; }
204 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
205 inline void SetMaxSpeed(double value) {
206 m_maxSpeedHasBeenSet = true;
207 m_maxSpeed = value;
208 }
209 inline IsolineTruckOptions& WithMaxSpeed(double value) {
210 SetMaxSpeed(value);
211 return *this;
212 }
214
216
220 inline int GetOccupancy() const { return m_occupancy; }
221 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
222 inline void SetOccupancy(int value) {
223 m_occupancyHasBeenSet = true;
224 m_occupancy = value;
225 }
227 SetOccupancy(value);
228 return *this;
229 }
231
233
237 inline long long GetPayloadCapacity() const { return m_payloadCapacity; }
238 inline bool PayloadCapacityHasBeenSet() const { return m_payloadCapacityHasBeenSet; }
239 inline void SetPayloadCapacity(long long value) {
240 m_payloadCapacityHasBeenSet = true;
241 m_payloadCapacity = value;
242 }
243 inline IsolineTruckOptions& WithPayloadCapacity(long long value) {
244 SetPayloadCapacity(value);
245 return *this;
246 }
248
250
253 inline int GetTireCount() const { return m_tireCount; }
254 inline bool TireCountHasBeenSet() const { return m_tireCountHasBeenSet; }
255 inline void SetTireCount(int value) {
256 m_tireCountHasBeenSet = true;
257 m_tireCount = value;
258 }
260 SetTireCount(value);
261 return *this;
262 }
264
266
269 inline const IsolineTrailerOptions& GetTrailer() const { return m_trailer; }
270 inline bool TrailerHasBeenSet() const { return m_trailerHasBeenSet; }
271 template <typename TrailerT = IsolineTrailerOptions>
272 void SetTrailer(TrailerT&& value) {
273 m_trailerHasBeenSet = true;
274 m_trailer = std::forward<TrailerT>(value);
275 }
276 template <typename TrailerT = IsolineTrailerOptions>
277 IsolineTruckOptions& WithTrailer(TrailerT&& value) {
278 SetTrailer(std::forward<TrailerT>(value));
279 return *this;
280 }
282
284
287 inline IsolineTruckType GetTruckType() const { return m_truckType; }
288 inline bool TruckTypeHasBeenSet() const { return m_truckTypeHasBeenSet; }
289 inline void SetTruckType(IsolineTruckType value) {
290 m_truckTypeHasBeenSet = true;
291 m_truckType = value;
292 }
294 SetTruckType(value);
295 return *this;
296 }
298
300
314 inline const Aws::String& GetTunnelRestrictionCode() const { return m_tunnelRestrictionCode; }
315 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
316 template <typename TunnelRestrictionCodeT = Aws::String>
317 void SetTunnelRestrictionCode(TunnelRestrictionCodeT&& value) {
318 m_tunnelRestrictionCodeHasBeenSet = true;
319 m_tunnelRestrictionCode = std::forward<TunnelRestrictionCodeT>(value);
320 }
321 template <typename TunnelRestrictionCodeT = Aws::String>
322 IsolineTruckOptions& WithTunnelRestrictionCode(TunnelRestrictionCodeT&& value) {
323 SetTunnelRestrictionCode(std::forward<TunnelRestrictionCodeT>(value));
324 return *this;
325 }
327
329
334 inline long long GetWeightPerAxle() const { return m_weightPerAxle; }
335 inline bool WeightPerAxleHasBeenSet() const { return m_weightPerAxleHasBeenSet; }
336 inline void SetWeightPerAxle(long long value) {
337 m_weightPerAxleHasBeenSet = true;
338 m_weightPerAxle = value;
339 }
340 inline IsolineTruckOptions& WithWeightPerAxle(long long value) {
341 SetWeightPerAxle(value);
342 return *this;
343 }
345
347
352 inline const WeightPerAxleGroup& GetWeightPerAxleGroup() const { return m_weightPerAxleGroup; }
353 inline bool WeightPerAxleGroupHasBeenSet() const { return m_weightPerAxleGroupHasBeenSet; }
354 template <typename WeightPerAxleGroupT = WeightPerAxleGroup>
355 void SetWeightPerAxleGroup(WeightPerAxleGroupT&& value) {
356 m_weightPerAxleGroupHasBeenSet = true;
357 m_weightPerAxleGroup = std::forward<WeightPerAxleGroupT>(value);
358 }
359 template <typename WeightPerAxleGroupT = WeightPerAxleGroup>
360 IsolineTruckOptions& WithWeightPerAxleGroup(WeightPerAxleGroupT&& value) {
361 SetWeightPerAxleGroup(std::forward<WeightPerAxleGroupT>(value));
362 return *this;
363 }
365
367
370 inline long long GetWidth() const { return m_width; }
371 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
372 inline void SetWidth(long long value) {
373 m_widthHasBeenSet = true;
374 m_width = value;
375 }
376 inline IsolineTruckOptions& WithWidth(long long value) {
377 SetWidth(value);
378 return *this;
379 }
381 private:
382 int m_axleCount{0};
383
385
386 long long m_grossWeight{0};
387
389
390 long long m_height{0};
391
392 long long m_heightAboveFirstAxle{0};
393
394 long long m_kpraLength{0};
395
396 long long m_length{0};
397
398 IsolineVehicleLicensePlate m_licensePlate;
399
400 double m_maxSpeed{0.0};
401
402 int m_occupancy{0};
403
404 long long m_payloadCapacity{0};
405
406 int m_tireCount{0};
407
408 IsolineTrailerOptions m_trailer;
409
411
412 Aws::String m_tunnelRestrictionCode;
413
414 long long m_weightPerAxle{0};
415
416 WeightPerAxleGroup m_weightPerAxleGroup;
417
418 long long m_width{0};
419 bool m_axleCountHasBeenSet = false;
420 bool m_engineTypeHasBeenSet = false;
421 bool m_grossWeightHasBeenSet = false;
422 bool m_hazardousCargosHasBeenSet = false;
423 bool m_heightHasBeenSet = false;
424 bool m_heightAboveFirstAxleHasBeenSet = false;
425 bool m_kpraLengthHasBeenSet = false;
426 bool m_lengthHasBeenSet = false;
427 bool m_licensePlateHasBeenSet = false;
428 bool m_maxSpeedHasBeenSet = false;
429 bool m_occupancyHasBeenSet = false;
430 bool m_payloadCapacityHasBeenSet = false;
431 bool m_tireCountHasBeenSet = false;
432 bool m_trailerHasBeenSet = false;
433 bool m_truckTypeHasBeenSet = false;
434 bool m_tunnelRestrictionCodeHasBeenSet = false;
435 bool m_weightPerAxleHasBeenSet = false;
436 bool m_weightPerAxleGroupHasBeenSet = false;
437 bool m_widthHasBeenSet = false;
438};
439
440} // namespace Model
441} // namespace GeoRoutes
442} // namespace Aws
const WeightPerAxleGroup & GetWeightPerAxleGroup() const
const IsolineTrailerOptions & GetTrailer() const
IsolineTruckOptions & WithPayloadCapacity(long long value)
void SetTunnelRestrictionCode(TunnelRestrictionCodeT &&value)
IsolineTruckOptions & WithTireCount(int value)
IsolineTruckOptions & WithTruckType(IsolineTruckType value)
IsolineTruckOptions & WithTrailer(TrailerT &&value)
IsolineTruckOptions & WithHazardousCargos(HazardousCargosT &&value)
IsolineTruckOptions & WithEngineType(IsolineEngineType value)
IsolineTruckOptions & WithWeightPerAxleGroup(WeightPerAxleGroupT &&value)
IsolineTruckOptions & WithMaxSpeed(double value)
IsolineTruckOptions & WithGrossWeight(long long value)
AWS_GEOROUTES_API IsolineTruckOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTunnelRestrictionCode() const
void SetHazardousCargos(HazardousCargosT &&value)
IsolineTruckOptions & AddHazardousCargos(IsolineHazardousCargoType value)
void SetWeightPerAxleGroup(WeightPerAxleGroupT &&value)
AWS_GEOROUTES_API IsolineTruckOptions(Aws::Utils::Json::JsonView jsonValue)
IsolineTruckOptions & WithLicensePlate(LicensePlateT &&value)
IsolineTruckOptions & WithHeight(long long value)
IsolineTruckOptions & WithWeightPerAxle(long long value)
IsolineTruckOptions & WithTunnelRestrictionCode(TunnelRestrictionCodeT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
IsolineTruckOptions & WithAxleCount(int value)
IsolineTruckOptions & WithKpraLength(long long value)
IsolineTruckOptions & WithLength(long long value)
const IsolineVehicleLicensePlate & GetLicensePlate() const
AWS_GEOROUTES_API IsolineTruckOptions()=default
const Aws::Vector< IsolineHazardousCargoType > & GetHazardousCargos() const
IsolineTruckOptions & WithHeightAboveFirstAxle(long long value)
IsolineTruckOptions & WithOccupancy(int value)
IsolineTruckOptions & WithWidth(long long value)
void SetEngineType(IsolineEngineType 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