AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RouteMatrixTruckOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/model/RouteMatrixVehicleLicensePlate.h>
10#include <aws/geo-routes/model/RouteMatrixTrailerOptions.h>
11#include <aws/geo-routes/model/RouteMatrixTruckType.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/geo-routes/model/WeightPerAxleGroup.h>
14#include <aws/geo-routes/model/RouteMatrixHazardousCargoType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace GeoRoutes
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_GEOROUTES_API RouteMatrixTruckOptions() = default;
44 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline int GetAxleCount() const { return m_axleCount; }
52 inline bool AxleCountHasBeenSet() const { return m_axleCountHasBeenSet; }
53 inline void SetAxleCount(int value) { m_axleCountHasBeenSet = true; m_axleCount = value; }
54 inline RouteMatrixTruckOptions& WithAxleCount(int value) { SetAxleCount(value); return *this;}
56
58
62 inline long long GetGrossWeight() const { return m_grossWeight; }
63 inline bool GrossWeightHasBeenSet() const { return m_grossWeightHasBeenSet; }
64 inline void SetGrossWeight(long long value) { m_grossWeightHasBeenSet = true; m_grossWeight = value; }
65 inline RouteMatrixTruckOptions& WithGrossWeight(long long value) { SetGrossWeight(value); return *this;}
67
69
72 inline const Aws::Vector<RouteMatrixHazardousCargoType>& GetHazardousCargos() const { return m_hazardousCargos; }
73 inline bool HazardousCargosHasBeenSet() const { return m_hazardousCargosHasBeenSet; }
74 template<typename HazardousCargosT = Aws::Vector<RouteMatrixHazardousCargoType>>
75 void SetHazardousCargos(HazardousCargosT&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = std::forward<HazardousCargosT>(value); }
76 template<typename HazardousCargosT = Aws::Vector<RouteMatrixHazardousCargoType>>
77 RouteMatrixTruckOptions& WithHazardousCargos(HazardousCargosT&& value) { SetHazardousCargos(std::forward<HazardousCargosT>(value)); return *this;}
78 inline RouteMatrixTruckOptions& AddHazardousCargos(RouteMatrixHazardousCargoType value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(value); return *this; }
80
82
85 inline long long GetHeight() const { return m_height; }
86 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
87 inline void SetHeight(long long value) { m_heightHasBeenSet = true; m_height = value; }
88 inline RouteMatrixTruckOptions& WithHeight(long long value) { SetHeight(value); return *this;}
90
92
96 inline long long GetKpraLength() const { return m_kpraLength; }
97 inline bool KpraLengthHasBeenSet() const { return m_kpraLengthHasBeenSet; }
98 inline void SetKpraLength(long long value) { m_kpraLengthHasBeenSet = true; m_kpraLength = value; }
99 inline RouteMatrixTruckOptions& WithKpraLength(long long value) { SetKpraLength(value); return *this;}
101
103
106 inline long long GetLength() const { return m_length; }
107 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
108 inline void SetLength(long long value) { m_lengthHasBeenSet = true; m_length = value; }
109 inline RouteMatrixTruckOptions& WithLength(long long value) { SetLength(value); return *this;}
111
113
116 inline const RouteMatrixVehicleLicensePlate& GetLicensePlate() const { return m_licensePlate; }
117 inline bool LicensePlateHasBeenSet() const { return m_licensePlateHasBeenSet; }
118 template<typename LicensePlateT = RouteMatrixVehicleLicensePlate>
119 void SetLicensePlate(LicensePlateT&& value) { m_licensePlateHasBeenSet = true; m_licensePlate = std::forward<LicensePlateT>(value); }
120 template<typename LicensePlateT = RouteMatrixVehicleLicensePlate>
121 RouteMatrixTruckOptions& WithLicensePlate(LicensePlateT&& value) { SetLicensePlate(std::forward<LicensePlateT>(value)); return *this;}
123
125
128 inline double GetMaxSpeed() const { return m_maxSpeed; }
129 inline bool MaxSpeedHasBeenSet() const { return m_maxSpeedHasBeenSet; }
130 inline void SetMaxSpeed(double value) { m_maxSpeedHasBeenSet = true; m_maxSpeed = value; }
131 inline RouteMatrixTruckOptions& WithMaxSpeed(double value) { SetMaxSpeed(value); return *this;}
133
135
139 inline int GetOccupancy() const { return m_occupancy; }
140 inline bool OccupancyHasBeenSet() const { return m_occupancyHasBeenSet; }
141 inline void SetOccupancy(int value) { m_occupancyHasBeenSet = true; m_occupancy = value; }
142 inline RouteMatrixTruckOptions& WithOccupancy(int value) { SetOccupancy(value); return *this;}
144
146
150 inline long long GetPayloadCapacity() const { return m_payloadCapacity; }
151 inline bool PayloadCapacityHasBeenSet() const { return m_payloadCapacityHasBeenSet; }
152 inline void SetPayloadCapacity(long long value) { m_payloadCapacityHasBeenSet = true; m_payloadCapacity = value; }
153 inline RouteMatrixTruckOptions& WithPayloadCapacity(long long value) { SetPayloadCapacity(value); return *this;}
155
157
160 inline const RouteMatrixTrailerOptions& GetTrailer() const { return m_trailer; }
161 inline bool TrailerHasBeenSet() const { return m_trailerHasBeenSet; }
162 template<typename TrailerT = RouteMatrixTrailerOptions>
163 void SetTrailer(TrailerT&& value) { m_trailerHasBeenSet = true; m_trailer = std::forward<TrailerT>(value); }
164 template<typename TrailerT = RouteMatrixTrailerOptions>
165 RouteMatrixTruckOptions& WithTrailer(TrailerT&& value) { SetTrailer(std::forward<TrailerT>(value)); return *this;}
167
169
172 inline RouteMatrixTruckType GetTruckType() const { return m_truckType; }
173 inline bool TruckTypeHasBeenSet() const { return m_truckTypeHasBeenSet; }
174 inline void SetTruckType(RouteMatrixTruckType value) { m_truckTypeHasBeenSet = true; m_truckType = value; }
177
179
193 inline const Aws::String& GetTunnelRestrictionCode() const { return m_tunnelRestrictionCode; }
194 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
195 template<typename TunnelRestrictionCodeT = Aws::String>
196 void SetTunnelRestrictionCode(TunnelRestrictionCodeT&& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = std::forward<TunnelRestrictionCodeT>(value); }
197 template<typename TunnelRestrictionCodeT = Aws::String>
198 RouteMatrixTruckOptions& WithTunnelRestrictionCode(TunnelRestrictionCodeT&& value) { SetTunnelRestrictionCode(std::forward<TunnelRestrictionCodeT>(value)); return *this;}
200
202
207 inline long long GetWeightPerAxle() const { return m_weightPerAxle; }
208 inline bool WeightPerAxleHasBeenSet() const { return m_weightPerAxleHasBeenSet; }
209 inline void SetWeightPerAxle(long long value) { m_weightPerAxleHasBeenSet = true; m_weightPerAxle = value; }
210 inline RouteMatrixTruckOptions& WithWeightPerAxle(long long value) { SetWeightPerAxle(value); return *this;}
212
214
218 inline const WeightPerAxleGroup& GetWeightPerAxleGroup() const { return m_weightPerAxleGroup; }
219 inline bool WeightPerAxleGroupHasBeenSet() const { return m_weightPerAxleGroupHasBeenSet; }
220 template<typename WeightPerAxleGroupT = WeightPerAxleGroup>
221 void SetWeightPerAxleGroup(WeightPerAxleGroupT&& value) { m_weightPerAxleGroupHasBeenSet = true; m_weightPerAxleGroup = std::forward<WeightPerAxleGroupT>(value); }
222 template<typename WeightPerAxleGroupT = WeightPerAxleGroup>
223 RouteMatrixTruckOptions& WithWeightPerAxleGroup(WeightPerAxleGroupT&& value) { SetWeightPerAxleGroup(std::forward<WeightPerAxleGroupT>(value)); return *this;}
225
227
230 inline long long GetWidth() const { return m_width; }
231 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
232 inline void SetWidth(long long value) { m_widthHasBeenSet = true; m_width = value; }
233 inline RouteMatrixTruckOptions& WithWidth(long long value) { SetWidth(value); return *this;}
235 private:
236
237 int m_axleCount{0};
238 bool m_axleCountHasBeenSet = false;
239
240 long long m_grossWeight{0};
241 bool m_grossWeightHasBeenSet = false;
242
244 bool m_hazardousCargosHasBeenSet = false;
245
246 long long m_height{0};
247 bool m_heightHasBeenSet = false;
248
249 long long m_kpraLength{0};
250 bool m_kpraLengthHasBeenSet = false;
251
252 long long m_length{0};
253 bool m_lengthHasBeenSet = false;
254
255 RouteMatrixVehicleLicensePlate m_licensePlate;
256 bool m_licensePlateHasBeenSet = false;
257
258 double m_maxSpeed{0.0};
259 bool m_maxSpeedHasBeenSet = false;
260
261 int m_occupancy{0};
262 bool m_occupancyHasBeenSet = false;
263
264 long long m_payloadCapacity{0};
265 bool m_payloadCapacityHasBeenSet = false;
266
267 RouteMatrixTrailerOptions m_trailer;
268 bool m_trailerHasBeenSet = false;
269
271 bool m_truckTypeHasBeenSet = false;
272
273 Aws::String m_tunnelRestrictionCode;
274 bool m_tunnelRestrictionCodeHasBeenSet = false;
275
276 long long m_weightPerAxle{0};
277 bool m_weightPerAxleHasBeenSet = false;
278
279 WeightPerAxleGroup m_weightPerAxleGroup;
280 bool m_weightPerAxleGroupHasBeenSet = false;
281
282 long long m_width{0};
283 bool m_widthHasBeenSet = false;
284 };
285
286} // namespace Model
287} // namespace GeoRoutes
288} // namespace Aws
RouteMatrixTruckOptions & WithLength(long long value)
RouteMatrixTruckOptions & WithWeightPerAxle(long long value)
RouteMatrixTruckOptions & WithWeightPerAxleGroup(WeightPerAxleGroupT &&value)
const Aws::Vector< RouteMatrixHazardousCargoType > & GetHazardousCargos() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteMatrixTruckOptions & WithOccupancy(int value)
const WeightPerAxleGroup & GetWeightPerAxleGroup() const
RouteMatrixTruckOptions & WithHazardousCargos(HazardousCargosT &&value)
RouteMatrixTruckOptions & WithKpraLength(long long value)
AWS_GEOROUTES_API RouteMatrixTruckOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteMatrixTruckOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const RouteMatrixVehicleLicensePlate & GetLicensePlate() const
RouteMatrixTruckOptions & WithTrailer(TrailerT &&value)
void SetTunnelRestrictionCode(TunnelRestrictionCodeT &&value)
const RouteMatrixTrailerOptions & GetTrailer() const
RouteMatrixTruckOptions & WithAxleCount(int value)
RouteMatrixTruckOptions & WithLicensePlate(LicensePlateT &&value)
RouteMatrixTruckOptions & WithGrossWeight(long long value)
RouteMatrixTruckOptions & WithPayloadCapacity(long long value)
RouteMatrixTruckOptions & WithMaxSpeed(double value)
RouteMatrixTruckOptions & WithTunnelRestrictionCode(TunnelRestrictionCodeT &&value)
void SetWeightPerAxleGroup(WeightPerAxleGroupT &&value)
RouteMatrixTruckOptions & AddHazardousCargos(RouteMatrixHazardousCargoType value)
AWS_GEOROUTES_API RouteMatrixTruckOptions()=default
RouteMatrixTruckOptions & WithTruckType(RouteMatrixTruckType value)
RouteMatrixTruckOptions & WithWidth(long long value)
RouteMatrixTruckOptions & WithHeight(long long 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