7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/PredefinedMetricSpecification.h>
9#include <aws/application-autoscaling/model/CustomizedMetricSpecification.h>
22namespace ApplicationAutoScaling
59 inline void SetTargetValue(
double value) { m_targetValueHasBeenSet =
true; m_targetValue = value; }
98 inline void SetScaleOutCooldown(
int value) { m_scaleOutCooldownHasBeenSet =
true; m_scaleOutCooldown = value; }
112 inline void SetScaleInCooldown(
int value) { m_scaleInCooldownHasBeenSet =
true; m_scaleInCooldown = value; }
126 inline void SetDisableScaleIn(
bool value) { m_disableScaleInHasBeenSet =
true; m_disableScaleIn = value; }
131 double m_targetValue;
132 bool m_targetValueHasBeenSet =
false;
135 bool m_predefinedMetricSpecificationHasBeenSet =
false;
138 bool m_customizedMetricSpecificationHasBeenSet =
false;
140 int m_scaleOutCooldown;
141 bool m_scaleOutCooldownHasBeenSet =
false;
143 int m_scaleInCooldown;
144 bool m_scaleInCooldownHasBeenSet =
false;
146 bool m_disableScaleIn;
147 bool m_disableScaleInHasBeenSet =
false;
TargetTrackingScalingPolicyConfiguration & WithScaleInCooldown(int value)
bool ScaleOutCooldownHasBeenSet() const
bool DisableScaleInHasBeenSet() const
int GetScaleOutCooldown() const
bool CustomizedMetricSpecificationHasBeenSet() const
void SetPredefinedMetricSpecification(PredefinedMetricSpecification &&value)
TargetTrackingScalingPolicyConfiguration & WithScaleOutCooldown(int value)
bool TargetValueHasBeenSet() const
void SetPredefinedMetricSpecification(const PredefinedMetricSpecification &value)
void SetDisableScaleIn(bool value)
bool ScaleInCooldownHasBeenSet() const
void SetTargetValue(double value)
AWS_APPLICATIONAUTOSCALING_API TargetTrackingScalingPolicyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONAUTOSCALING_API TargetTrackingScalingPolicyConfiguration(Aws::Utils::Json::JsonView jsonValue)
const CustomizedMetricSpecification & GetCustomizedMetricSpecification() const
void SetScaleInCooldown(int value)
void SetCustomizedMetricSpecification(const CustomizedMetricSpecification &value)
bool GetDisableScaleIn() const
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
TargetTrackingScalingPolicyConfiguration & WithCustomizedMetricSpecification(const CustomizedMetricSpecification &value)
TargetTrackingScalingPolicyConfiguration & WithTargetValue(double value)
const PredefinedMetricSpecification & GetPredefinedMetricSpecification() const
TargetTrackingScalingPolicyConfiguration & WithPredefinedMetricSpecification(const PredefinedMetricSpecification &value)
void SetCustomizedMetricSpecification(CustomizedMetricSpecification &&value)
int GetScaleInCooldown() const
AWS_APPLICATIONAUTOSCALING_API TargetTrackingScalingPolicyConfiguration()
TargetTrackingScalingPolicyConfiguration & WithPredefinedMetricSpecification(PredefinedMetricSpecification &&value)
void SetScaleOutCooldown(int value)
bool PredefinedMetricSpecificationHasBeenSet() const
TargetTrackingScalingPolicyConfiguration & WithCustomizedMetricSpecification(CustomizedMetricSpecification &&value)
double GetTargetValue() const
TargetTrackingScalingPolicyConfiguration & WithDisableScaleIn(bool value)
Aws::Utils::Json::JsonValue JsonValue