AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TruckDimensions.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/location/model/DimensionUnit.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LocationService {
20namespace Model {
21
31 public:
32 AWS_LOCATIONSERVICE_API TruckDimensions() = default;
33 AWS_LOCATIONSERVICE_API TruckDimensions(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LOCATIONSERVICE_API TruckDimensions& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline double GetLength() const { return m_length; }
44 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
45 inline void SetLength(double value) {
46 m_lengthHasBeenSet = true;
47 m_length = value;
48 }
49 inline TruckDimensions& WithLength(double value) {
50 SetLength(value);
51 return *this;
52 }
54
56
61 inline double GetHeight() const { return m_height; }
62 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
63 inline void SetHeight(double value) {
64 m_heightHasBeenSet = true;
65 m_height = value;
66 }
67 inline TruckDimensions& WithHeight(double value) {
68 SetHeight(value);
69 return *this;
70 }
72
74
79 inline double GetWidth() const { return m_width; }
80 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
81 inline void SetWidth(double value) {
82 m_widthHasBeenSet = true;
83 m_width = value;
84 }
85 inline TruckDimensions& WithWidth(double value) {
86 SetWidth(value);
87 return *this;
88 }
90
92
96 inline DimensionUnit GetUnit() const { return m_unit; }
97 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
98 inline void SetUnit(DimensionUnit value) {
99 m_unitHasBeenSet = true;
100 m_unit = value;
101 }
103 SetUnit(value);
104 return *this;
105 }
107 private:
108 double m_length{0.0};
109
110 double m_height{0.0};
111
112 double m_width{0.0};
113
115 bool m_lengthHasBeenSet = false;
116 bool m_heightHasBeenSet = false;
117 bool m_widthHasBeenSet = false;
118 bool m_unitHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace LocationService
123} // namespace Aws
TruckDimensions & WithLength(double value)
AWS_LOCATIONSERVICE_API TruckDimensions & operator=(Aws::Utils::Json::JsonView jsonValue)
TruckDimensions & WithUnit(DimensionUnit value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
TruckDimensions & WithHeight(double value)
AWS_LOCATIONSERVICE_API TruckDimensions(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API TruckDimensions()=default
TruckDimensions & WithWidth(double value)
Aws::Utils::Json::JsonValue JsonValue