AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
WaypointOptimizationTruckOptions.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/WaypointOptimizationHazardousCargoType.h>
11#include <aws/geo-routes/model/WaypointOptimizationTrailerOptions.h>
12#include <aws/geo-routes/model/WaypointOptimizationTruckType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GeoRoutes {
24namespace Model {
25
33 public:
34 AWS_GEOROUTES_API WaypointOptimizationTruckOptions() = default;
37 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline long long GetGrossWeight() const { return m_grossWeight; }
45 inline bool GrossWeightHasBeenSet() const { return m_grossWeightHasBeenSet; }
46 inline void SetGrossWeight(long long value) {
47 m_grossWeightHasBeenSet = true;
48 m_grossWeight = value;
49 }
51 SetGrossWeight(value);
52 return *this;
53 }
55
57
60 inline const Aws::Vector<WaypointOptimizationHazardousCargoType>& GetHazardousCargos() const { return m_hazardousCargos; }
61 inline bool HazardousCargosHasBeenSet() const { return m_hazardousCargosHasBeenSet; }
62 template <typename HazardousCargosT = Aws::Vector<WaypointOptimizationHazardousCargoType>>
63 void SetHazardousCargos(HazardousCargosT&& value) {
64 m_hazardousCargosHasBeenSet = true;
65 m_hazardousCargos = std::forward<HazardousCargosT>(value);
66 }
67 template <typename HazardousCargosT = Aws::Vector<WaypointOptimizationHazardousCargoType>>
69 SetHazardousCargos(std::forward<HazardousCargosT>(value));
70 return *this;
71 }
73 m_hazardousCargosHasBeenSet = true;
74 m_hazardousCargos.push_back(value);
75 return *this;
76 }
78
80
83 inline long long GetHeight() const { return m_height; }
84 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
85 inline void SetHeight(long long value) {
86 m_heightHasBeenSet = true;
87 m_height = value;
88 }
90 SetHeight(value);
91 return *this;
92 }
94
96
99 inline long long GetLength() const { return m_length; }
100 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
101 inline void SetLength(long long value) {
102 m_lengthHasBeenSet = true;
103 m_length = value;
104 }
106 SetLength(value);
107 return *this;
108 }
110
112
115 inline const WaypointOptimizationTrailerOptions& GetTrailer() const { return m_trailer; }
116 inline bool TrailerHasBeenSet() const { return m_trailerHasBeenSet; }
117 template <typename TrailerT = WaypointOptimizationTrailerOptions>
118 void SetTrailer(TrailerT&& value) {
119 m_trailerHasBeenSet = true;
120 m_trailer = std::forward<TrailerT>(value);
121 }
122 template <typename TrailerT = WaypointOptimizationTrailerOptions>
124 SetTrailer(std::forward<TrailerT>(value));
125 return *this;
126 }
128
130
133 inline WaypointOptimizationTruckType GetTruckType() const { return m_truckType; }
134 inline bool TruckTypeHasBeenSet() const { return m_truckTypeHasBeenSet; }
136 m_truckTypeHasBeenSet = true;
137 m_truckType = value;
138 }
140 SetTruckType(value);
141 return *this;
142 }
144
146
160 inline const Aws::String& GetTunnelRestrictionCode() const { return m_tunnelRestrictionCode; }
161 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
162 template <typename TunnelRestrictionCodeT = Aws::String>
163 void SetTunnelRestrictionCode(TunnelRestrictionCodeT&& value) {
164 m_tunnelRestrictionCodeHasBeenSet = true;
165 m_tunnelRestrictionCode = std::forward<TunnelRestrictionCodeT>(value);
166 }
167 template <typename TunnelRestrictionCodeT = Aws::String>
169 SetTunnelRestrictionCode(std::forward<TunnelRestrictionCodeT>(value));
170 return *this;
171 }
173
175
180 inline long long GetWeightPerAxle() const { return m_weightPerAxle; }
181 inline bool WeightPerAxleHasBeenSet() const { return m_weightPerAxleHasBeenSet; }
182 inline void SetWeightPerAxle(long long value) {
183 m_weightPerAxleHasBeenSet = true;
184 m_weightPerAxle = value;
185 }
187 SetWeightPerAxle(value);
188 return *this;
189 }
191
193
196 inline long long GetWidth() const { return m_width; }
197 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
198 inline void SetWidth(long long value) {
199 m_widthHasBeenSet = true;
200 m_width = value;
201 }
203 SetWidth(value);
204 return *this;
205 }
207 private:
208 long long m_grossWeight{0};
209
211
212 long long m_height{0};
213
214 long long m_length{0};
215
216 WaypointOptimizationTrailerOptions m_trailer;
217
219
220 Aws::String m_tunnelRestrictionCode;
221
222 long long m_weightPerAxle{0};
223
224 long long m_width{0};
225 bool m_grossWeightHasBeenSet = false;
226 bool m_hazardousCargosHasBeenSet = false;
227 bool m_heightHasBeenSet = false;
228 bool m_lengthHasBeenSet = false;
229 bool m_trailerHasBeenSet = false;
230 bool m_truckTypeHasBeenSet = false;
231 bool m_tunnelRestrictionCodeHasBeenSet = false;
232 bool m_weightPerAxleHasBeenSet = false;
233 bool m_widthHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace GeoRoutes
238} // namespace Aws
WaypointOptimizationTruckOptions & WithHazardousCargos(HazardousCargosT &&value)
WaypointOptimizationTruckOptions & WithTunnelRestrictionCode(TunnelRestrictionCodeT &&value)
WaypointOptimizationTruckOptions & WithTruckType(WaypointOptimizationTruckType value)
AWS_GEOROUTES_API WaypointOptimizationTruckOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
WaypointOptimizationTruckOptions & WithWeightPerAxle(long long value)
const Aws::Vector< WaypointOptimizationHazardousCargoType > & GetHazardousCargos() const
WaypointOptimizationTruckOptions & WithWidth(long long value)
const WaypointOptimizationTrailerOptions & GetTrailer() const
WaypointOptimizationTruckOptions & WithTrailer(TrailerT &&value)
WaypointOptimizationTruckOptions & WithLength(long long value)
AWS_GEOROUTES_API WaypointOptimizationTruckOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
WaypointOptimizationTruckOptions & AddHazardousCargos(WaypointOptimizationHazardousCargoType value)
WaypointOptimizationTruckOptions & WithGrossWeight(long long value)
WaypointOptimizationTruckOptions & WithHeight(long long value)
AWS_GEOROUTES_API WaypointOptimizationTruckOptions()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue