AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ManagedScaling.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
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
124 inline int GetMinimumScalingStepSize() const{ return m_minimumScalingStepSize; }
125
137 inline bool MinimumScalingStepSizeHasBeenSet() const { return m_minimumScalingStepSizeHasBeenSet; }
138
150 inline void SetMinimumScalingStepSize(int value) { m_minimumScalingStepSizeHasBeenSet = true; m_minimumScalingStepSize = value; }
151
163 inline ManagedScaling& WithMinimumScalingStepSize(int value) { SetMinimumScalingStepSize(value); return *this;}
164
165
171 inline int GetMaximumScalingStepSize() const{ return m_maximumScalingStepSize; }
172
178 inline bool MaximumScalingStepSizeHasBeenSet() const { return m_maximumScalingStepSizeHasBeenSet; }
179
185 inline void SetMaximumScalingStepSize(int value) { m_maximumScalingStepSizeHasBeenSet = true; m_maximumScalingStepSize = value; }
186
192 inline ManagedScaling& WithMaximumScalingStepSize(int value) { SetMaximumScalingStepSize(value); return *this;}
193
194
200 inline int GetInstanceWarmupPeriod() const{ return m_instanceWarmupPeriod; }
201
207 inline bool InstanceWarmupPeriodHasBeenSet() const { return m_instanceWarmupPeriodHasBeenSet; }
208
214 inline void SetInstanceWarmupPeriod(int value) { m_instanceWarmupPeriodHasBeenSet = true; m_instanceWarmupPeriod = value; }
215
221 inline ManagedScaling& WithInstanceWarmupPeriod(int value) { SetInstanceWarmupPeriod(value); return *this;}
222
223 private:
224
225 ManagedScalingStatus m_status;
226 bool m_statusHasBeenSet = false;
227
228 int m_targetCapacity;
229 bool m_targetCapacityHasBeenSet = false;
230
231 int m_minimumScalingStepSize;
232 bool m_minimumScalingStepSizeHasBeenSet = false;
233
234 int m_maximumScalingStepSize;
235 bool m_maximumScalingStepSizeHasBeenSet = false;
236
237 int m_instanceWarmupPeriod;
238 bool m_instanceWarmupPeriodHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace ECS
243} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetStatus(const ManagedScalingStatus &value)
void SetMaximumScalingStepSize(int value)
void SetMinimumScalingStepSize(int value)
ManagedScaling & WithTargetCapacity(int value)
ManagedScaling & WithStatus(ManagedScalingStatus &&value)
ManagedScaling & WithMinimumScalingStepSize(int value)
bool MinimumScalingStepSizeHasBeenSet() const
bool MaximumScalingStepSizeHasBeenSet() const
const ManagedScalingStatus & GetStatus() const
AWS_ECS_API ManagedScaling & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedScaling & WithMaximumScalingStepSize(int value)
void SetStatus(ManagedScalingStatus &&value)
void SetInstanceWarmupPeriod(int value)
ManagedScaling & WithStatus(const ManagedScalingStatus &value)
AWS_ECS_API ManagedScaling(Aws::Utils::Json::JsonView jsonValue)
ManagedScaling & WithInstanceWarmupPeriod(int value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const