AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LocationService
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_LOCATIONSERVICE_API TruckDimensions() = default;
38 AWS_LOCATIONSERVICE_API TruckDimensions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOCATIONSERVICE_API TruckDimensions& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline double GetLength() const { return m_length; }
50 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
51 inline void SetLength(double value) { m_lengthHasBeenSet = true; m_length = value; }
52 inline TruckDimensions& WithLength(double value) { SetLength(value); return *this;}
54
56
61 inline double GetHeight() const { return m_height; }
62 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
63 inline void SetHeight(double value) { m_heightHasBeenSet = true; m_height = value; }
64 inline TruckDimensions& WithHeight(double value) { SetHeight(value); return *this;}
66
68
73 inline double GetWidth() const { return m_width; }
74 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
75 inline void SetWidth(double value) { m_widthHasBeenSet = true; m_width = value; }
76 inline TruckDimensions& WithWidth(double value) { SetWidth(value); return *this;}
78
80
84 inline DimensionUnit GetUnit() const { return m_unit; }
85 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
86 inline void SetUnit(DimensionUnit value) { m_unitHasBeenSet = true; m_unit = value; }
87 inline TruckDimensions& WithUnit(DimensionUnit value) { SetUnit(value); return *this;}
89 private:
90
91 double m_length{0.0};
92 bool m_lengthHasBeenSet = false;
93
94 double m_height{0.0};
95 bool m_heightHasBeenSet = false;
96
97 double m_width{0.0};
98 bool m_widthHasBeenSet = false;
99
101 bool m_unitHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace LocationService
106} // 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