7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.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>
14#include <aws/autoscaling/model/Alarm.h>
55 inline void SetAutoScalingGroupName(
const char* value) { m_autoScalingGroupNameHasBeenSet =
true; m_autoScalingGroupName.assign(value); }
69 inline void SetPolicyName(
const char* value) { m_policyNameHasBeenSet =
true; m_policyName.assign(value); }
83 inline void SetPolicyARN(
const char* value) { m_policyARNHasBeenSet =
true; m_policyARN.assign(value); }
105 inline void SetPolicyType(
const char* value) { m_policyTypeHasBeenSet =
true; m_policyType.assign(value); }
121 inline void SetAdjustmentType(
const char* value) { m_adjustmentTypeHasBeenSet =
true; m_adjustmentType.assign(value); }
134 inline void SetMinAdjustmentStep(
int value) { m_minAdjustmentStepHasBeenSet =
true; m_minAdjustmentStep = value; }
157 inline void SetScalingAdjustment(
int value) { m_scalingAdjustmentHasBeenSet =
true; m_scalingAdjustment = value; }
167 inline void SetCooldown(
int value) { m_cooldownHasBeenSet =
true; m_cooldown = value; }
195 inline void SetMetricAggregationType(
const char* value) { m_metricAggregationTypeHasBeenSet =
true; m_metricAggregationType.assign(value); }
245 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
263 bool m_autoScalingGroupNameHasBeenSet =
false;
266 bool m_policyNameHasBeenSet =
false;
269 bool m_policyARNHasBeenSet =
false;
272 bool m_policyTypeHasBeenSet =
false;
275 bool m_adjustmentTypeHasBeenSet =
false;
277 int m_minAdjustmentStep;
278 bool m_minAdjustmentStepHasBeenSet =
false;
280 int m_minAdjustmentMagnitude;
281 bool m_minAdjustmentMagnitudeHasBeenSet =
false;
283 int m_scalingAdjustment;
284 bool m_scalingAdjustmentHasBeenSet =
false;
287 bool m_cooldownHasBeenSet =
false;
290 bool m_stepAdjustmentsHasBeenSet =
false;
293 bool m_metricAggregationTypeHasBeenSet =
false;
295 int m_estimatedInstanceWarmup;
296 bool m_estimatedInstanceWarmupHasBeenSet =
false;
299 bool m_alarmsHasBeenSet =
false;
302 bool m_targetTrackingConfigurationHasBeenSet =
false;
305 bool m_enabledHasBeenSet =
false;
308 bool m_predictiveScalingConfigurationHasBeenSet =
false;
const Aws::Vector< Alarm > & GetAlarms() const
void SetMinAdjustmentStep(int value)
ScalingPolicy & WithAdjustmentType(Aws::String &&value)
void SetScalingAdjustment(int value)
void SetTargetTrackingConfiguration(TargetTrackingConfiguration &&value)
ScalingPolicy & WithPolicyName(const char *value)
ScalingPolicy & WithPolicyType(const char *value)
void SetPolicyARN(Aws::String &&value)
void SetEnabled(bool value)
ScalingPolicy & WithPolicyARN(const char *value)
void SetTargetTrackingConfiguration(const TargetTrackingConfiguration &value)
ScalingPolicy & WithAdjustmentType(const char *value)
bool ScalingAdjustmentHasBeenSet() const
ScalingPolicy & WithEnabled(bool value)
AWS_AUTOSCALING_API ScalingPolicy()
ScalingPolicy & WithMetricAggregationType(const Aws::String &value)
void SetPolicyARN(const Aws::String &value)
ScalingPolicy & WithAutoScalingGroupName(Aws::String &&value)
bool MinAdjustmentMagnitudeHasBeenSet() const
const PredictiveScalingConfiguration & GetPredictiveScalingConfiguration() const
const Aws::String & GetPolicyName() const
ScalingPolicy & WithStepAdjustments(Aws::Vector< StepAdjustment > &&value)
ScalingPolicy & AddAlarms(const Alarm &value)
ScalingPolicy & WithMetricAggregationType(const char *value)
void SetAutoScalingGroupName(const Aws::String &value)
bool StepAdjustmentsHasBeenSet() const
bool PolicyARNHasBeenSet() const
void SetPolicyType(Aws::String &&value)
ScalingPolicy & WithScalingAdjustment(int value)
void SetMetricAggregationType(const char *value)
ScalingPolicy & WithEstimatedInstanceWarmup(int value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool AutoScalingGroupNameHasBeenSet() const
void SetMinAdjustmentMagnitude(int value)
int GetMinAdjustmentStep() const
bool AlarmsHasBeenSet() const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAdjustmentType(Aws::String &&value)
AWS_AUTOSCALING_API ScalingPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool CooldownHasBeenSet() const
ScalingPolicy & WithPolicyType(Aws::String &&value)
ScalingPolicy & WithMinAdjustmentStep(int value)
ScalingPolicy & WithAlarms(const Aws::Vector< Alarm > &value)
bool EstimatedInstanceWarmupHasBeenSet() const
ScalingPolicy & WithAdjustmentType(const Aws::String &value)
void SetMetricAggregationType(const Aws::String &value)
const Aws::String & GetPolicyARN() const
ScalingPolicy & WithPredictiveScalingConfiguration(const PredictiveScalingConfiguration &value)
void SetStepAdjustments(Aws::Vector< StepAdjustment > &&value)
const Aws::Vector< StepAdjustment > & GetStepAdjustments() const
ScalingPolicy & WithTargetTrackingConfiguration(const TargetTrackingConfiguration &value)
ScalingPolicy & WithAlarms(Aws::Vector< Alarm > &&value)
ScalingPolicy & AddStepAdjustments(const StepAdjustment &value)
void SetAutoScalingGroupName(const char *value)
void SetPolicyName(const char *value)
ScalingPolicy & WithPolicyARN(const Aws::String &value)
void SetPolicyName(Aws::String &&value)
void SetEstimatedInstanceWarmup(int value)
ScalingPolicy & WithAutoScalingGroupName(const Aws::String &value)
void SetPolicyName(const Aws::String &value)
ScalingPolicy & WithMinAdjustmentMagnitude(int value)
int GetEstimatedInstanceWarmup() const
const Aws::String & GetPolicyType() const
ScalingPolicy & WithTargetTrackingConfiguration(TargetTrackingConfiguration &&value)
bool MetricAggregationTypeHasBeenSet() const
ScalingPolicy & WithCooldown(int value)
bool PredictiveScalingConfigurationHasBeenSet() const
void SetAlarms(Aws::Vector< Alarm > &&value)
ScalingPolicy & WithPolicyName(Aws::String &&value)
bool TargetTrackingConfigurationHasBeenSet() const
const Aws::String & GetMetricAggregationType() const
ScalingPolicy & WithAutoScalingGroupName(const char *value)
void SetPolicyType(const Aws::String &value)
void SetStepAdjustments(const Aws::Vector< StepAdjustment > &value)
AWS_AUTOSCALING_API ScalingPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
int GetScalingAdjustment() const
ScalingPolicy & WithMetricAggregationType(Aws::String &&value)
void SetAdjustmentType(const Aws::String &value)
void SetPredictiveScalingConfiguration(const PredictiveScalingConfiguration &value)
void SetPolicyARN(const char *value)
void SetPredictiveScalingConfiguration(PredictiveScalingConfiguration &&value)
ScalingPolicy & WithPolicyARN(Aws::String &&value)
void SetMetricAggregationType(Aws::String &&value)
const Aws::String & GetAutoScalingGroupName() const
bool MinAdjustmentStepHasBeenSet() const
void SetCooldown(int value)
ScalingPolicy & WithPredictiveScalingConfiguration(PredictiveScalingConfiguration &&value)
ScalingPolicy & AddStepAdjustments(StepAdjustment &&value)
void SetAlarms(const Aws::Vector< Alarm > &value)
void SetAutoScalingGroupName(Aws::String &&value)
bool EnabledHasBeenSet() const
bool AdjustmentTypeHasBeenSet() const
ScalingPolicy & AddAlarms(Alarm &&value)
bool PolicyTypeHasBeenSet() const
int GetMinAdjustmentMagnitude() const
const Aws::String & GetAdjustmentType() const
ScalingPolicy & WithPolicyType(const Aws::String &value)
ScalingPolicy & WithStepAdjustments(const Aws::Vector< StepAdjustment > &value)
void SetPolicyType(const char *value)
bool PolicyNameHasBeenSet() const
ScalingPolicy & WithPolicyName(const Aws::String &value)
const TargetTrackingConfiguration & GetTargetTrackingConfiguration() const
void SetAdjustmentType(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream