AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TruckWeight.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/location/model/VehicleWeightUnit.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
34 {
35 public:
36 AWS_LOCATIONSERVICE_API TruckWeight() = default;
37 AWS_LOCATIONSERVICE_API TruckWeight(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOCATIONSERVICE_API TruckWeight& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline double GetTotal() const { return m_total; }
48 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
49 inline void SetTotal(double value) { m_totalHasBeenSet = true; m_total = value; }
50 inline TruckWeight& WithTotal(double value) { SetTotal(value); return *this;}
52
54
58 inline VehicleWeightUnit GetUnit() const { return m_unit; }
59 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
60 inline void SetUnit(VehicleWeightUnit value) { m_unitHasBeenSet = true; m_unit = value; }
61 inline TruckWeight& WithUnit(VehicleWeightUnit value) { SetUnit(value); return *this;}
63 private:
64
65 double m_total{0.0};
66 bool m_totalHasBeenSet = false;
67
69 bool m_unitHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace LocationService
74} // namespace Aws
TruckWeight & WithTotal(double value)
Definition TruckWeight.h:50
VehicleWeightUnit GetUnit() const
Definition TruckWeight.h:58
TruckWeight & WithUnit(VehicleWeightUnit value)
Definition TruckWeight.h:61
AWS_LOCATIONSERVICE_API TruckWeight(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(VehicleWeightUnit value)
Definition TruckWeight.h:60
AWS_LOCATIONSERVICE_API TruckWeight & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOCATIONSERVICE_API TruckWeight()=default
Aws::Utils::Json::JsonValue JsonValue