AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RouteTruckOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteEngineType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/geo-routes/model/RouteVehicleLicensePlate.h>
11#include <aws/geo-routes/model/RouteTrailerOptions.h>
12#include <aws/geo-routes/model/RouteTruckType.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/geo-routes/model/WeightPerAxleGroup.h>
15#include <aws/geo-routes/model/RouteHazardousCargoType.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 RouteTruckOptions() = default;
43 AWS_GEOROUTES_API RouteTruckOptions(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 RouteTruckOptions& WithAxleCount(int value) { SetAxleCount(value); return *this;}
57
59
62 inline RouteEngineType GetEngineType() const { return m_engineType; }
63 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
64 inline void SetEngineType(RouteEngineType value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
65 inline RouteTruckOptions& WithEngineType(RouteEngineType 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 RouteTruckOptions& WithGrossWeight(long long value) { SetGrossWeight(value); return *this;}
78
80
83 inline const Aws::Vector<RouteHazardousCargoType>& GetHazardousCargos() const { return m_hazardousCargos; }
84 inline bool HazardousCargosHasBeenSet() const { return m_hazardousCargosHasBeenSet; }
85 template<typename HazardousCargosT = Aws::Vector<RouteHazardousCargoType>>
86 void SetHazardousCargos(HazardousCargosT&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = std::forward<HazardousCargosT>(value); }
87 template<typename HazardousCargosT = Aws::Vector<RouteHazardousCargoType>>
88 RouteTruckOptions& WithHazardousCargos(HazardousCargosT&& value) { SetHazardousCargos(std::forward<HazardousCargosT>(value)); return *this;}
89 inline RouteTruckOptions& AddHazardousCargos(RouteHazardousCargoType 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 RouteTruckOptions& 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 RouteTruckOptions& 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 RouteTruckOptions& 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 RouteTruckOptions& WithLength(long long value) { SetLength(value); return *this;}
133
135
138 inline const RouteVehicleLicensePlate& GetLicensePlate() const { return m_licensePlate; }
139 inline bool LicensePlateHasBeenSet() const { return m_licensePlateHasBeenSet; }
140 template<typename LicensePlateT = RouteVehicleLicensePlate>
141 void SetLicensePlate(LicensePlateT&& value) { m_licensePlateHasBeenSet = true; m_licensePlate = std::forward<LicensePlateT>(value); }
142 template<typename LicensePlateT = RouteVehicleLicensePlate>
143 RouteTruckOptions& WithLicensePlate(LicensePlateT&& value) { SetLicensePlate(std::forward<LicensePlateT>(value)); return *this;}
145
147
150 inline double GetMaxSpeed() const { return m_maxSpeed; }
151 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
152 inline void SetMaxSpeed(double value) { m_maxSpeedHasBeenSet = true; m_maxSpeed = value; }
153 inline RouteTruckOptions& WithMaxSpeed(double value) { SetMaxSpeed(value); return *this;}
155
157
161 inline int GetOccupancy() const { return m_occupancy; }
162 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
163 inline void SetOccupancy(int value) { m_occupancyHasBeenSet = true; m_occupancy = value; }
164 inline RouteTruckOptions& WithOccupancy(int value) { SetOccupancy(value); return *this;}
166
168
172 inline long long GetPayloadCapacity() const { return m_payloadCapacity; }
173 inline bool PayloadCapacityHasBeenSet() const { return m_payloadCapacityHasBeenSet; }
174 inline void SetPayloadCapacity(long long value) { m_payloadCapacityHasBeenSet = true; m_payloadCapacity = value; }
175 inline RouteTruckOptions& WithPayloadCapacity(long long value) { SetPayloadCapacity(value); return *this;}
177
179
182 inline int GetTireCount() const { return m_tireCount; }
183 inline bool TireCountHasBeenSet() const { return m_tireCountHasBeenSet; }
184 inline void SetTireCount(int value) { m_tireCountHasBeenSet = true; m_tireCount = value; }
185 inline RouteTruckOptions& WithTireCount(int value) { SetTireCount(value); return *this;}
187
189
192 inline const RouteTrailerOptions& GetTrailer() const { return m_trailer; }
193 inline bool TrailerHasBeenSet() const { return m_trailerHasBeenSet; }
194 template<typename TrailerT = RouteTrailerOptions>
195 void SetTrailer(TrailerT&& value) { m_trailerHasBeenSet = true; m_trailer = std::forward<TrailerT>(value); }
196 template<typename TrailerT = RouteTrailerOptions>
197 RouteTruckOptions& WithTrailer(TrailerT&& value) { SetTrailer(std::forward<TrailerT>(value)); return *this;}
199
201
204 inline RouteTruckType GetTruckType() const { return m_truckType; }
205 inline bool TruckTypeHasBeenSet() const { return m_truckTypeHasBeenSet; }
206 inline void SetTruckType(RouteTruckType value) { m_truckTypeHasBeenSet = true; m_truckType = value; }
207 inline RouteTruckOptions& WithTruckType(RouteTruckType value) { SetTruckType(value); return *this;}
209
211
225 inline const Aws::String& GetTunnelRestrictionCode() const { return m_tunnelRestrictionCode; }
226 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
227 template<typename TunnelRestrictionCodeT = Aws::String>
228 void SetTunnelRestrictionCode(TunnelRestrictionCodeT&& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = std::forward<TunnelRestrictionCodeT>(value); }
229 template<typename TunnelRestrictionCodeT = Aws::String>
230 RouteTruckOptions& WithTunnelRestrictionCode(TunnelRestrictionCodeT&& value) { SetTunnelRestrictionCode(std::forward<TunnelRestrictionCodeT>(value)); return *this;}
232
234
239 inline long long GetWeightPerAxle() const { return m_weightPerAxle; }
240 inline bool WeightPerAxleHasBeenSet() const { return m_weightPerAxleHasBeenSet; }
241 inline void SetWeightPerAxle(long long value) { m_weightPerAxleHasBeenSet = true; m_weightPerAxle = value; }
242 inline RouteTruckOptions& WithWeightPerAxle(long long value) { SetWeightPerAxle(value); return *this;}
244
246
251 inline const WeightPerAxleGroup& GetWeightPerAxleGroup() const { return m_weightPerAxleGroup; }
252 inline bool WeightPerAxleGroupHasBeenSet() const { return m_weightPerAxleGroupHasBeenSet; }
253 template<typename WeightPerAxleGroupT = WeightPerAxleGroup>
254 void SetWeightPerAxleGroup(WeightPerAxleGroupT&& value) { m_weightPerAxleGroupHasBeenSet = true; m_weightPerAxleGroup = std::forward<WeightPerAxleGroupT>(value); }
255 template<typename WeightPerAxleGroupT = WeightPerAxleGroup>
256 RouteTruckOptions& WithWeightPerAxleGroup(WeightPerAxleGroupT&& value) { SetWeightPerAxleGroup(std::forward<WeightPerAxleGroupT>(value)); return *this;}
258
260
263 inline long long GetWidth() const { return m_width; }
264 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
265 inline void SetWidth(long long value) { m_widthHasBeenSet = true; m_width = value; }
266 inline RouteTruckOptions& WithWidth(long long value) { SetWidth(value); return *this;}
268 private:
269
270 int m_axleCount{0};
271 bool m_axleCountHasBeenSet = false;
272
274 bool m_engineTypeHasBeenSet = false;
275
276 long long m_grossWeight{0};
277 bool m_grossWeightHasBeenSet = false;
278
279 Aws::Vector<RouteHazardousCargoType> m_hazardousCargos;
280 bool m_hazardousCargosHasBeenSet = false;
281
282 long long m_height{0};
283 bool m_heightHasBeenSet = false;
284
285 long long m_heightAboveFirstAxle{0};
286 bool m_heightAboveFirstAxleHasBeenSet = false;
287
288 long long m_kpraLength{0};
289 bool m_kpraLengthHasBeenSet = false;
290
291 long long m_length{0};
292 bool m_lengthHasBeenSet = false;
293
294 RouteVehicleLicensePlate m_licensePlate;
295 bool m_licensePlateHasBeenSet = false;
296
297 double m_maxSpeed{0.0};
298 bool m_maxSpeedHasBeenSet = false;
299
300 int m_occupancy{0};
301 bool m_occupancyHasBeenSet = false;
302
303 long long m_payloadCapacity{0};
304 bool m_payloadCapacityHasBeenSet = false;
305
306 int m_tireCount{0};
307 bool m_tireCountHasBeenSet = false;
308
309 RouteTrailerOptions m_trailer;
310 bool m_trailerHasBeenSet = false;
311
313 bool m_truckTypeHasBeenSet = false;
314
315 Aws::String m_tunnelRestrictionCode;
316 bool m_tunnelRestrictionCodeHasBeenSet = false;
317
318 long long m_weightPerAxle{0};
319 bool m_weightPerAxleHasBeenSet = false;
320
321 WeightPerAxleGroup m_weightPerAxleGroup;
322 bool m_weightPerAxleGroupHasBeenSet = false;
323
324 long long m_width{0};
325 bool m_widthHasBeenSet = false;
326 };
327
328} // namespace Model
329} // namespace GeoRoutes
330} // namespace Aws
RouteTruckOptions & WithGrossWeight(long long value)
void SetHazardousCargos(HazardousCargosT &&value)
RouteTruckOptions & WithMaxSpeed(double value)
RouteTruckOptions & WithWidth(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteTruckOptions & WithTrailer(TrailerT &&value)
const WeightPerAxleGroup & GetWeightPerAxleGroup() const
RouteTruckOptions & WithTunnelRestrictionCode(TunnelRestrictionCodeT &&value)
RouteTruckOptions & WithHeight(long long value)
void SetTunnelRestrictionCode(TunnelRestrictionCodeT &&value)
void SetWeightPerAxleGroup(WeightPerAxleGroupT &&value)
RouteTruckOptions & WithAxleCount(int value)
const RouteVehicleLicensePlate & GetLicensePlate() const
RouteTruckOptions & WithTireCount(int value)
void SetEngineType(RouteEngineType value)
RouteTruckOptions & WithEngineType(RouteEngineType value)
const RouteTrailerOptions & GetTrailer() const
RouteTruckOptions & WithHeightAboveFirstAxle(long long value)
RouteTruckOptions & AddHazardousCargos(RouteHazardousCargoType value)
void SetLicensePlate(LicensePlateT &&value)
AWS_GEOROUTES_API RouteTruckOptions(Aws::Utils::Json::JsonView jsonValue)
RouteTruckOptions & WithWeightPerAxle(long long value)
RouteTruckOptions & WithLicensePlate(LicensePlateT &&value)
RouteTruckOptions & WithPayloadCapacity(long long value)
RouteTruckOptions & WithLength(long long value)
RouteTruckOptions & WithTruckType(RouteTruckType value)
RouteTruckOptions & WithHazardousCargos(HazardousCargosT &&value)
RouteTruckOptions & WithWeightPerAxleGroup(WeightPerAxleGroupT &&value)
RouteTruckOptions & WithKpraLength(long long value)
const Aws::String & GetTunnelRestrictionCode() const
RouteTruckOptions & WithOccupancy(int value)
AWS_GEOROUTES_API RouteTruckOptions()=default
AWS_GEOROUTES_API RouteTruckOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
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