AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ManagedScaling.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/ManagedScalingStatus.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
41 {
42 public:
43 AWS_ECS_API ManagedScaling();
47
48
50
53 inline const ManagedScalingStatus& GetStatus() const{ return m_status; }
54 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
55 inline void SetStatus(const ManagedScalingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
56 inline void SetStatus(ManagedScalingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
57 inline ManagedScaling& WithStatus(const ManagedScalingStatus& value) { SetStatus(value); return *this;}
58 inline ManagedScaling& WithStatus(ManagedScalingStatus&& value) { SetStatus(std::move(value)); return *this;}
60
62
71 inline int GetTargetCapacity() const{ return m_targetCapacity; }
72 inline bool TargetCapacityHasBeenSet() const { return m_targetCapacityHasBeenSet; }
73 inline void SetTargetCapacity(int value) { m_targetCapacityHasBeenSet = true; m_targetCapacity = value; }
74 inline ManagedScaling& WithTargetCapacity(int value) { SetTargetCapacity(value); return *this;}
76
78
89 inline int GetMinimumScalingStepSize() const{ return m_minimumScalingStepSize; }
90 inline bool MinimumScalingStepSizeHasBeenSet() const { return m_minimumScalingStepSizeHasBeenSet; }
91 inline void SetMinimumScalingStepSize(int value) { m_minimumScalingStepSizeHasBeenSet = true; m_minimumScalingStepSize = value; }
92 inline ManagedScaling& WithMinimumScalingStepSize(int value) { SetMinimumScalingStepSize(value); return *this;}
94
96
101 inline int GetMaximumScalingStepSize() const{ return m_maximumScalingStepSize; }
102 inline bool MaximumScalingStepSizeHasBeenSet() const { return m_maximumScalingStepSizeHasBeenSet; }
103 inline void SetMaximumScalingStepSize(int value) { m_maximumScalingStepSizeHasBeenSet = true; m_maximumScalingStepSize = value; }
104 inline ManagedScaling& WithMaximumScalingStepSize(int value) { SetMaximumScalingStepSize(value); return *this;}
106
108
113 inline int GetInstanceWarmupPeriod() const{ return m_instanceWarmupPeriod; }
114 inline bool InstanceWarmupPeriodHasBeenSet() const { return m_instanceWarmupPeriodHasBeenSet; }
115 inline void SetInstanceWarmupPeriod(int value) { m_instanceWarmupPeriodHasBeenSet = true; m_instanceWarmupPeriod = value; }
116 inline ManagedScaling& WithInstanceWarmupPeriod(int value) { SetInstanceWarmupPeriod(value); return *this;}
118 private:
119
120 ManagedScalingStatus m_status;
121 bool m_statusHasBeenSet = false;
122
123 int m_targetCapacity;
124 bool m_targetCapacityHasBeenSet = false;
125
126 int m_minimumScalingStepSize;
127 bool m_minimumScalingStepSizeHasBeenSet = false;
128
129 int m_maximumScalingStepSize;
130 bool m_maximumScalingStepSizeHasBeenSet = false;
131
132 int m_instanceWarmupPeriod;
133 bool m_instanceWarmupPeriodHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace ECS
138} // namespace Aws
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
const ManagedScalingStatus & GetStatus() const
AWS_ECS_API ManagedScaling & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedScaling & WithMaximumScalingStepSize(int value)
void SetStatus(ManagedScalingStatus &&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
Aws::Utils::Json::JsonValue JsonValue