7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/autoscaling/model/TargetTrackingConfiguration.h>
12#include <aws/autoscaling/model/PredictiveScalingConfiguration.h>
13#include <aws/autoscaling/model/StepAdjustment.h>
49 template<
typename AutoScalingGroupNameT = Aws::String>
50 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) { m_autoScalingGroupNameHasBeenSet =
true; m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value); }
51 template<
typename AutoScalingGroupNameT = Aws::String>
61 template<
typename PolicyNameT = Aws::String>
62 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet =
true; m_policyName = std::forward<PolicyNameT>(value); }
63 template<
typename PolicyNameT = Aws::String>
76 template<
typename PolicyTypeT = Aws::String>
77 void SetPolicyType(PolicyTypeT&& value) { m_policyTypeHasBeenSet =
true; m_policyType = std::forward<PolicyTypeT>(value); }
78 template<
typename PolicyTypeT = Aws::String>
94 template<
typename AdjustmentTypeT = Aws::String>
95 void SetAdjustmentType(AdjustmentTypeT&& value) { m_adjustmentTypeHasBeenSet =
true; m_adjustmentType = std::forward<AdjustmentTypeT>(value); }
96 template<
typename AdjustmentTypeT = Aws::String>
107 inline void SetMinAdjustmentStep(
int value) { m_minAdjustmentStepHasBeenSet =
true; m_minAdjustmentStep = value; }
144 inline void SetScalingAdjustment(
int value) { m_scalingAdjustmentHasBeenSet =
true; m_scalingAdjustment = value; }
160 inline void SetCooldown(
int value) { m_cooldownHasBeenSet =
true; m_cooldown = value; }
173 template<
typename MetricAggregationTypeT = Aws::String>
174 void SetMetricAggregationType(MetricAggregationTypeT&& value) { m_metricAggregationTypeHasBeenSet =
true; m_metricAggregationType = std::forward<MetricAggregationTypeT>(value); }
175 template<
typename MetricAggregationTypeT = Aws::String>
187 template<
typename StepAdjustmentsT = Aws::Vector<StepAdjustment>>
188 void SetStepAdjustments(StepAdjustmentsT&& value) { m_stepAdjustmentsHasBeenSet =
true; m_stepAdjustments = std::forward<StepAdjustmentsT>(value); }
189 template<
typename StepAdjustmentsT = Aws::Vector<StepAdjustment>>
191 template<
typename StepAdjustmentsT = StepAdjustment>
231 template<
typename TargetTrackingConfigurationT = TargetTrackingConfiguration>
232 void SetTargetTrackingConfiguration(TargetTrackingConfigurationT&& value) { m_targetTrackingConfigurationHasBeenSet =
true; m_targetTrackingConfiguration = std::forward<TargetTrackingConfigurationT>(value); }
233 template<
typename TargetTrackingConfigurationT = TargetTrackingConfiguration>
247 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
262 template<
typename PredictiveScalingConfigurationT = PredictiveScalingConfiguration>
263 void SetPredictiveScalingConfiguration(PredictiveScalingConfigurationT&& value) { m_predictiveScalingConfigurationHasBeenSet =
true; m_predictiveScalingConfiguration = std::forward<PredictiveScalingConfigurationT>(value); }
264 template<
typename PredictiveScalingConfigurationT = PredictiveScalingConfiguration>
270 bool m_autoScalingGroupNameHasBeenSet =
false;
273 bool m_policyNameHasBeenSet =
false;
276 bool m_policyTypeHasBeenSet =
false;
279 bool m_adjustmentTypeHasBeenSet =
false;
281 int m_minAdjustmentStep{0};
282 bool m_minAdjustmentStepHasBeenSet =
false;
284 int m_minAdjustmentMagnitude{0};
285 bool m_minAdjustmentMagnitudeHasBeenSet =
false;
287 int m_scalingAdjustment{0};
288 bool m_scalingAdjustmentHasBeenSet =
false;
291 bool m_cooldownHasBeenSet =
false;
294 bool m_metricAggregationTypeHasBeenSet =
false;
297 bool m_stepAdjustmentsHasBeenSet =
false;
299 int m_estimatedInstanceWarmup{0};
300 bool m_estimatedInstanceWarmupHasBeenSet =
false;
302 TargetTrackingConfiguration m_targetTrackingConfiguration;
303 bool m_targetTrackingConfigurationHasBeenSet =
false;
305 bool m_enabled{
false};
306 bool m_enabledHasBeenSet =
false;
308 PredictiveScalingConfiguration m_predictiveScalingConfiguration;
309 bool m_predictiveScalingConfigurationHasBeenSet =
false;
const Aws::Vector< StepAdjustment > & GetStepAdjustments() const
void SetAutoScalingGroupName(AutoScalingGroupNameT &&value)
const Aws::String & GetMetricAggregationType() const
const Aws::String & GetPolicyType() const
int GetMinAdjustmentMagnitude() const
const Aws::String & GetAdjustmentType() const
bool PolicyTypeHasBeenSet() const
virtual const char * GetServiceRequestName() const override
void SetMetricAggregationType(MetricAggregationTypeT &&value)
void SetPolicyType(PolicyTypeT &&value)
PutScalingPolicyRequest & WithPredictiveScalingConfiguration(PredictiveScalingConfigurationT &&value)
bool MinAdjustmentMagnitudeHasBeenSet() const
void SetPolicyName(PolicyNameT &&value)
PutScalingPolicyRequest & WithStepAdjustments(StepAdjustmentsT &&value)
const Aws::String & GetPolicyName() const
bool AdjustmentTypeHasBeenSet() const
PutScalingPolicyRequest & WithMinAdjustmentMagnitude(int value)
PutScalingPolicyRequest & WithMinAdjustmentStep(int value)
PutScalingPolicyRequest & WithPolicyType(PolicyTypeT &&value)
bool TargetTrackingConfigurationHasBeenSet() const
void SetPredictiveScalingConfiguration(PredictiveScalingConfigurationT &&value)
void SetMinAdjustmentMagnitude(int value)
bool AutoScalingGroupNameHasBeenSet() const
bool EstimatedInstanceWarmupHasBeenSet() const
PutScalingPolicyRequest & WithPolicyName(PolicyNameT &&value)
PutScalingPolicyRequest & AddStepAdjustments(StepAdjustmentsT &&value)
AWS_AUTOSCALING_API PutScalingPolicyRequest()=default
bool MetricAggregationTypeHasBeenSet() const
PutScalingPolicyRequest & WithScalingAdjustment(int value)
void SetScalingAdjustment(int value)
void SetEstimatedInstanceWarmup(int value)
void SetEnabled(bool value)
int GetEstimatedInstanceWarmup() const
const Aws::String & GetAutoScalingGroupName() const
const PredictiveScalingConfiguration & GetPredictiveScalingConfiguration() const
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
bool StepAdjustmentsHasBeenSet() const
PutScalingPolicyRequest & WithEstimatedInstanceWarmup(int value)
PutScalingPolicyRequest & WithEnabled(bool value)
const TargetTrackingConfiguration & GetTargetTrackingConfiguration() const
int GetScalingAdjustment() const
void SetMinAdjustmentStep(int value)
int GetMinAdjustmentStep() const
bool EnabledHasBeenSet() const
PutScalingPolicyRequest & WithMetricAggregationType(MetricAggregationTypeT &&value)
bool CooldownHasBeenSet() const
bool MinAdjustmentStepHasBeenSet() const
void SetTargetTrackingConfiguration(TargetTrackingConfigurationT &&value)
void SetCooldown(int value)
PutScalingPolicyRequest & WithCooldown(int value)
bool ScalingAdjustmentHasBeenSet() const
PutScalingPolicyRequest & WithTargetTrackingConfiguration(TargetTrackingConfigurationT &&value)
PutScalingPolicyRequest & WithAdjustmentType(AdjustmentTypeT &&value)
bool PolicyNameHasBeenSet() const
void SetAdjustmentType(AdjustmentTypeT &&value)
bool PredictiveScalingConfigurationHasBeenSet() const
PutScalingPolicyRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
void SetStepAdjustments(StepAdjustmentsT &&value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector