AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetHazardousCargos(const Aws::Vector<RoadSnapHazardousCargoType>& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = value; }
62 inline void SetHazardousCargos(Aws::Vector<RoadSnapHazardousCargoType>&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos = std::move(value); }
65 inline RoadSnapTruckOptions& AddHazardousCargos(const RoadSnapHazardousCargoType& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(value); return *this; }
66 inline RoadSnapTruckOptions& AddHazardousCargos(RoadSnapHazardousCargoType&& value) { m_hazardousCargosHasBeenSet = true; m_hazardousCargos.push_back(std::move(value)); return *this; }
68
70
73 inline long long GetHeight() const{ return m_height; }
74 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
75 inline void SetHeight(long long value) { m_heightHasBeenSet = true; m_height = value; }
76 inline RoadSnapTruckOptions& WithHeight(long long value) { SetHeight(value); return *this;}
78
80
83 inline long long GetLength() const{ return m_length; }
84 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
85 inline void SetLength(long long value) { m_lengthHasBeenSet = true; m_length = value; }
86 inline RoadSnapTruckOptions& WithLength(long long value) { SetLength(value); return *this;}
88
90
93 inline const RoadSnapTrailerOptions& GetTrailer() const{ return m_trailer; }
94 inline bool TrailerHasBeenSet() const { return m_trailerHasBeenSet; }
95 inline void SetTrailer(const RoadSnapTrailerOptions& value) { m_trailerHasBeenSet = true; m_trailer = value; }
96 inline void SetTrailer(RoadSnapTrailerOptions&& value) { m_trailerHasBeenSet = true; m_trailer = std::move(value); }
97 inline RoadSnapTruckOptions& WithTrailer(const RoadSnapTrailerOptions& value) { SetTrailer(value); return *this;}
98 inline RoadSnapTruckOptions& WithTrailer(RoadSnapTrailerOptions&& value) { SetTrailer(std::move(value)); return *this;}
100
102
116 inline const Aws::String& GetTunnelRestrictionCode() const{ return m_tunnelRestrictionCode; }
117 inline bool TunnelRestrictionCodeHasBeenSet() const { return m_tunnelRestrictionCodeHasBeenSet; }
118 inline void SetTunnelRestrictionCode(const Aws::String& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = value; }
119 inline void SetTunnelRestrictionCode(Aws::String&& value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode = std::move(value); }
120 inline void SetTunnelRestrictionCode(const char* value) { m_tunnelRestrictionCodeHasBeenSet = true; m_tunnelRestrictionCode.assign(value); }
122 inline RoadSnapTruckOptions& WithTunnelRestrictionCode(Aws::String&& value) { SetTunnelRestrictionCode(std::move(value)); return *this;}
123 inline RoadSnapTruckOptions& WithTunnelRestrictionCode(const char* value) { SetTunnelRestrictionCode(value); return *this;}
125
127
130 inline long long GetWidth() const{ return m_width; }
131 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
132 inline void SetWidth(long long value) { m_widthHasBeenSet = true; m_width = value; }
133 inline RoadSnapTruckOptions& WithWidth(long long value) { SetWidth(value); return *this;}
135 private:
136
137 long long m_grossWeight;
138 bool m_grossWeightHasBeenSet = false;
139
141 bool m_hazardousCargosHasBeenSet = false;
142
143 long long m_height;
144 bool m_heightHasBeenSet = false;
145
146 long long m_length;
147 bool m_lengthHasBeenSet = false;
148
149 RoadSnapTrailerOptions m_trailer;
150 bool m_trailerHasBeenSet = false;
151
152 Aws::String m_tunnelRestrictionCode;
153 bool m_tunnelRestrictionCodeHasBeenSet = false;
154
155 long long m_width;
156 bool m_widthHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace GeoRoutes
161} // namespace Aws
RoadSnapTruckOptions & WithTunnelRestrictionCode(const char *value)
RoadSnapTruckOptions & WithHeight(long long value)
RoadSnapTruckOptions & WithTrailer(const RoadSnapTrailerOptions &value)
void SetTunnelRestrictionCode(const Aws::String &value)
void SetHazardousCargos(Aws::Vector< RoadSnapHazardousCargoType > &&value)
RoadSnapTruckOptions & AddHazardousCargos(const RoadSnapHazardousCargoType &value)
RoadSnapTruckOptions & WithWidth(long long value)
RoadSnapTruckOptions & WithTunnelRestrictionCode(Aws::String &&value)
AWS_GEOROUTES_API RoadSnapTruckOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RoadSnapTruckOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTrailer(const RoadSnapTrailerOptions &value)
RoadSnapTruckOptions & WithHazardousCargos(const Aws::Vector< RoadSnapHazardousCargoType > &value)
RoadSnapTruckOptions & WithTunnelRestrictionCode(const Aws::String &value)
RoadSnapTruckOptions & AddHazardousCargos(RoadSnapHazardousCargoType &&value)
void SetHazardousCargos(const Aws::Vector< RoadSnapHazardousCargoType > &value)
RoadSnapTruckOptions & WithGrossWeight(long long value)
void SetTrailer(RoadSnapTrailerOptions &&value)
const RoadSnapTrailerOptions & GetTrailer() const
const Aws::Vector< RoadSnapHazardousCargoType > & GetHazardousCargos() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RoadSnapTruckOptions & WithHazardousCargos(Aws::Vector< RoadSnapHazardousCargoType > &&value)
RoadSnapTruckOptions & WithLength(long long value)
RoadSnapTruckOptions & WithTrailer(RoadSnapTrailerOptions &&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