AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Scale.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/ScaleUnit.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 ECS
22{
23namespace Model
24{
25
32 class Scale
33 {
34 public:
35 AWS_ECS_API Scale();
36 AWS_ECS_API Scale(Aws::Utils::Json::JsonView jsonValue);
39
40
42
47 inline double GetValue() const{ return m_value; }
48 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
49 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
50 inline Scale& WithValue(double value) { SetValue(value); return *this;}
52
54
57 inline const ScaleUnit& GetUnit() const{ return m_unit; }
58 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
59 inline void SetUnit(const ScaleUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
60 inline void SetUnit(ScaleUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
61 inline Scale& WithUnit(const ScaleUnit& value) { SetUnit(value); return *this;}
62 inline Scale& WithUnit(ScaleUnit&& value) { SetUnit(std::move(value)); return *this;}
64 private:
65
66 double m_value;
67 bool m_valueHasBeenSet = false;
68
69 ScaleUnit m_unit;
70 bool m_unitHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace ECS
75} // namespace Aws
bool ValueHasBeenSet() const
Definition Scale.h:48
void SetValue(double value)
Definition Scale.h:49
Scale & WithValue(double value)
Definition Scale.h:50
AWS_ECS_API Scale(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(const ScaleUnit &value)
Definition Scale.h:59
AWS_ECS_API Scale & operator=(Aws::Utils::Json::JsonView jsonValue)
bool UnitHasBeenSet() const
Definition Scale.h:58
Scale & WithUnit(ScaleUnit &&value)
Definition Scale.h:62
Scale & WithUnit(const ScaleUnit &value)
Definition Scale.h:61
const ScaleUnit & GetUnit() const
Definition Scale.h:57
void SetUnit(ScaleUnit &&value)
Definition Scale.h:60
double GetValue() const
Definition Scale.h:47
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue