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>
50 inline void SetInstanceCount(
int value) { m_instanceCountHasBeenSet =
true; m_instanceCount = value; }
61 inline void SetThresholdsWaitTime(
int value) { m_thresholdsWaitTimeHasBeenSet =
true; m_thresholdsWaitTime = value; }
78 inline void SetIgnoreMetricsTime(
int value) { m_ignoreMetricsTimeHasBeenSet =
true; m_ignoreMetricsTime = value; }
89 inline void SetCpuThreshold(
double value) { m_cpuThresholdHasBeenSet =
true; m_cpuThreshold = value; }
100 inline void SetMemoryThreshold(
double value) { m_memoryThresholdHasBeenSet =
true; m_memoryThreshold = value; }
113 inline void SetLoadThreshold(
double value) { m_loadThresholdHasBeenSet =
true; m_loadThreshold = value; }
130 template<
typename AlarmsT = Aws::Vector<Aws::String>>
131 void SetAlarms(AlarmsT&& value) { m_alarmsHasBeenSet =
true; m_alarms = std::forward<AlarmsT>(value); }
132 template<
typename AlarmsT = Aws::Vector<Aws::String>>
134 template<
typename AlarmsT = Aws::String>
139 int m_instanceCount{0};
140 bool m_instanceCountHasBeenSet =
false;
142 int m_thresholdsWaitTime{0};
143 bool m_thresholdsWaitTimeHasBeenSet =
false;
145 int m_ignoreMetricsTime{0};
146 bool m_ignoreMetricsTimeHasBeenSet =
false;
148 double m_cpuThreshold{0.0};
149 bool m_cpuThresholdHasBeenSet =
false;
151 double m_memoryThreshold{0.0};
152 bool m_memoryThresholdHasBeenSet =
false;
154 double m_loadThreshold{0.0};
155 bool m_loadThresholdHasBeenSet =
false;
158 bool m_alarmsHasBeenSet =
false;
void SetThresholdsWaitTime(int value)
AutoScalingThresholds & WithCpuThreshold(double value)
bool InstanceCountHasBeenSet() const
AutoScalingThresholds & AddAlarms(AlarmsT &&value)
void SetAlarms(AlarmsT &&value)
AWS_OPSWORKS_API AutoScalingThresholds(Aws::Utils::Json::JsonView jsonValue)
int GetThresholdsWaitTime() const
AutoScalingThresholds & WithIgnoreMetricsTime(int value)
int GetIgnoreMetricsTime() const
bool ThresholdsWaitTimeHasBeenSet() const
AWS_OPSWORKS_API AutoScalingThresholds & operator=(Aws::Utils::Json::JsonView jsonValue)
double GetCpuThreshold() const
AutoScalingThresholds & WithAlarms(AlarmsT &&value)
void SetMemoryThreshold(double value)
bool AlarmsHasBeenSet() const
bool IgnoreMetricsTimeHasBeenSet() const
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLoadThreshold(double value)
void SetInstanceCount(int value)
bool CpuThresholdHasBeenSet() const
bool LoadThresholdHasBeenSet() const
AutoScalingThresholds & WithMemoryThreshold(double value)
double GetLoadThreshold() const
AutoScalingThresholds & WithInstanceCount(int value)
int GetInstanceCount() const
double GetMemoryThreshold() const
const Aws::Vector< Aws::String > & GetAlarms() const
AWS_OPSWORKS_API AutoScalingThresholds()=default
AutoScalingThresholds & WithThresholdsWaitTime(int value)
AutoScalingThresholds & WithLoadThreshold(double value)
bool MemoryThresholdHasBeenSet() const
void SetCpuThreshold(double value)
void SetIgnoreMetricsTime(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue