AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const RouteEngineType& GetEngineType() const{ return m_engineType; }
63 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
64 inline void SetEngineType(const RouteEngineType& value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
65 inline void SetEngineType(RouteEngineType&& value) { m_engineTypeHasBeenSet = true; m_engineType = std::move(value); }
66 inline RouteTruckOptions& WithEngineType(const RouteEngineType& value) { SetEngineType(value); return *this;}
67 inline RouteTruckOptions& WithEngineType(RouteEngineType&& value) { SetEngineType(std::move(value)); return *this;}
69
71
75 inline long long GetGrossWeight() const{ return m_grossWeight; }
76 inline bool GrossWeightHasBeenSet() const { return m_grossWeightHasBeenSet; }
77 inline void SetGrossWeight(long long value) { m_grossWeightHasBeenSet = true; m_grossWeight = value; }
78 inline RouteTruckOptions& WithGrossWeight(long long value) { SetGrossWeight(value); return *this;}
80
82
85 inline const Aws::Vector<RouteHazardousCargoType>& GetHazardousCargos() const{ return m_hazardousCargos; }
86 inline bool HazardousCargosHasBeenSet() const { return m_hazardousCargosHasBeenSet; }
87 inline void SetHazardousCargos(const Aws::Vector<RouteHazardousCargoType>& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = value; }
88 inline void SetHazardousCargos(Aws::Vector<RouteHazardousCargoType>&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = std::move(value); }
91 inline RouteTruckOptions& AddHazardousCargos(const RouteHazardousCargoType& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(value); return *this; }
92 inline RouteTruckOptions& AddHazardousCargos(RouteHazardousCargoType&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(std::move(value)); return *this; }
94
96
99 inline long long GetHeight() const{ return m_height; }
100 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
101 inline void SetHeight(long long value) { m_heightHasBeenSet = true; m_height = value; }
102 inline RouteTruckOptions& WithHeight(long long value) { SetHeight(value); return *this;}
104
106
110 inline long long GetHeightAboveFirstAxle() const{ return m_heightAboveFirstAxle; }
111 inline bool HeightAboveFirstAxleHasBeenSet() const { return m_heightAboveFirstAxleHasBeenSet; }
112 inline void SetHeightAboveFirstAxle(long long value) { m_heightAboveFirstAxleHasBeenSet = true; m_heightAboveFirstAxle = value; }
113 inline RouteTruckOptions& WithHeightAboveFirstAxle(long long value) { SetHeightAboveFirstAxle(value); return *this;}
115
117
121 inline long long GetKpraLength() const{ return m_kpraLength; }
122 inline bool KpraLengthHasBeenSet() const { return m_kpraLengthHasBeenSet; }
123 inline void SetKpraLength(long long value) { m_kpraLengthHasBeenSet = true; m_kpraLength = value; }
124 inline RouteTruckOptions& WithKpraLength(long long value) { SetKpraLength(value); return *this;}
126
128
131 inline long long GetLength() const{ return m_length; }
132 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
133 inline void SetLength(long long value) { m_lengthHasBeenSet = true; m_length = value; }
134 inline RouteTruckOptions& WithLength(long long value) { SetLength(value); return *this;}
136
138
141 inline const RouteVehicleLicensePlate& GetLicensePlate() const{ return m_licensePlate; }
142 inline bool LicensePlateHasBeenSet() const { return m_licensePlateHasBeenSet; }
143 inline void SetLicensePlate(const RouteVehicleLicensePlate& value) { m_licensePlateHasBeenSet = true; m_licensePlate = value; }
144 inline void SetLicensePlate(RouteVehicleLicensePlate&& value) { m_licensePlateHasBeenSet = true; m_licensePlate = std::move(value); }
145 inline RouteTruckOptions& WithLicensePlate(const RouteVehicleLicensePlate& value) { SetLicensePlate(value); return *this;}
146 inline RouteTruckOptions& WithLicensePlate(RouteVehicleLicensePlate&& value) { SetLicensePlate(std::move(value)); return *this;}
148
150
153 inline double GetMaxSpeed() const{ return m_maxSpeed; }
154 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
155 inline void SetMaxSpeed(double value) { m_maxSpeedHasBeenSet = true; m_maxSpeed = value; }
156 inline RouteTruckOptions& WithMaxSpeed(double value) { SetMaxSpeed(value); return *this;}
158
160
164 inline int GetOccupancy() const{ return m_occupancy; }
165 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
166 inline void SetOccupancy(int value) { m_occupancyHasBeenSet = true; m_occupancy = value; }
167 inline RouteTruckOptions& WithOccupancy(int value) { SetOccupancy(value); return *this;}
169
171
175 inline long long GetPayloadCapacity() const{ return m_payloadCapacity; }
176 inline bool PayloadCapacityHasBeenSet() const { return m_payloadCapacityHasBeenSet; }
177 inline void SetPayloadCapacity(long long value) { m_payloadCapacityHasBeenSet = true; m_payloadCapacity = value; }
178 inline RouteTruckOptions& WithPayloadCapacity(long long value) { SetPayloadCapacity(value); return *this;}
180
182
185 inline int GetTireCount() const{ return m_tireCount; }
186 inline bool TireCountHasBeenSet() const { return m_tireCountHasBeenSet; }
187 inline void SetTireCount(int value) { m_tireCountHasBeenSet = true; m_tireCount = value; }
188 inline RouteTruckOptions& WithTireCount(int value) { SetTireCount(value); return *this;}
190
192
195 inline const RouteTrailerOptions& GetTrailer() const{ return m_trailer; }
196 inline bool TrailerHasBeenSet() const { return m_trailerHasBeenSet; }
197 inline void SetTrailer(const RouteTrailerOptions& value) { m_trailerHasBeenSet = true; m_trailer = value; }
198 inline void SetTrailer(RouteTrailerOptions&& value) { m_trailerHasBeenSet = true; m_trailer = std::move(value); }
199 inline RouteTruckOptions& WithTrailer(const RouteTrailerOptions& value) { SetTrailer(value); return *this;}
200 inline RouteTruckOptions& WithTrailer(RouteTrailerOptions&& value) { SetTrailer(std::move(value)); return *this;}
202
204
207 inline const RouteTruckType& GetTruckType() const{ return m_truckType; }
208 inline bool TruckTypeHasBeenSet() const { return m_truckTypeHasBeenSet; }
209 inline void SetTruckType(const RouteTruckType& value) { m_truckTypeHasBeenSet = true; m_truckType = value; }
210 inline void SetTruckType(RouteTruckType&& value) { m_truckTypeHasBeenSet = true; m_truckType = std::move(value); }
211 inline RouteTruckOptions& WithTruckType(const RouteTruckType& value) { SetTruckType(value); return *this;}
212 inline RouteTruckOptions& WithTruckType(RouteTruckType&& value) { SetTruckType(std::move(value)); return *this;}
214
216
230 inline const Aws::String& GetTunnelRestrictionCode() const{ return m_tunnelRestrictionCode; }
231 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
232 inline void SetTunnelRestrictionCode(const Aws::String& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = value; }
233 inline void SetTunnelRestrictionCode(Aws::String&& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = std::move(value); }
234 inline void SetTunnelRestrictionCode(const char* value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode.assign(value); }
236 inline RouteTruckOptions& WithTunnelRestrictionCode(Aws::String&& value) { SetTunnelRestrictionCode(std::move(value)); return *this;}
237 inline RouteTruckOptions& WithTunnelRestrictionCode(const char* value) { SetTunnelRestrictionCode(value); return *this;}
239
241
246 inline long long GetWeightPerAxle() const{ return m_weightPerAxle; }
247 inline bool WeightPerAxleHasBeenSet() const { return m_weightPerAxleHasBeenSet; }
248 inline void SetWeightPerAxle(long long value) { m_weightPerAxleHasBeenSet = true; m_weightPerAxle = value; }
249 inline RouteTruckOptions& WithWeightPerAxle(long long value) { SetWeightPerAxle(value); return *this;}
251
253
258 inline const WeightPerAxleGroup& GetWeightPerAxleGroup() const{ return m_weightPerAxleGroup; }
259 inline bool WeightPerAxleGroupHasBeenSet() const { return m_weightPerAxleGroupHasBeenSet; }
260 inline void SetWeightPerAxleGroup(const WeightPerAxleGroup& value) { m_weightPerAxleGroupHasBeenSet = true; m_weightPerAxleGroup = value; }
261 inline void SetWeightPerAxleGroup(WeightPerAxleGroup&& value) { m_weightPerAxleGroupHasBeenSet = true; m_weightPerAxleGroup = std::move(value); }
263 inline RouteTruckOptions& WithWeightPerAxleGroup(WeightPerAxleGroup&& value) { SetWeightPerAxleGroup(std::move(value)); return *this;}
265
267
270 inline long long GetWidth() const{ return m_width; }
271 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
272 inline void SetWidth(long long value) { m_widthHasBeenSet = true; m_width = value; }
273 inline RouteTruckOptions& WithWidth(long long value) { SetWidth(value); return *this;}
275 private:
276
277 int m_axleCount;
278 bool m_axleCountHasBeenSet = false;
279
280 RouteEngineType m_engineType;
281 bool m_engineTypeHasBeenSet = false;
282
283 long long m_grossWeight;
284 bool m_grossWeightHasBeenSet = false;
285
286 Aws::Vector<RouteHazardousCargoType> m_hazardousCargos;
287 bool m_hazardousCargosHasBeenSet = false;
288
289 long long m_height;
290 bool m_heightHasBeenSet = false;
291
292 long long m_heightAboveFirstAxle;
293 bool m_heightAboveFirstAxleHasBeenSet = false;
294
295 long long m_kpraLength;
296 bool m_kpraLengthHasBeenSet = false;
297
298 long long m_length;
299 bool m_lengthHasBeenSet = false;
300
301 RouteVehicleLicensePlate m_licensePlate;
302 bool m_licensePlateHasBeenSet = false;
303
304 double m_maxSpeed;
305 bool m_maxSpeedHasBeenSet = false;
306
307 int m_occupancy;
308 bool m_occupancyHasBeenSet = false;
309
310 long long m_payloadCapacity;
311 bool m_payloadCapacityHasBeenSet = false;
312
313 int m_tireCount;
314 bool m_tireCountHasBeenSet = false;
315
316 RouteTrailerOptions m_trailer;
317 bool m_trailerHasBeenSet = false;
318
319 RouteTruckType m_truckType;
320 bool m_truckTypeHasBeenSet = false;
321
322 Aws::String m_tunnelRestrictionCode;
323 bool m_tunnelRestrictionCodeHasBeenSet = false;
324
325 long long m_weightPerAxle;
326 bool m_weightPerAxleHasBeenSet = false;
327
328 WeightPerAxleGroup m_weightPerAxleGroup;
329 bool m_weightPerAxleGroupHasBeenSet = false;
330
331 long long m_width;
332 bool m_widthHasBeenSet = false;
333 };
334
335} // namespace Model
336} // namespace GeoRoutes
337} // namespace Aws
RouteTruckOptions & WithGrossWeight(long long value)
RouteTruckOptions & WithLicensePlate(RouteVehicleLicensePlate &&value)
RouteTruckOptions & WithTruckType(const RouteTruckType &value)
RouteTruckOptions & AddHazardousCargos(const RouteHazardousCargoType &value)
void SetLicensePlate(RouteVehicleLicensePlate &&value)
RouteTruckOptions & WithMaxSpeed(double value)
RouteTruckOptions & WithWidth(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWeightPerAxleGroup(WeightPerAxleGroup &&value)
RouteTruckOptions & WithLicensePlate(const RouteVehicleLicensePlate &value)
RouteTruckOptions & WithWeightPerAxleGroup(const WeightPerAxleGroup &value)
RouteTruckOptions & WithWeightPerAxleGroup(WeightPerAxleGroup &&value)
const WeightPerAxleGroup & GetWeightPerAxleGroup() const
RouteTruckOptions & WithHeight(long long value)
RouteTruckOptions & WithTunnelRestrictionCode(Aws::String &&value)
void SetLicensePlate(const RouteVehicleLicensePlate &value)
RouteTruckOptions & WithAxleCount(int value)
const RouteVehicleLicensePlate & GetLicensePlate() const
RouteTruckOptions & WithTireCount(int value)
RouteTruckOptions & WithTrailer(RouteTrailerOptions &&value)
void SetTrailer(const RouteTrailerOptions &value)
const RouteEngineType & GetEngineType() const
RouteTruckOptions & WithTrailer(const RouteTrailerOptions &value)
void SetHazardousCargos(const Aws::Vector< RouteHazardousCargoType > &value)
void SetTunnelRestrictionCode(const Aws::String &value)
const RouteTruckType & GetTruckType() const
void SetTruckType(const RouteTruckType &value)
RouteTruckOptions & WithEngineType(const RouteEngineType &value)
RouteTruckOptions & WithHazardousCargos(const Aws::Vector< RouteHazardousCargoType > &value)
void SetWeightPerAxleGroup(const WeightPerAxleGroup &value)
void SetHazardousCargos(Aws::Vector< RouteHazardousCargoType > &&value)
void SetTunnelRestrictionCode(Aws::String &&value)
const RouteTrailerOptions & GetTrailer() const
RouteTruckOptions & WithHeightAboveFirstAxle(long long value)
RouteTruckOptions & WithHazardousCargos(Aws::Vector< RouteHazardousCargoType > &&value)
RouteTruckOptions & WithEngineType(RouteEngineType &&value)
RouteTruckOptions & AddHazardousCargos(RouteHazardousCargoType &&value)
RouteTruckOptions & WithTruckType(RouteTruckType &&value)
AWS_GEOROUTES_API RouteTruckOptions(Aws::Utils::Json::JsonView jsonValue)
RouteTruckOptions & WithWeightPerAxle(long long value)
RouteTruckOptions & WithPayloadCapacity(long long value)
RouteTruckOptions & WithLength(long long value)
RouteTruckOptions & WithTunnelRestrictionCode(const Aws::String &value)
void SetTruckType(RouteTruckType &&value)
RouteTruckOptions & WithKpraLength(long long value)
const Aws::String & GetTunnelRestrictionCode() const
RouteTruckOptions & WithTunnelRestrictionCode(const char *value)
RouteTruckOptions & WithOccupancy(int value)
void SetTrailer(RouteTrailerOptions &&value)
void SetEngineType(RouteEngineType &&value)
void SetEngineType(const RouteEngineType &value)
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