AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const DimensionUnit& GetUnit() const{ return m_unit; }
85 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
86 inline void SetUnit(const DimensionUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
87 inline void SetUnit(DimensionUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
88 inline TruckDimensions& WithUnit(const DimensionUnit& value) { SetUnit(value); return *this;}
89 inline TruckDimensions& WithUnit(DimensionUnit&& value) { SetUnit(std::move(value)); return *this;}
91 private:
92
93 double m_length;
94 bool m_lengthHasBeenSet = false;
95
96 double m_height;
97 bool m_heightHasBeenSet = false;
98
99 double m_width;
100 bool m_widthHasBeenSet = false;
101
102 DimensionUnit m_unit;
103 bool m_unitHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace LocationService
108} // namespace Aws
void SetUnit(const DimensionUnit &value)
TruckDimensions & WithLength(double value)
AWS_LOCATIONSERVICE_API TruckDimensions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
TruckDimensions & WithHeight(double value)
AWS_LOCATIONSERVICE_API TruckDimensions()
AWS_LOCATIONSERVICE_API TruckDimensions(Aws::Utils::Json::JsonView jsonValue)
TruckDimensions & WithWidth(double value)
TruckDimensions & WithUnit(DimensionUnit &&value)
TruckDimensions & WithUnit(const DimensionUnit &value)
Aws::Utils::Json::JsonValue JsonValue