AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Scale.h
Go to the documentation of this file.
1
6#pragma once
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 ECS
22{
23namespace Model
24{
25
32 class Scale
33 {
34 public:
39
40
46 inline double GetValue() const{ return m_value; }
47
53 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
54
60 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
61
67 inline Scale& WithValue(double value) { SetValue(value); return *this;}
68
69
73 inline const ScaleUnit& GetUnit() const{ return m_unit; }
74
78 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
79
83 inline void SetUnit(const ScaleUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
84
88 inline void SetUnit(ScaleUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
89
93 inline Scale& WithUnit(const ScaleUnit& value) { SetUnit(value); return *this;}
94
98 inline Scale& WithUnit(ScaleUnit&& value) { SetUnit(std::move(value)); return *this;}
99
100 private:
101
102 double m_value;
103 bool m_valueHasBeenSet = false;
104
105 ScaleUnit m_unit;
106 bool m_unitHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ECS
111} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
bool ValueHasBeenSet() const
Definition: Scale.h:53
void SetValue(double value)
Definition: Scale.h:60
Scale & WithValue(double value)
Definition: Scale.h:67
AWS_ECS_API Scale(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(const ScaleUnit &value)
Definition: Scale.h:83
AWS_ECS_API Scale & operator=(Aws::Utils::Json::JsonView jsonValue)
bool UnitHasBeenSet() const
Definition: Scale.h:78
Scale & WithUnit(ScaleUnit &&value)
Definition: Scale.h:98
Scale & WithUnit(const ScaleUnit &value)
Definition: Scale.h:93
const ScaleUnit & GetUnit() const
Definition: Scale.h:73
void SetUnit(ScaleUnit &&value)
Definition: Scale.h:88
double GetValue() const
Definition: Scale.h:46
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const