AWS SDK for C++  1.9.104
AWS SDK for C++
AutoScalingThresholds.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace OpsWorks
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
47  inline int GetInstanceCount() const{ return m_instanceCount; }
48 
53  inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
54 
59  inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
60 
65  inline AutoScalingThresholds& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
66 
67 
72  inline int GetThresholdsWaitTime() const{ return m_thresholdsWaitTime; }
73 
78  inline bool ThresholdsWaitTimeHasBeenSet() const { return m_thresholdsWaitTimeHasBeenSet; }
79 
84  inline void SetThresholdsWaitTime(int value) { m_thresholdsWaitTimeHasBeenSet = true; m_thresholdsWaitTime = value; }
85 
90  inline AutoScalingThresholds& WithThresholdsWaitTime(int value) { SetThresholdsWaitTime(value); return *this;}
91 
92 
103  inline int GetIgnoreMetricsTime() const{ return m_ignoreMetricsTime; }
104 
115  inline bool IgnoreMetricsTimeHasBeenSet() const { return m_ignoreMetricsTimeHasBeenSet; }
116 
127  inline void SetIgnoreMetricsTime(int value) { m_ignoreMetricsTimeHasBeenSet = true; m_ignoreMetricsTime = value; }
128 
139  inline AutoScalingThresholds& WithIgnoreMetricsTime(int value) { SetIgnoreMetricsTime(value); return *this;}
140 
141 
146  inline double GetCpuThreshold() const{ return m_cpuThreshold; }
147 
152  inline bool CpuThresholdHasBeenSet() const { return m_cpuThresholdHasBeenSet; }
153 
158  inline void SetCpuThreshold(double value) { m_cpuThresholdHasBeenSet = true; m_cpuThreshold = value; }
159 
164  inline AutoScalingThresholds& WithCpuThreshold(double value) { SetCpuThreshold(value); return *this;}
165 
166 
171  inline double GetMemoryThreshold() const{ return m_memoryThreshold; }
172 
177  inline bool MemoryThresholdHasBeenSet() const { return m_memoryThresholdHasBeenSet; }
178 
183  inline void SetMemoryThreshold(double value) { m_memoryThresholdHasBeenSet = true; m_memoryThreshold = value; }
184 
189  inline AutoScalingThresholds& WithMemoryThreshold(double value) { SetMemoryThreshold(value); return *this;}
190 
191 
198  inline double GetLoadThreshold() const{ return m_loadThreshold; }
199 
206  inline bool LoadThresholdHasBeenSet() const { return m_loadThresholdHasBeenSet; }
207 
214  inline void SetLoadThreshold(double value) { m_loadThresholdHasBeenSet = true; m_loadThreshold = value; }
215 
222  inline AutoScalingThresholds& WithLoadThreshold(double value) { SetLoadThreshold(value); return *this;}
223 
224 
235  inline const Aws::Vector<Aws::String>& GetAlarms() const{ return m_alarms; }
236 
247  inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
248 
259  inline void SetAlarms(const Aws::Vector<Aws::String>& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
260 
271  inline void SetAlarms(Aws::Vector<Aws::String>&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
272 
283  inline AutoScalingThresholds& WithAlarms(const Aws::Vector<Aws::String>& value) { SetAlarms(value); return *this;}
284 
295  inline AutoScalingThresholds& WithAlarms(Aws::Vector<Aws::String>&& value) { SetAlarms(std::move(value)); return *this;}
296 
307  inline AutoScalingThresholds& AddAlarms(const Aws::String& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
308 
319  inline AutoScalingThresholds& AddAlarms(Aws::String&& value) { m_alarmsHasBeenSet = true; m_alarms.push_back(std::move(value)); return *this; }
320 
331  inline AutoScalingThresholds& AddAlarms(const char* value) { m_alarmsHasBeenSet = true; m_alarms.push_back(value); return *this; }
332 
333  private:
334 
335  int m_instanceCount;
336  bool m_instanceCountHasBeenSet;
337 
338  int m_thresholdsWaitTime;
339  bool m_thresholdsWaitTimeHasBeenSet;
340 
341  int m_ignoreMetricsTime;
342  bool m_ignoreMetricsTimeHasBeenSet;
343 
344  double m_cpuThreshold;
345  bool m_cpuThresholdHasBeenSet;
346 
347  double m_memoryThreshold;
348  bool m_memoryThresholdHasBeenSet;
349 
350  double m_loadThreshold;
351  bool m_loadThresholdHasBeenSet;
352 
353  Aws::Vector<Aws::String> m_alarms;
354  bool m_alarmsHasBeenSet;
355  };
356 
357 } // namespace Model
358 } // namespace OpsWorks
359 } // namespace Aws
Aws::OpsWorks::Model::AutoScalingThresholds::SetCpuThreshold
void SetCpuThreshold(double value)
Definition: AutoScalingThresholds.h:158
Aws::OpsWorks::Model::AutoScalingThresholds::GetCpuThreshold
double GetCpuThreshold() const
Definition: AutoScalingThresholds.h:146
Aws::OpsWorks::Model::AutoScalingThresholds::AddAlarms
AutoScalingThresholds & AddAlarms(const Aws::String &value)
Definition: AutoScalingThresholds.h:307
Aws::OpsWorks::Model::AutoScalingThresholds::WithInstanceCount
AutoScalingThresholds & WithInstanceCount(int value)
Definition: AutoScalingThresholds.h:65
Aws::OpsWorks::Model::AutoScalingThresholds::GetLoadThreshold
double GetLoadThreshold() const
Definition: AutoScalingThresholds.h:198
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::AutoScalingThresholds::LoadThresholdHasBeenSet
bool LoadThresholdHasBeenSet() const
Definition: AutoScalingThresholds.h:206
Aws::OpsWorks::Model::AutoScalingThresholds::AddAlarms
AutoScalingThresholds & AddAlarms(Aws::String &&value)
Definition: AutoScalingThresholds.h:319
Aws::OpsWorks::Model::AutoScalingThresholds::InstanceCountHasBeenSet
bool InstanceCountHasBeenSet() const
Definition: AutoScalingThresholds.h:53
Aws::OpsWorks::Model::AutoScalingThresholds::WithAlarms
AutoScalingThresholds & WithAlarms(const Aws::Vector< Aws::String > &value)
Definition: AutoScalingThresholds.h:283
Aws::OpsWorks::Model::AutoScalingThresholds::WithAlarms
AutoScalingThresholds & WithAlarms(Aws::Vector< Aws::String > &&value)
Definition: AutoScalingThresholds.h:295
Aws::OpsWorks::Model::AutoScalingThresholds::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::AutoScalingThresholds::operator=
AutoScalingThresholds & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::AutoScalingThresholds::WithThresholdsWaitTime
AutoScalingThresholds & WithThresholdsWaitTime(int value)
Definition: AutoScalingThresholds.h:90
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::OpsWorks::Model::AutoScalingThresholds::ThresholdsWaitTimeHasBeenSet
bool ThresholdsWaitTimeHasBeenSet() const
Definition: AutoScalingThresholds.h:78
Aws::OpsWorks::Model::AutoScalingThresholds::GetThresholdsWaitTime
int GetThresholdsWaitTime() const
Definition: AutoScalingThresholds.h:72
Aws::OpsWorks::Model::AutoScalingThresholds::GetAlarms
const Aws::Vector< Aws::String > & GetAlarms() const
Definition: AutoScalingThresholds.h:235
AWSVector.h
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::AutoScalingThresholds::SetThresholdsWaitTime
void SetThresholdsWaitTime(int value)
Definition: AutoScalingThresholds.h:84
Aws::OpsWorks::Model::AutoScalingThresholds::WithIgnoreMetricsTime
AutoScalingThresholds & WithIgnoreMetricsTime(int value)
Definition: AutoScalingThresholds.h:139
Aws::OpsWorks::Model::AutoScalingThresholds::SetInstanceCount
void SetInstanceCount(int value)
Definition: AutoScalingThresholds.h:59
Aws::OpsWorks::Model::AutoScalingThresholds
Definition: AutoScalingThresholds.h:35
Aws::OpsWorks::Model::AutoScalingThresholds::AlarmsHasBeenSet
bool AlarmsHasBeenSet() const
Definition: AutoScalingThresholds.h:247
Aws::OpsWorks::Model::AutoScalingThresholds::GetIgnoreMetricsTime
int GetIgnoreMetricsTime() const
Definition: AutoScalingThresholds.h:103
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::OpsWorks::Model::AutoScalingThresholds::SetLoadThreshold
void SetLoadThreshold(double value)
Definition: AutoScalingThresholds.h:214
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::AutoScalingThresholds::AutoScalingThresholds
AutoScalingThresholds()
Aws::OpsWorks::Model::AutoScalingThresholds::SetMemoryThreshold
void SetMemoryThreshold(double value)
Definition: AutoScalingThresholds.h:183
Aws::OpsWorks::Model::AutoScalingThresholds::MemoryThresholdHasBeenSet
bool MemoryThresholdHasBeenSet() const
Definition: AutoScalingThresholds.h:177
Aws::OpsWorks::Model::AutoScalingThresholds::SetAlarms
void SetAlarms(Aws::Vector< Aws::String > &&value)
Definition: AutoScalingThresholds.h:271
Aws::OpsWorks::Model::AutoScalingThresholds::SetAlarms
void SetAlarms(const Aws::Vector< Aws::String > &value)
Definition: AutoScalingThresholds.h:259
Aws::OpsWorks::Model::AutoScalingThresholds::WithLoadThreshold
AutoScalingThresholds & WithLoadThreshold(double value)
Definition: AutoScalingThresholds.h:222
Aws::OpsWorks::Model::AutoScalingThresholds::WithCpuThreshold
AutoScalingThresholds & WithCpuThreshold(double value)
Definition: AutoScalingThresholds.h:164
Aws::OpsWorks::Model::AutoScalingThresholds::IgnoreMetricsTimeHasBeenSet
bool IgnoreMetricsTimeHasBeenSet() const
Definition: AutoScalingThresholds.h:115
Aws::OpsWorks::Model::AutoScalingThresholds::CpuThresholdHasBeenSet
bool CpuThresholdHasBeenSet() const
Definition: AutoScalingThresholds.h:152
Aws::OpsWorks::Model::AutoScalingThresholds::GetInstanceCount
int GetInstanceCount() const
Definition: AutoScalingThresholds.h:47
Aws::OpsWorks::Model::AutoScalingThresholds::SetIgnoreMetricsTime
void SetIgnoreMetricsTime(int value)
Definition: AutoScalingThresholds.h:127
Aws::OpsWorks::Model::AutoScalingThresholds::AutoScalingThresholds
AutoScalingThresholds(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::AutoScalingThresholds::AddAlarms
AutoScalingThresholds & AddAlarms(const char *value)
Definition: AutoScalingThresholds.h:331
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::AutoScalingThresholds::GetMemoryThreshold
double GetMemoryThreshold() const
Definition: AutoScalingThresholds.h:171
Aws::OpsWorks::Model::AutoScalingThresholds::WithMemoryThreshold
AutoScalingThresholds & WithMemoryThreshold(double value)
Definition: AutoScalingThresholds.h:189