7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/AdjustmentType.h>
9#include <aws/application-autoscaling/model/MetricAggregationType.h>
10#include <aws/application-autoscaling/model/StepAdjustment.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
22namespace ApplicationAutoScaling {
53 m_adjustmentTypeHasBeenSet =
true;
54 m_adjustmentType = value;
70 template <
typename StepAdjustmentsT = Aws::Vector<StepAdjustment>>
72 m_stepAdjustmentsHasBeenSet =
true;
73 m_stepAdjustments = std::forward<StepAdjustmentsT>(value);
75 template <
typename StepAdjustmentsT = Aws::Vector<StepAdjustment>>
80 template <
typename StepAdjustmentsT = StepAdjustment>
82 m_stepAdjustmentsHasBeenSet =
true;
83 m_stepAdjustments.emplace_back(std::forward<StepAdjustmentsT>(value));
101 m_minAdjustmentMagnitudeHasBeenSet =
true;
102 m_minAdjustmentMagnitude = value;
121 m_cooldownHasBeenSet =
true;
139 m_metricAggregationTypeHasBeenSet =
true;
140 m_metricAggregationType = value;
152 int m_minAdjustmentMagnitude{0};
157 bool m_adjustmentTypeHasBeenSet =
false;
158 bool m_stepAdjustmentsHasBeenSet =
false;
159 bool m_minAdjustmentMagnitudeHasBeenSet =
false;
160 bool m_cooldownHasBeenSet =
false;
161 bool m_metricAggregationTypeHasBeenSet =
false;
bool MinAdjustmentMagnitudeHasBeenSet() const
void SetMinAdjustmentMagnitude(int value)
StepScalingPolicyConfiguration & WithMetricAggregationType(MetricAggregationType value)
bool MetricAggregationTypeHasBeenSet() const
AWS_APPLICATIONAUTOSCALING_API StepScalingPolicyConfiguration(Aws::Utils::Json::JsonView jsonValue)
StepScalingPolicyConfiguration & WithMinAdjustmentMagnitude(int value)
MetricAggregationType GetMetricAggregationType() const
void SetCooldown(int value)
bool CooldownHasBeenSet() const
bool AdjustmentTypeHasBeenSet() const
const Aws::Vector< StepAdjustment > & GetStepAdjustments() const
bool StepAdjustmentsHasBeenSet() const
StepScalingPolicyConfiguration & WithStepAdjustments(StepAdjustmentsT &&value)
AWS_APPLICATIONAUTOSCALING_API StepScalingPolicyConfiguration()=default
void SetAdjustmentType(AdjustmentType value)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
AdjustmentType GetAdjustmentType() const
void SetStepAdjustments(StepAdjustmentsT &&value)
StepScalingPolicyConfiguration & AddStepAdjustments(StepAdjustmentsT &&value)
AWS_APPLICATIONAUTOSCALING_API StepScalingPolicyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
StepScalingPolicyConfiguration & WithAdjustmentType(AdjustmentType value)
int GetMinAdjustmentMagnitude() const
StepScalingPolicyConfiguration & WithCooldown(int value)
void SetMetricAggregationType(MetricAggregationType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue