AWS SDK for C++  1.9.160
AWS SDK for C++
ManagedScaling.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 
41  {
42  public:
47 
48 
52  inline const ManagedScalingStatus& GetStatus() const{ return m_status; }
53 
57  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
58 
62  inline void SetStatus(const ManagedScalingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
63 
67  inline void SetStatus(ManagedScalingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
68 
72  inline ManagedScaling& WithStatus(const ManagedScalingStatus& value) { SetStatus(value); return *this;}
73 
77  inline ManagedScaling& WithStatus(ManagedScalingStatus&& value) { SetStatus(std::move(value)); return *this;}
78 
79 
86  inline int GetTargetCapacity() const{ return m_targetCapacity; }
87 
94  inline bool TargetCapacityHasBeenSet() const { return m_targetCapacityHasBeenSet; }
95 
102  inline void SetTargetCapacity(int value) { m_targetCapacityHasBeenSet = true; m_targetCapacity = value; }
103 
110  inline ManagedScaling& WithTargetCapacity(int value) { SetTargetCapacity(value); return *this;}
111 
112 
118  inline int GetMinimumScalingStepSize() const{ return m_minimumScalingStepSize; }
119 
125  inline bool MinimumScalingStepSizeHasBeenSet() const { return m_minimumScalingStepSizeHasBeenSet; }
126 
132  inline void SetMinimumScalingStepSize(int value) { m_minimumScalingStepSizeHasBeenSet = true; m_minimumScalingStepSize = value; }
133 
139  inline ManagedScaling& WithMinimumScalingStepSize(int value) { SetMinimumScalingStepSize(value); return *this;}
140 
141 
147  inline int GetMaximumScalingStepSize() const{ return m_maximumScalingStepSize; }
148 
154  inline bool MaximumScalingStepSizeHasBeenSet() const { return m_maximumScalingStepSizeHasBeenSet; }
155 
161  inline void SetMaximumScalingStepSize(int value) { m_maximumScalingStepSizeHasBeenSet = true; m_maximumScalingStepSize = value; }
162 
168  inline ManagedScaling& WithMaximumScalingStepSize(int value) { SetMaximumScalingStepSize(value); return *this;}
169 
170 
176  inline int GetInstanceWarmupPeriod() const{ return m_instanceWarmupPeriod; }
177 
183  inline bool InstanceWarmupPeriodHasBeenSet() const { return m_instanceWarmupPeriodHasBeenSet; }
184 
190  inline void SetInstanceWarmupPeriod(int value) { m_instanceWarmupPeriodHasBeenSet = true; m_instanceWarmupPeriod = value; }
191 
197  inline ManagedScaling& WithInstanceWarmupPeriod(int value) { SetInstanceWarmupPeriod(value); return *this;}
198 
199  private:
200 
201  ManagedScalingStatus m_status;
202  bool m_statusHasBeenSet;
203 
204  int m_targetCapacity;
205  bool m_targetCapacityHasBeenSet;
206 
207  int m_minimumScalingStepSize;
208  bool m_minimumScalingStepSizeHasBeenSet;
209 
210  int m_maximumScalingStepSize;
211  bool m_maximumScalingStepSizeHasBeenSet;
212 
213  int m_instanceWarmupPeriod;
214  bool m_instanceWarmupPeriodHasBeenSet;
215  };
216 
217 } // namespace Model
218 } // namespace ECS
219 } // namespace Aws
Aws::ECS::Model::ManagedScaling::GetTargetCapacity
int GetTargetCapacity() const
Definition: ManagedScaling.h:86
Aws::ECS::Model::ManagedScaling::ManagedScaling
ManagedScaling(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ManagedScaling::MaximumScalingStepSizeHasBeenSet
bool MaximumScalingStepSizeHasBeenSet() const
Definition: ManagedScaling.h:154
Aws::ECS::Model::ManagedScaling::GetInstanceWarmupPeriod
int GetInstanceWarmupPeriod() const
Definition: ManagedScaling.h:176
Aws::ECS::Model::ManagedScaling::WithMaximumScalingStepSize
ManagedScaling & WithMaximumScalingStepSize(int value)
Definition: ManagedScaling.h:168
Aws::ECS::Model::ManagedScaling::GetStatus
const ManagedScalingStatus & GetStatus() const
Definition: ManagedScaling.h:52
Aws::ECS::Model::ManagedScaling::operator=
ManagedScaling & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ManagedScaling::SetMaximumScalingStepSize
void SetMaximumScalingStepSize(int value)
Definition: ManagedScaling.h:161
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ManagedScalingStatus
ManagedScalingStatus
Definition: ManagedScalingStatus.h:17
Aws::ECS::Model::ManagedScaling::SetMinimumScalingStepSize
void SetMinimumScalingStepSize(int value)
Definition: ManagedScaling.h:132
Aws::ECS::Model::ManagedScaling::ManagedScaling
ManagedScaling()
Aws::ECS::Model::ManagedScaling::SetStatus
void SetStatus(ManagedScalingStatus &&value)
Definition: ManagedScaling.h:67
Aws::ECS::Model::ManagedScaling::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::ManagedScaling::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: ManagedScaling.h:57
Aws::ECS::Model::ManagedScaling::WithStatus
ManagedScaling & WithStatus(const ManagedScalingStatus &value)
Definition: ManagedScaling.h:72
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ECS::Model::ManagedScaling::WithTargetCapacity
ManagedScaling & WithTargetCapacity(int value)
Definition: ManagedScaling.h:110
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::ManagedScaling::SetInstanceWarmupPeriod
void SetInstanceWarmupPeriod(int value)
Definition: ManagedScaling.h:190
Aws::ECS::Model::ManagedScaling::GetMinimumScalingStepSize
int GetMinimumScalingStepSize() const
Definition: ManagedScaling.h:118
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ManagedScaling::SetStatus
void SetStatus(const ManagedScalingStatus &value)
Definition: ManagedScaling.h:62
Aws::ECS::Model::ManagedScaling::WithMinimumScalingStepSize
ManagedScaling & WithMinimumScalingStepSize(int value)
Definition: ManagedScaling.h:139
ManagedScalingStatus.h
Aws::ECS::Model::ManagedScaling::TargetCapacityHasBeenSet
bool TargetCapacityHasBeenSet() const
Definition: ManagedScaling.h:94
Aws::ECS::Model::ManagedScaling::MinimumScalingStepSizeHasBeenSet
bool MinimumScalingStepSizeHasBeenSet() const
Definition: ManagedScaling.h:125
Aws::ECS::Model::ManagedScaling::WithStatus
ManagedScaling & WithStatus(ManagedScalingStatus &&value)
Definition: ManagedScaling.h:77
Aws::ECS::Model::ManagedScaling::InstanceWarmupPeriodHasBeenSet
bool InstanceWarmupPeriodHasBeenSet() const
Definition: ManagedScaling.h:183
Aws::ECS::Model::ManagedScaling
Definition: ManagedScaling.h:41
ECS_EXPORTS.h
Aws::ECS::Model::ManagedScaling::WithInstanceWarmupPeriod
ManagedScaling & WithInstanceWarmupPeriod(int value)
Definition: ManagedScaling.h:197
Aws::ECS::Model::ManagedScaling::GetMaximumScalingStepSize
int GetMaximumScalingStepSize() const
Definition: ManagedScaling.h:147
Aws::ECS::Model::ManagedScaling::SetTargetCapacity
void SetTargetCapacity(int value)
Definition: ManagedScaling.h:102