AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
38 public:
39 AWS_GEOROUTES_API IsolineTruckOptions() = default;
40 AWS_GEOROUTES_API IsolineTruckOptions(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
49 inline int GetAxleCount() const { return m_axleCount; }
50 inline bool AxleCountHasBeenSet() const { return m_axleCountHasBeenSet; }
51 inline void SetAxleCount(int value) {
52 m_axleCountHasBeenSet = true;
53 m_axleCount = value;
54 }
56 SetAxleCount(value);
57 return *this;
58 }
60
62
70 inline IsolineEngineType GetEngineType() const { return m_engineType; }
71 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
72 inline void SetEngineType(IsolineEngineType value) {
73 m_engineTypeHasBeenSet = true;
74 m_engineType = value;
75 }
77 SetEngineType(value);
78 return *this;
79 }
81
83
89 inline long long GetGrossWeight() const { return m_grossWeight; }
90 inline bool GrossWeightHasBeenSet() const { return m_grossWeightHasBeenSet; }
91 inline void SetGrossWeight(long long value) {
92 m_grossWeightHasBeenSet = true;
93 m_grossWeight = value;
94 }
95 inline IsolineTruckOptions& WithGrossWeight(long long value) {
96 SetGrossWeight(value);
97 return *this;
98 }
100
102
119 inline const Aws::Vector<IsolineHazardousCargoType>& GetHazardousCargos() const { return m_hazardousCargos; }
120 inline bool HazardousCargosHasBeenSet() const { return m_hazardousCargosHasBeenSet; }
121 template <typename HazardousCargosT = Aws::Vector<IsolineHazardousCargoType>>
122 void SetHazardousCargos(HazardousCargosT&& value) {
123 m_hazardousCargosHasBeenSet = true;
124 m_hazardousCargos = std::forward<HazardousCargosT>(value);
125 }
126 template <typename HazardousCargosT = Aws::Vector<IsolineHazardousCargoType>>
127 IsolineTruckOptions& WithHazardousCargos(HazardousCargosT&& value) {
128 SetHazardousCargos(std::forward<HazardousCargosT>(value));
129 return *this;
130 }
132 m_hazardousCargosHasBeenSet = true;
133 m_hazardousCargos.push_back(value);
134 return *this;
135 }
137
139
143 inline long long GetHeight() const { return m_height; }
144 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
145 inline void SetHeight(long long value) {
146 m_heightHasBeenSet = true;
147 m_height = value;
148 }
149 inline IsolineTruckOptions& WithHeight(long long value) {
150 SetHeight(value);
151 return *this;
152 }
154
156
161 inline long long GetHeightAboveFirstAxle() const { return m_heightAboveFirstAxle; }
162 inline bool HeightAboveFirstAxleHasBeenSet() const { return m_heightAboveFirstAxleHasBeenSet; }
163 inline void SetHeightAboveFirstAxle(long long value) {
164 m_heightAboveFirstAxleHasBeenSet = true;
165 m_heightAboveFirstAxle = value;
166 }
169 return *this;
170 }
172
174
179 inline long long GetKpraLength() const { return m_kpraLength; }
180 inline bool KpraLengthHasBeenSet() const { return m_kpraLengthHasBeenSet; }
181 inline void SetKpraLength(long long value) {
182 m_kpraLengthHasBeenSet = true;
183 m_kpraLength = value;
184 }
185 inline IsolineTruckOptions& WithKpraLength(long long value) {
186 SetKpraLength(value);
187 return *this;
188 }
190
192
197 inline long long GetLength() const { return m_length; }
198 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
199 inline void SetLength(long long value) {
200 m_lengthHasBeenSet = true;
201 m_length = value;
202 }
203 inline IsolineTruckOptions& WithLength(long long value) {
204 SetLength(value);
205 return *this;
206 }
208
210
214 inline const IsolineVehicleLicensePlate& GetLicensePlate() const { return m_licensePlate; }
215 inline bool LicensePlateHasBeenSet() const { return m_licensePlateHasBeenSet; }
216 template <typename LicensePlateT = IsolineVehicleLicensePlate>
217 void SetLicensePlate(LicensePlateT&& value) {
218 m_licensePlateHasBeenSet = true;
219 m_licensePlate = std::forward<LicensePlateT>(value);
220 }
221 template <typename LicensePlateT = IsolineVehicleLicensePlate>
222 IsolineTruckOptions& WithLicensePlate(LicensePlateT&& value) {
223 SetLicensePlate(std::forward<LicensePlateT>(value));
224 return *this;
225 }
227
229
236 inline double GetMaxSpeed() const { return m_maxSpeed; }
237 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
238 inline void SetMaxSpeed(double value) {
239 m_maxSpeedHasBeenSet = true;
240 m_maxSpeed = value;
241 }
242 inline IsolineTruckOptions& WithMaxSpeed(double value) {
243 SetMaxSpeed(value);
244 return *this;
245 }
247
249
254 inline int GetOccupancy() const { return m_occupancy; }
255 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
256 inline void SetOccupancy(int value) {
257 m_occupancyHasBeenSet = true;
258 m_occupancy = value;
259 }
261 SetOccupancy(value);
262 return *this;
263 }
265
267
271 inline long long GetPayloadCapacity() const { return m_payloadCapacity; }
272 inline bool PayloadCapacityHasBeenSet() const { return m_payloadCapacityHasBeenSet; }
273 inline void SetPayloadCapacity(long long value) {
274 m_payloadCapacityHasBeenSet = true;
275 m_payloadCapacity = value;
276 }
277 inline IsolineTruckOptions& WithPayloadCapacity(long long value) {
278 SetPayloadCapacity(value);
279 return *this;
280 }
282
284
287 inline int GetTireCount() const { return m_tireCount; }
288 inline bool TireCountHasBeenSet() const { return m_tireCountHasBeenSet; }
289 inline void SetTireCount(int value) {
290 m_tireCountHasBeenSet = true;
291 m_tireCount = value;
292 }
294 SetTireCount(value);
295 return *this;
296 }
298
300
306 inline const IsolineTrailerOptions& GetTrailer() const { return m_trailer; }
307 inline bool TrailerHasBeenSet() const { return m_trailerHasBeenSet; }
308 template <typename TrailerT = IsolineTrailerOptions>
309 void SetTrailer(TrailerT&& value) {
310 m_trailerHasBeenSet = true;
311 m_trailer = std::forward<TrailerT>(value);
312 }
313 template <typename TrailerT = IsolineTrailerOptions>
314 IsolineTruckOptions& WithTrailer(TrailerT&& value) {
315 SetTrailer(std::forward<TrailerT>(value));
316 return *this;
317 }
319
321
326 inline IsolineTruckType GetTruckType() const { return m_truckType; }
327 inline bool TruckTypeHasBeenSet() const { return m_truckTypeHasBeenSet; }
328 inline void SetTruckType(IsolineTruckType value) {
329 m_truckTypeHasBeenSet = true;
330 m_truckType = value;
331 }
333 SetTruckType(value);
334 return *this;
335 }
337
339
353 inline const Aws::String& GetTunnelRestrictionCode() const { return m_tunnelRestrictionCode; }
354 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
355 template <typename TunnelRestrictionCodeT = Aws::String>
356 void SetTunnelRestrictionCode(TunnelRestrictionCodeT&& value) {
357 m_tunnelRestrictionCodeHasBeenSet = true;
358 m_tunnelRestrictionCode = std::forward<TunnelRestrictionCodeT>(value);
359 }
360 template <typename TunnelRestrictionCodeT = Aws::String>
361 IsolineTruckOptions& WithTunnelRestrictionCode(TunnelRestrictionCodeT&& value) {
362 SetTunnelRestrictionCode(std::forward<TunnelRestrictionCodeT>(value));
363 return *this;
364 }
366
368
374 inline long long GetWeightPerAxle() const { return m_weightPerAxle; }
375 inline bool WeightPerAxleHasBeenSet() const { return m_weightPerAxleHasBeenSet; }
376 inline void SetWeightPerAxle(long long value) {
377 m_weightPerAxleHasBeenSet = true;
378 m_weightPerAxle = value;
379 }
380 inline IsolineTruckOptions& WithWeightPerAxle(long long value) {
381 SetWeightPerAxle(value);
382 return *this;
383 }
385
387
392 inline const WeightPerAxleGroup& GetWeightPerAxleGroup() const { return m_weightPerAxleGroup; }
393 inline bool WeightPerAxleGroupHasBeenSet() const { return m_weightPerAxleGroupHasBeenSet; }
394 template <typename WeightPerAxleGroupT = WeightPerAxleGroup>
395 void SetWeightPerAxleGroup(WeightPerAxleGroupT&& value) {
396 m_weightPerAxleGroupHasBeenSet = true;
397 m_weightPerAxleGroup = std::forward<WeightPerAxleGroupT>(value);
398 }
399 template <typename WeightPerAxleGroupT = WeightPerAxleGroup>
400 IsolineTruckOptions& WithWeightPerAxleGroup(WeightPerAxleGroupT&& value) {
401 SetWeightPerAxleGroup(std::forward<WeightPerAxleGroupT>(value));
402 return *this;
403 }
405
407
411 inline long long GetWidth() const { return m_width; }
412 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
413 inline void SetWidth(long long value) {
414 m_widthHasBeenSet = true;
415 m_width = value;
416 }
417 inline IsolineTruckOptions& WithWidth(long long value) {
418 SetWidth(value);
419 return *this;
420 }
422 private:
423 int m_axleCount{0};
424
426
427 long long m_grossWeight{0};
428
430
431 long long m_height{0};
432
433 long long m_heightAboveFirstAxle{0};
434
435 long long m_kpraLength{0};
436
437 long long m_length{0};
438
439 IsolineVehicleLicensePlate m_licensePlate;
440
441 double m_maxSpeed{0.0};
442
443 int m_occupancy{0};
444
445 long long m_payloadCapacity{0};
446
447 int m_tireCount{0};
448
449 IsolineTrailerOptions m_trailer;
450
452
453 Aws::String m_tunnelRestrictionCode;
454
455 long long m_weightPerAxle{0};
456
457 WeightPerAxleGroup m_weightPerAxleGroup;
458
459 long long m_width{0};
460 bool m_axleCountHasBeenSet = false;
461 bool m_engineTypeHasBeenSet = false;
462 bool m_grossWeightHasBeenSet = false;
463 bool m_hazardousCargosHasBeenSet = false;
464 bool m_heightHasBeenSet = false;
465 bool m_heightAboveFirstAxleHasBeenSet = false;
466 bool m_kpraLengthHasBeenSet = false;
467 bool m_lengthHasBeenSet = false;
468 bool m_licensePlateHasBeenSet = false;
469 bool m_maxSpeedHasBeenSet = false;
470 bool m_occupancyHasBeenSet = false;
471 bool m_payloadCapacityHasBeenSet = false;
472 bool m_tireCountHasBeenSet = false;
473 bool m_trailerHasBeenSet = false;
474 bool m_truckTypeHasBeenSet = false;
475 bool m_tunnelRestrictionCodeHasBeenSet = false;
476 bool m_weightPerAxleHasBeenSet = false;
477 bool m_weightPerAxleGroupHasBeenSet = false;
478 bool m_widthHasBeenSet = false;
479};
480
481} // namespace Model
482} // namespace GeoRoutes
483} // 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