AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IsolineTruckOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/IsolineEngineType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/geo-routes/model/IsolineVehicleLicensePlate.h>
11#include <aws/geo-routes/model/IsolineTrailerOptions.h>
12#include <aws/geo-routes/model/IsolineTruckType.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/geo-routes/model/WeightPerAxleGroup.h>
15#include <aws/geo-routes/model/IsolineHazardousCargoType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace GeoRoutes
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_GEOROUTES_API IsolineTruckOptions() = default;
43 AWS_GEOROUTES_API IsolineTruckOptions(Aws::Utils::Json::JsonView jsonValue);
45 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline int GetAxleCount() const { return m_axleCount; }
53 inline bool AxleCountHasBeenSet() const { return m_axleCountHasBeenSet; }
54 inline void SetAxleCount(int value) { m_axleCountHasBeenSet = true; m_axleCount = value; }
55 inline IsolineTruckOptions& WithAxleCount(int value) { SetAxleCount(value); return *this;}
57
59
62 inline IsolineEngineType GetEngineType() const { return m_engineType; }
63 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
64 inline void SetEngineType(IsolineEngineType value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
65 inline IsolineTruckOptions& WithEngineType(IsolineEngineType value) { SetEngineType(value); return *this;}
67
69
73 inline long long GetGrossWeight() const { return m_grossWeight; }
74 inline bool GrossWeightHasBeenSet() const { return m_grossWeightHasBeenSet; }
75 inline void SetGrossWeight(long long value) { m_grossWeightHasBeenSet = true; m_grossWeight = value; }
76 inline IsolineTruckOptions& WithGrossWeight(long long value) { SetGrossWeight(value); return *this;}
78
80
83 inline const Aws::Vector<IsolineHazardousCargoType>& GetHazardousCargos() const { return m_hazardousCargos; }
84 inline bool HazardousCargosHasBeenSet() const { return m_hazardousCargosHasBeenSet; }
85 template<typename HazardousCargosT = Aws::Vector<IsolineHazardousCargoType>>
86 void SetHazardousCargos(HazardousCargosT&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = std::forward<HazardousCargosT>(value); }
87 template<typename HazardousCargosT = Aws::Vector<IsolineHazardousCargoType>>
88 IsolineTruckOptions& WithHazardousCargos(HazardousCargosT&& value) { SetHazardousCargos(std::forward<HazardousCargosT>(value)); return *this;}
89 inline IsolineTruckOptions& AddHazardousCargos(IsolineHazardousCargoType value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(value); return *this; }
91
93
96 inline long long GetHeight() const { return m_height; }
97 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
98 inline void SetHeight(long long value) { m_heightHasBeenSet = true; m_height = value; }
99 inline IsolineTruckOptions& WithHeight(long long value) { SetHeight(value); return *this;}
101
103
107 inline long long GetHeightAboveFirstAxle() const { return m_heightAboveFirstAxle; }
108 inline bool HeightAboveFirstAxleHasBeenSet() const { return m_heightAboveFirstAxleHasBeenSet; }
109 inline void SetHeightAboveFirstAxle(long long value) { m_heightAboveFirstAxleHasBeenSet = true; m_heightAboveFirstAxle = value; }
110 inline IsolineTruckOptions& WithHeightAboveFirstAxle(long long value) { SetHeightAboveFirstAxle(value); return *this;}
112
114
118 inline long long GetKpraLength() const { return m_kpraLength; }
119 inline bool KpraLengthHasBeenSet() const { return m_kpraLengthHasBeenSet; }
120 inline void SetKpraLength(long long value) { m_kpraLengthHasBeenSet = true; m_kpraLength = value; }
121 inline IsolineTruckOptions& WithKpraLength(long long value) { SetKpraLength(value); return *this;}
123
125
128 inline long long GetLength() const { return m_length; }
129 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
130 inline void SetLength(long long value) { m_lengthHasBeenSet = true; m_length = value; }
131 inline IsolineTruckOptions& WithLength(long long value) { SetLength(value); return *this;}
133
135
138 inline const IsolineVehicleLicensePlate& GetLicensePlate() const { return m_licensePlate; }
139 inline bool LicensePlateHasBeenSet() const { return m_licensePlateHasBeenSet; }
140 template<typename LicensePlateT = IsolineVehicleLicensePlate>
141 void SetLicensePlate(LicensePlateT&& value) { m_licensePlateHasBeenSet = true; m_licensePlate = std::forward<LicensePlateT>(value); }
142 template<typename LicensePlateT = IsolineVehicleLicensePlate>
143 IsolineTruckOptions& WithLicensePlate(LicensePlateT&& value) { SetLicensePlate(std::forward<LicensePlateT>(value)); return *this;}
145
147
151 inline double GetMaxSpeed() const { return m_maxSpeed; }
152 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
153 inline void SetMaxSpeed(double value) { m_maxSpeedHasBeenSet = true; m_maxSpeed = value; }
154 inline IsolineTruckOptions& WithMaxSpeed(double value) { SetMaxSpeed(value); return *this;}
156
158
162 inline int GetOccupancy() const { return m_occupancy; }
163 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
164 inline void SetOccupancy(int value) { m_occupancyHasBeenSet = true; m_occupancy = value; }
165 inline IsolineTruckOptions& WithOccupancy(int value) { SetOccupancy(value); return *this;}
167
169
173 inline long long GetPayloadCapacity() const { return m_payloadCapacity; }
174 inline bool PayloadCapacityHasBeenSet() const { return m_payloadCapacityHasBeenSet; }
175 inline void SetPayloadCapacity(long long value) { m_payloadCapacityHasBeenSet = true; m_payloadCapacity = value; }
176 inline IsolineTruckOptions& WithPayloadCapacity(long long value) { SetPayloadCapacity(value); return *this;}
178
180
183 inline int GetTireCount() const { return m_tireCount; }
184 inline bool TireCountHasBeenSet() const { return m_tireCountHasBeenSet; }
185 inline void SetTireCount(int value) { m_tireCountHasBeenSet = true; m_tireCount = value; }
186 inline IsolineTruckOptions& WithTireCount(int value) { SetTireCount(value); return *this;}
188
190
193 inline const IsolineTrailerOptions& GetTrailer() const { return m_trailer; }
194 inline bool TrailerHasBeenSet() const { return m_trailerHasBeenSet; }
195 template<typename TrailerT = IsolineTrailerOptions>
196 void SetTrailer(TrailerT&& value) { m_trailerHasBeenSet = true; m_trailer = std::forward<TrailerT>(value); }
197 template<typename TrailerT = IsolineTrailerOptions>
198 IsolineTruckOptions& WithTrailer(TrailerT&& value) { SetTrailer(std::forward<TrailerT>(value)); return *this;}
200
202
205 inline IsolineTruckType GetTruckType() const { return m_truckType; }
206 inline bool TruckTypeHasBeenSet() const { return m_truckTypeHasBeenSet; }
207 inline void SetTruckType(IsolineTruckType value) { m_truckTypeHasBeenSet = true; m_truckType = value; }
208 inline IsolineTruckOptions& WithTruckType(IsolineTruckType value) { SetTruckType(value); return *this;}
210
212
226 inline const Aws::String& GetTunnelRestrictionCode() const { return m_tunnelRestrictionCode; }
227 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
228 template<typename TunnelRestrictionCodeT = Aws::String>
229 void SetTunnelRestrictionCode(TunnelRestrictionCodeT&& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = std::forward<TunnelRestrictionCodeT>(value); }
230 template<typename TunnelRestrictionCodeT = Aws::String>
231 IsolineTruckOptions& WithTunnelRestrictionCode(TunnelRestrictionCodeT&& value) { SetTunnelRestrictionCode(std::forward<TunnelRestrictionCodeT>(value)); return *this;}
233
235
240 inline long long GetWeightPerAxle() const { return m_weightPerAxle; }
241 inline bool WeightPerAxleHasBeenSet() const { return m_weightPerAxleHasBeenSet; }
242 inline void SetWeightPerAxle(long long value) { m_weightPerAxleHasBeenSet = true; m_weightPerAxle = value; }
243 inline IsolineTruckOptions& WithWeightPerAxle(long long value) { SetWeightPerAxle(value); return *this;}
245
247
252 inline const WeightPerAxleGroup& GetWeightPerAxleGroup() const { return m_weightPerAxleGroup; }
253 inline bool WeightPerAxleGroupHasBeenSet() const { return m_weightPerAxleGroupHasBeenSet; }
254 template<typename WeightPerAxleGroupT = WeightPerAxleGroup>
255 void SetWeightPerAxleGroup(WeightPerAxleGroupT&& value) { m_weightPerAxleGroupHasBeenSet = true; m_weightPerAxleGroup = std::forward<WeightPerAxleGroupT>(value); }
256 template<typename WeightPerAxleGroupT = WeightPerAxleGroup>
257 IsolineTruckOptions& WithWeightPerAxleGroup(WeightPerAxleGroupT&& value) { SetWeightPerAxleGroup(std::forward<WeightPerAxleGroupT>(value)); return *this;}
259
261
264 inline long long GetWidth() const { return m_width; }
265 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
266 inline void SetWidth(long long value) { m_widthHasBeenSet = true; m_width = value; }
267 inline IsolineTruckOptions& WithWidth(long long value) { SetWidth(value); return *this;}
269 private:
270
271 int m_axleCount{0};
272 bool m_axleCountHasBeenSet = false;
273
275 bool m_engineTypeHasBeenSet = false;
276
277 long long m_grossWeight{0};
278 bool m_grossWeightHasBeenSet = false;
279
281 bool m_hazardousCargosHasBeenSet = false;
282
283 long long m_height{0};
284 bool m_heightHasBeenSet = false;
285
286 long long m_heightAboveFirstAxle{0};
287 bool m_heightAboveFirstAxleHasBeenSet = false;
288
289 long long m_kpraLength{0};
290 bool m_kpraLengthHasBeenSet = false;
291
292 long long m_length{0};
293 bool m_lengthHasBeenSet = false;
294
295 IsolineVehicleLicensePlate m_licensePlate;
296 bool m_licensePlateHasBeenSet = false;
297
298 double m_maxSpeed{0.0};
299 bool m_maxSpeedHasBeenSet = false;
300
301 int m_occupancy{0};
302 bool m_occupancyHasBeenSet = false;
303
304 long long m_payloadCapacity{0};
305 bool m_payloadCapacityHasBeenSet = false;
306
307 int m_tireCount{0};
308 bool m_tireCountHasBeenSet = false;
309
310 IsolineTrailerOptions m_trailer;
311 bool m_trailerHasBeenSet = false;
312
314 bool m_truckTypeHasBeenSet = false;
315
316 Aws::String m_tunnelRestrictionCode;
317 bool m_tunnelRestrictionCodeHasBeenSet = false;
318
319 long long m_weightPerAxle{0};
320 bool m_weightPerAxleHasBeenSet = false;
321
322 WeightPerAxleGroup m_weightPerAxleGroup;
323 bool m_weightPerAxleGroupHasBeenSet = false;
324
325 long long m_width{0};
326 bool m_widthHasBeenSet = false;
327 };
328
329} // namespace Model
330} // namespace GeoRoutes
331} // 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