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>
51 inline void SetAutoScalingGroupName(
const char* value) { m_autoScalingGroupNameHasBeenSet =
true; m_autoScalingGroupName.assign(value); }
65 inline void SetPolicyName(
const char* value) { m_policyNameHasBeenSet =
true; m_policyName.assign(value); }
82 inline void SetPolicyType(
const char* value) { m_policyTypeHasBeenSet =
true; m_policyType.assign(value); }
102 inline void SetAdjustmentType(
const char* value) { m_adjustmentTypeHasBeenSet =
true; m_adjustmentType.assign(value); }
115 inline void SetMinAdjustmentStep(
int value) { m_minAdjustmentStepHasBeenSet =
true; m_minAdjustmentStep = value; }
152 inline void SetScalingAdjustment(
int value) { m_scalingAdjustmentHasBeenSet =
true; m_scalingAdjustment = value; }
168 inline void SetCooldown(
int value) { m_cooldownHasBeenSet =
true; m_cooldown = value; }
183 inline void SetMetricAggregationType(
const char* value) { m_metricAggregationTypeHasBeenSet =
true; m_metricAggregationType.assign(value); }
257 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
280 bool m_autoScalingGroupNameHasBeenSet =
false;
283 bool m_policyNameHasBeenSet =
false;
286 bool m_policyTypeHasBeenSet =
false;
289 bool m_adjustmentTypeHasBeenSet =
false;
291 int m_minAdjustmentStep;
292 bool m_minAdjustmentStepHasBeenSet =
false;
294 int m_minAdjustmentMagnitude;
295 bool m_minAdjustmentMagnitudeHasBeenSet =
false;
297 int m_scalingAdjustment;
298 bool m_scalingAdjustmentHasBeenSet =
false;
301 bool m_cooldownHasBeenSet =
false;
304 bool m_metricAggregationTypeHasBeenSet =
false;
307 bool m_stepAdjustmentsHasBeenSet =
false;
309 int m_estimatedInstanceWarmup;
310 bool m_estimatedInstanceWarmupHasBeenSet =
false;
313 bool m_targetTrackingConfigurationHasBeenSet =
false;
316 bool m_enabledHasBeenSet =
false;
319 bool m_predictiveScalingConfigurationHasBeenSet =
false;
const Aws::Vector< StepAdjustment > & GetStepAdjustments() const
void SetMetricAggregationType(const char *value)
PutScalingPolicyRequest & WithAdjustmentType(Aws::String &&value)
PutScalingPolicyRequest & WithPolicyType(Aws::String &&value)
const Aws::String & GetMetricAggregationType() const
const Aws::String & GetPolicyType() const
int GetMinAdjustmentMagnitude() const
PutScalingPolicyRequest & WithPredictiveScalingConfiguration(PredictiveScalingConfiguration &&value)
const Aws::String & GetAdjustmentType() const
PutScalingPolicyRequest & WithMetricAggregationType(const char *value)
bool PolicyTypeHasBeenSet() const
PutScalingPolicyRequest & AddStepAdjustments(const StepAdjustment &value)
virtual const char * GetServiceRequestName() const override
void SetAutoScalingGroupName(const char *value)
PutScalingPolicyRequest & WithPolicyName(const Aws::String &value)
PutScalingPolicyRequest & WithTargetTrackingConfiguration(TargetTrackingConfiguration &&value)
void SetStepAdjustments(Aws::Vector< StepAdjustment > &&value)
PutScalingPolicyRequest & AddStepAdjustments(StepAdjustment &&value)
bool MinAdjustmentMagnitudeHasBeenSet() const
void SetAdjustmentType(const char *value)
void SetStepAdjustments(const Aws::Vector< StepAdjustment > &value)
const Aws::String & GetPolicyName() const
bool AdjustmentTypeHasBeenSet() const
PutScalingPolicyRequest & WithMinAdjustmentMagnitude(int value)
PutScalingPolicyRequest & WithMinAdjustmentStep(int value)
void SetPredictiveScalingConfiguration(PredictiveScalingConfiguration &&value)
bool TargetTrackingConfigurationHasBeenSet() const
PutScalingPolicyRequest & WithPredictiveScalingConfiguration(const PredictiveScalingConfiguration &value)
void SetPolicyType(const char *value)
void SetTargetTrackingConfiguration(const TargetTrackingConfiguration &value)
void SetMinAdjustmentMagnitude(int value)
bool AutoScalingGroupNameHasBeenSet() const
bool EstimatedInstanceWarmupHasBeenSet() const
void SetPolicyName(Aws::String &&value)
PutScalingPolicyRequest & WithAdjustmentType(const Aws::String &value)
void SetTargetTrackingConfiguration(TargetTrackingConfiguration &&value)
void SetAdjustmentType(const Aws::String &value)
bool MetricAggregationTypeHasBeenSet() const
PutScalingPolicyRequest & WithTargetTrackingConfiguration(const TargetTrackingConfiguration &value)
PutScalingPolicyRequest & WithScalingAdjustment(int value)
void SetAutoScalingGroupName(const Aws::String &value)
void SetPolicyName(const char *value)
void SetScalingAdjustment(int value)
void SetEstimatedInstanceWarmup(int value)
void SetEnabled(bool value)
void SetPolicyType(Aws::String &&value)
void SetMetricAggregationType(Aws::String &&value)
PutScalingPolicyRequest & WithAutoScalingGroupName(const char *value)
int GetEstimatedInstanceWarmup() const
PutScalingPolicyRequest & WithAutoScalingGroupName(const Aws::String &value)
const Aws::String & GetAutoScalingGroupName() const
void SetAutoScalingGroupName(Aws::String &&value)
void SetMetricAggregationType(const Aws::String &value)
const PredictiveScalingConfiguration & GetPredictiveScalingConfiguration() const
void SetPolicyType(const Aws::String &value)
PutScalingPolicyRequest & WithPolicyName(Aws::String &&value)
void SetPredictiveScalingConfiguration(const PredictiveScalingConfiguration &value)
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)
PutScalingPolicyRequest & WithPolicyType(const char *value)
PutScalingPolicyRequest & WithPolicyType(const Aws::String &value)
int GetMinAdjustmentStep() const
PutScalingPolicyRequest & WithMetricAggregationType(const Aws::String &value)
void SetPolicyName(const Aws::String &value)
bool EnabledHasBeenSet() const
PutScalingPolicyRequest & WithStepAdjustments(const Aws::Vector< StepAdjustment > &value)
bool CooldownHasBeenSet() const
bool MinAdjustmentStepHasBeenSet() const
void SetCooldown(int value)
PutScalingPolicyRequest & WithAdjustmentType(const char *value)
PutScalingPolicyRequest & WithCooldown(int value)
PutScalingPolicyRequest & WithAutoScalingGroupName(Aws::String &&value)
bool ScalingAdjustmentHasBeenSet() const
PutScalingPolicyRequest & WithMetricAggregationType(Aws::String &&value)
void SetAdjustmentType(Aws::String &&value)
PutScalingPolicyRequest & WithStepAdjustments(Aws::Vector< StepAdjustment > &&value)
PutScalingPolicyRequest & WithPolicyName(const char *value)
bool PolicyNameHasBeenSet() const
AWS_AUTOSCALING_API PutScalingPolicyRequest()
bool PredictiveScalingConfigurationHasBeenSet() const
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