AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WaypointOptimizationTruckOptions.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/WaypointOptimizationTrailerOptions.h>
10#include <aws/geo-routes/model/WaypointOptimizationTruckType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/geo-routes/model/WaypointOptimizationHazardousCargoType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GeoRoutes
26{
27namespace Model
28{
29
37 {
38 public:
42 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline long long GetGrossWeight() const{ return m_grossWeight; }
51 inline bool GrossWeightHasBeenSet() const { return m_grossWeightHasBeenSet; }
52 inline void SetGrossWeight(long long value) { m_grossWeightHasBeenSet = true; m_grossWeight = value; }
53 inline WaypointOptimizationTruckOptions& WithGrossWeight(long long value) { SetGrossWeight(value); return *this;}
55
57
60 inline const Aws::Vector<WaypointOptimizationHazardousCargoType>& GetHazardousCargos() const{ return m_hazardousCargos; }
61 inline bool HazardousCargosHasBeenSet() const { return m_hazardousCargosHasBeenSet; }
62 inline void SetHazardousCargos(const Aws::Vector<WaypointOptimizationHazardousCargoType>& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = value; }
63 inline void SetHazardousCargos(Aws::Vector<WaypointOptimizationHazardousCargoType>&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = std::move(value); }
66 inline WaypointOptimizationTruckOptions& AddHazardousCargos(const WaypointOptimizationHazardousCargoType& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(value); return *this; }
67 inline WaypointOptimizationTruckOptions& AddHazardousCargos(WaypointOptimizationHazardousCargoType&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(std::move(value)); return *this; }
69
71
74 inline long long GetHeight() const{ return m_height; }
75 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
76 inline void SetHeight(long long value) { m_heightHasBeenSet = true; m_height = value; }
77 inline WaypointOptimizationTruckOptions& WithHeight(long long value) { SetHeight(value); return *this;}
79
81
84 inline long long GetLength() const{ return m_length; }
85 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
86 inline void SetLength(long long value) { m_lengthHasBeenSet = true; m_length = value; }
87 inline WaypointOptimizationTruckOptions& WithLength(long long value) { SetLength(value); return *this;}
89
91
94 inline const WaypointOptimizationTrailerOptions& GetTrailer() const{ return m_trailer; }
95 inline bool TrailerHasBeenSet() const { return m_trailerHasBeenSet; }
96 inline void SetTrailer(const WaypointOptimizationTrailerOptions& value) { m_trailerHasBeenSet = true; m_trailer = value; }
97 inline void SetTrailer(WaypointOptimizationTrailerOptions&& value) { m_trailerHasBeenSet = true; m_trailer = std::move(value); }
101
103
106 inline const WaypointOptimizationTruckType& GetTruckType() const{ return m_truckType; }
107 inline bool TruckTypeHasBeenSet() const { return m_truckTypeHasBeenSet; }
108 inline void SetTruckType(const WaypointOptimizationTruckType& value) { m_truckTypeHasBeenSet = true; m_truckType = value; }
109 inline void SetTruckType(WaypointOptimizationTruckType&& value) { m_truckTypeHasBeenSet = true; m_truckType = std::move(value); }
113
115
129 inline const Aws::String& GetTunnelRestrictionCode() const{ return m_tunnelRestrictionCode; }
130 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
131 inline void SetTunnelRestrictionCode(const Aws::String& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = value; }
132 inline void SetTunnelRestrictionCode(Aws::String&& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = std::move(value); }
133 inline void SetTunnelRestrictionCode(const char* value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode.assign(value); }
138
140
145 inline long long GetWeightPerAxle() const{ return m_weightPerAxle; }
146 inline bool WeightPerAxleHasBeenSet() const { return m_weightPerAxleHasBeenSet; }
147 inline void SetWeightPerAxle(long long value) { m_weightPerAxleHasBeenSet = true; m_weightPerAxle = value; }
148 inline WaypointOptimizationTruckOptions& WithWeightPerAxle(long long value) { SetWeightPerAxle(value); return *this;}
150
152
155 inline long long GetWidth() const{ return m_width; }
156 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
157 inline void SetWidth(long long value) { m_widthHasBeenSet = true; m_width = value; }
158 inline WaypointOptimizationTruckOptions& WithWidth(long long value) { SetWidth(value); return *this;}
160 private:
161
162 long long m_grossWeight;
163 bool m_grossWeightHasBeenSet = false;
164
166 bool m_hazardousCargosHasBeenSet = false;
167
168 long long m_height;
169 bool m_heightHasBeenSet = false;
170
171 long long m_length;
172 bool m_lengthHasBeenSet = false;
173
175 bool m_trailerHasBeenSet = false;
176
178 bool m_truckTypeHasBeenSet = false;
179
180 Aws::String m_tunnelRestrictionCode;
181 bool m_tunnelRestrictionCodeHasBeenSet = false;
182
183 long long m_weightPerAxle;
184 bool m_weightPerAxleHasBeenSet = false;
185
186 long long m_width;
187 bool m_widthHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace GeoRoutes
192} // namespace Aws
WaypointOptimizationTruckOptions & WithTunnelRestrictionCode(const Aws::String &value)
void SetTrailer(const WaypointOptimizationTrailerOptions &value)
AWS_GEOROUTES_API WaypointOptimizationTruckOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTruckType(const WaypointOptimizationTruckType &value)
WaypointOptimizationTruckOptions & WithWeightPerAxle(long long value)
WaypointOptimizationTruckOptions & WithTrailer(WaypointOptimizationTrailerOptions &&value)
const Aws::Vector< WaypointOptimizationHazardousCargoType > & GetHazardousCargos() const
WaypointOptimizationTruckOptions & WithWidth(long long value)
const WaypointOptimizationTrailerOptions & GetTrailer() const
WaypointOptimizationTruckOptions & AddHazardousCargos(WaypointOptimizationHazardousCargoType &&value)
void SetHazardousCargos(Aws::Vector< WaypointOptimizationHazardousCargoType > &&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 & WithTunnelRestrictionCode(Aws::String &&value)
WaypointOptimizationTruckOptions & WithGrossWeight(long long value)
WaypointOptimizationTruckOptions & WithTrailer(const WaypointOptimizationTrailerOptions &value)
WaypointOptimizationTruckOptions & WithTunnelRestrictionCode(const char *value)
WaypointOptimizationTruckOptions & WithHazardousCargos(const Aws::Vector< WaypointOptimizationHazardousCargoType > &value)
WaypointOptimizationTruckOptions & AddHazardousCargos(const WaypointOptimizationHazardousCargoType &value)
WaypointOptimizationTruckOptions & WithHazardousCargos(Aws::Vector< WaypointOptimizationHazardousCargoType > &&value)
WaypointOptimizationTruckOptions & WithHeight(long long value)
void SetHazardousCargos(const Aws::Vector< WaypointOptimizationHazardousCargoType > &value)
void SetTrailer(WaypointOptimizationTrailerOptions &&value)
WaypointOptimizationTruckOptions & WithTruckType(WaypointOptimizationTruckType &&value)
WaypointOptimizationTruckOptions & WithTruckType(const WaypointOptimizationTruckType &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