AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScalingThresholds.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpsWorks
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_OPSWORKS_API AutoScalingThresholds();
40 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline int GetInstanceCount() const{ return m_instanceCount; }
49 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
50 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
51 inline AutoScalingThresholds& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
53
55
59 inline int GetThresholdsWaitTime() const{ return m_thresholdsWaitTime; }
60 inline bool ThresholdsWaitTimeHasBeenSet() const { return m_thresholdsWaitTimeHasBeenSet; }
61 inline void SetThresholdsWaitTime(int value) { m_thresholdsWaitTimeHasBeenSet = true; m_thresholdsWaitTime = value; }
62 inline AutoScalingThresholds& WithThresholdsWaitTime(int value) { SetThresholdsWaitTime(value); return *this;}
64
66
76 inline int GetIgnoreMetricsTime() const{ return m_ignoreMetricsTime; }
77 inline bool IgnoreMetricsTimeHasBeenSet() const { return m_ignoreMetricsTimeHasBeenSet; }
78 inline void SetIgnoreMetricsTime(int value) { m_ignoreMetricsTimeHasBeenSet = true; m_ignoreMetricsTime = value; }
79 inline AutoScalingThresholds& WithIgnoreMetricsTime(int value) { SetIgnoreMetricsTime(value); return *this;}
81
83
87 inline double GetCpuThreshold() const{ return m_cpuThreshold; }
88 inline bool CpuThresholdHasBeenSet() const { return m_cpuThresholdHasBeenSet; }
89 inline void SetCpuThreshold(double value) { m_cpuThresholdHasBeenSet = true; m_cpuThreshold = value; }
90 inline AutoScalingThresholds& WithCpuThreshold(double value) { SetCpuThreshold(value); return *this;}
92
94
98 inline double GetMemoryThreshold() const{ return m_memoryThreshold; }
99 inline bool MemoryThresholdHasBeenSet() const { return m_memoryThresholdHasBeenSet; }
100 inline void SetMemoryThreshold(double value) { m_memoryThresholdHasBeenSet = true; m_memoryThreshold = value; }
101 inline AutoScalingThresholds& WithMemoryThreshold(double value) { SetMemoryThreshold(value); return *this;}
103
105
111 inline double GetLoadThreshold() const{ return m_loadThreshold; }
112 inline bool LoadThresholdHasBeenSet() const { return m_loadThresholdHasBeenSet; }
113 inline void SetLoadThreshold(double value) { m_loadThresholdHasBeenSet = true; m_loadThreshold = value; }
114 inline AutoScalingThresholds& WithLoadThreshold(double value) { SetLoadThreshold(value); return *this;}
116
118
128 inline const Aws::Vector<Aws::String>& GetAlarms() const{ return m_alarms; }
129 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
130 inline void SetAlarms(const Aws::Vector<Aws::String>& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
131 inline void SetAlarms(Aws::Vector<Aws::String>&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
132 inline AutoScalingThresholds& WithAlarms(const Aws::Vector<Aws::String>& value) { SetAlarms(value); return *this;}
133 inline AutoScalingThresholds& WithAlarms(Aws::Vector<Aws::String>&& value) { SetAlarms(std::move(value)); return *this;}
134 inline AutoScalingThresholds& AddAlarms(const Aws::String& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
135 inline AutoScalingThresholds& AddAlarms(Aws::String&& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(std::move(value)); return *this; }
136 inline AutoScalingThresholds& AddAlarms(const char* value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
138 private:
139
140 int m_instanceCount;
141 bool m_instanceCountHasBeenSet = false;
142
143 int m_thresholdsWaitTime;
144 bool m_thresholdsWaitTimeHasBeenSet = false;
145
146 int m_ignoreMetricsTime;
147 bool m_ignoreMetricsTimeHasBeenSet = false;
148
149 double m_cpuThreshold;
150 bool m_cpuThresholdHasBeenSet = false;
151
152 double m_memoryThreshold;
153 bool m_memoryThresholdHasBeenSet = false;
154
155 double m_loadThreshold;
156 bool m_loadThresholdHasBeenSet = false;
157
159 bool m_alarmsHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace OpsWorks
164} // namespace Aws
AutoScalingThresholds & WithCpuThreshold(double value)
void SetAlarms(const Aws::Vector< Aws::String > &value)
AWS_OPSWORKS_API AutoScalingThresholds(Aws::Utils::Json::JsonView jsonValue)
AutoScalingThresholds & WithIgnoreMetricsTime(int value)
AWS_OPSWORKS_API AutoScalingThresholds & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoScalingThresholds & WithAlarms(const Aws::Vector< Aws::String > &value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
AutoScalingThresholds & AddAlarms(const Aws::String &value)
AutoScalingThresholds & WithMemoryThreshold(double value)
AutoScalingThresholds & WithInstanceCount(int value)
AutoScalingThresholds & AddAlarms(const char *value)
const Aws::Vector< Aws::String > & GetAlarms() const
void SetAlarms(Aws::Vector< Aws::String > &&value)
AutoScalingThresholds & AddAlarms(Aws::String &&value)
AutoScalingThresholds & WithAlarms(Aws::Vector< Aws::String > &&value)
AutoScalingThresholds & WithThresholdsWaitTime(int value)
AutoScalingThresholds & WithLoadThreshold(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue