AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
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
30 public:
31 AWS_LOCATIONSERVICE_API TruckWeight() = default;
32 AWS_LOCATIONSERVICE_API TruckWeight(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LOCATIONSERVICE_API TruckWeight& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline double GetTotal() const { return m_total; }
42 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
43 inline void SetTotal(double value) {
44 m_totalHasBeenSet = true;
45 m_total = value;
46 }
47 inline TruckWeight& WithTotal(double value) {
48 SetTotal(value);
49 return *this;
50 }
52
54
58 inline VehicleWeightUnit GetUnit() const { return m_unit; }
59 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
60 inline void SetUnit(VehicleWeightUnit value) {
61 m_unitHasBeenSet = true;
62 m_unit = value;
63 }
65 SetUnit(value);
66 return *this;
67 }
69 private:
70 double m_total{0.0};
71
73 bool m_totalHasBeenSet = false;
74 bool m_unitHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace LocationService
79} // namespace Aws
TruckWeight & WithTotal(double value)
Definition TruckWeight.h:47
VehicleWeightUnit GetUnit() const
Definition TruckWeight.h:58
TruckWeight & WithUnit(VehicleWeightUnit value)
Definition TruckWeight.h:64
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