AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const VehicleWeightUnit& GetUnit() const{ return m_unit; }
59 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
60 inline void SetUnit(const VehicleWeightUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
61 inline void SetUnit(VehicleWeightUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
62 inline TruckWeight& WithUnit(const VehicleWeightUnit& value) { SetUnit(value); return *this;}
63 inline TruckWeight& WithUnit(VehicleWeightUnit&& value) { SetUnit(std::move(value)); return *this;}
65 private:
66
67 double m_total;
68 bool m_totalHasBeenSet = false;
69
70 VehicleWeightUnit m_unit;
71 bool m_unitHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace LocationService
76} // namespace Aws
TruckWeight & WithTotal(double value)
Definition TruckWeight.h:50
void SetUnit(VehicleWeightUnit &&value)
Definition TruckWeight.h:61
AWS_LOCATIONSERVICE_API TruckWeight()
const VehicleWeightUnit & GetUnit() const
Definition TruckWeight.h:58
AWS_LOCATIONSERVICE_API TruckWeight(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API TruckWeight & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
TruckWeight & WithUnit(VehicleWeightUnit &&value)
Definition TruckWeight.h:63
void SetUnit(const VehicleWeightUnit &value)
Definition TruckWeight.h:60
TruckWeight & WithUnit(const VehicleWeightUnit &value)
Definition TruckWeight.h:62
Aws::Utils::Json::JsonValue JsonValue