AWS SDK for C++  1.9.153
AWS SDK for C++
Scale.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Scale();
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;
104 
105  ScaleUnit m_unit;
106  bool m_unitHasBeenSet;
107  };
108 
109 } // namespace Model
110 } // namespace ECS
111 } // namespace Aws
Aws::ECS::Model::Scale::WithUnit
Scale & WithUnit(ScaleUnit &&value)
Definition: Scale.h:98
Aws::ECS::Model::Scale::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Scale.h:53
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::Scale::SetUnit
void SetUnit(ScaleUnit &&value)
Definition: Scale.h:88
Aws::ECS::Model::Scale::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::Scale
Definition: Scale.h:33
Aws::ECS::Model::ScaleUnit
ScaleUnit
Definition: ScaleUnit.h:17
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::Scale::SetValue
void SetValue(double value)
Definition: Scale.h:60
Aws::ECS::Model::Scale::Scale
Scale()
ScaleUnit.h
Aws::ECS::Model::Scale::GetUnit
const ScaleUnit & GetUnit() const
Definition: Scale.h:73
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::Scale::WithValue
Scale & WithValue(double value)
Definition: Scale.h:67
Aws::ECS::Model::Scale::WithUnit
Scale & WithUnit(const ScaleUnit &value)
Definition: Scale.h:93
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Scale::operator=
Scale & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::Scale::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: Scale.h:78
Aws::ECS::Model::Scale::SetUnit
void SetUnit(const ScaleUnit &value)
Definition: Scale.h:83
Aws::ECS::Model::Scale::GetValue
double GetValue() const
Definition: Scale.h:46
Aws::ECS::Model::Scale::Scale
Scale(Aws::Utils::Json::JsonView jsonValue)
ECS_EXPORTS.h