AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RoadSnapTruckOptions.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/RoadSnapTrailerOptions.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/geo-routes/model/RoadSnapHazardousCargoType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GeoRoutes
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GEOROUTES_API RoadSnapTruckOptions() = default;
41 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline long long GetGrossWeight() const { return m_grossWeight; }
50 inline bool GrossWeightHasBeenSet() const { return m_grossWeightHasBeenSet; }
51 inline void SetGrossWeight(long long value) { m_grossWeightHasBeenSet = true; m_grossWeight = value; }
52 inline RoadSnapTruckOptions& WithGrossWeight(long long value) { SetGrossWeight(value); return *this;}
54
56
59 inline const Aws::Vector<RoadSnapHazardousCargoType>& GetHazardousCargos() const { return m_hazardousCargos; }
60 inline bool HazardousCargosHasBeenSet() const { return m_hazardousCargosHasBeenSet; }
61 template<typename HazardousCargosT = Aws::Vector<RoadSnapHazardousCargoType>>
62 void SetHazardousCargos(HazardousCargosT&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = std::forward<HazardousCargosT>(value); }
63 template<typename HazardousCargosT = Aws::Vector<RoadSnapHazardousCargoType>>
64 RoadSnapTruckOptions& WithHazardousCargos(HazardousCargosT&& value) { SetHazardousCargos(std::forward<HazardousCargosT>(value)); return *this;}
65 inline RoadSnapTruckOptions& AddHazardousCargos(RoadSnapHazardousCargoType value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(value); return *this; }
67
69
72 inline long long GetHeight() const { return m_height; }
73 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
74 inline void SetHeight(long long value) { m_heightHasBeenSet = true; m_height = value; }
75 inline RoadSnapTruckOptions& WithHeight(long long value) { SetHeight(value); return *this;}
77
79
82 inline long long GetLength() const { return m_length; }
83 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
84 inline void SetLength(long long value) { m_lengthHasBeenSet = true; m_length = value; }
85 inline RoadSnapTruckOptions& WithLength(long long value) { SetLength(value); return *this;}
87
89
92 inline const RoadSnapTrailerOptions& GetTrailer() const { return m_trailer; }
93 inline bool TrailerHasBeenSet() const { return m_trailerHasBeenSet; }
94 template<typename TrailerT = RoadSnapTrailerOptions>
95 void SetTrailer(TrailerT&& value) { m_trailerHasBeenSet = true; m_trailer = std::forward<TrailerT>(value); }
96 template<typename TrailerT = RoadSnapTrailerOptions>
97 RoadSnapTruckOptions& WithTrailer(TrailerT&& value) { SetTrailer(std::forward<TrailerT>(value)); return *this;}
99
101
115 inline const Aws::String& GetTunnelRestrictionCode() const { return m_tunnelRestrictionCode; }
116 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
117 template<typename TunnelRestrictionCodeT = Aws::String>
118 void SetTunnelRestrictionCode(TunnelRestrictionCodeT&& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = std::forward<TunnelRestrictionCodeT>(value); }
119 template<typename TunnelRestrictionCodeT = Aws::String>
120 RoadSnapTruckOptions& WithTunnelRestrictionCode(TunnelRestrictionCodeT&& value) { SetTunnelRestrictionCode(std::forward<TunnelRestrictionCodeT>(value)); return *this;}
122
124
127 inline long long GetWidth() const { return m_width; }
128 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
129 inline void SetWidth(long long value) { m_widthHasBeenSet = true; m_width = value; }
130 inline RoadSnapTruckOptions& WithWidth(long long value) { SetWidth(value); return *this;}
132 private:
133
134 long long m_grossWeight{0};
135 bool m_grossWeightHasBeenSet = false;
136
138 bool m_hazardousCargosHasBeenSet = false;
139
140 long long m_height{0};
141 bool m_heightHasBeenSet = false;
142
143 long long m_length{0};
144 bool m_lengthHasBeenSet = false;
145
146 RoadSnapTrailerOptions m_trailer;
147 bool m_trailerHasBeenSet = false;
148
149 Aws::String m_tunnelRestrictionCode;
150 bool m_tunnelRestrictionCodeHasBeenSet = false;
151
152 long long m_width{0};
153 bool m_widthHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace GeoRoutes
158} // namespace Aws
AWS_GEOROUTES_API RoadSnapTruckOptions()=default
RoadSnapTruckOptions & WithHeight(long long value)
RoadSnapTruckOptions & WithWidth(long long value)
RoadSnapTruckOptions & WithTunnelRestrictionCode(TunnelRestrictionCodeT &&value)
void SetHazardousCargos(HazardousCargosT &&value)
AWS_GEOROUTES_API RoadSnapTruckOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RoadSnapTruckOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTunnelRestrictionCode(TunnelRestrictionCodeT &&value)
RoadSnapTruckOptions & WithHazardousCargos(HazardousCargosT &&value)
RoadSnapTruckOptions & AddHazardousCargos(RoadSnapHazardousCargoType value)
RoadSnapTruckOptions & WithGrossWeight(long long value)
const RoadSnapTrailerOptions & GetTrailer() const
const Aws::Vector< RoadSnapHazardousCargoType > & GetHazardousCargos() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RoadSnapTruckOptions & WithLength(long long value)
RoadSnapTruckOptions & WithTrailer(TrailerT &&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