/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An automatic scaling policy for a core instance group or task instance group
* in an Amazon EMR cluster. The automatic scaling policy defines how an instance
* group dynamically adds and terminates Amazon EC2 instances in response to the
* value of a CloudWatch metric. See PutAutoScalingPolicy.See
* Also:
AWS
* API Reference
The status of an automatic scaling policy.
*/ inline const AutoScalingPolicyStatus& GetStatus() const{ return m_status; } /** *The status of an automatic scaling policy.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of an automatic scaling policy.
*/ inline void SetStatus(const AutoScalingPolicyStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of an automatic scaling policy.
*/ inline void SetStatus(AutoScalingPolicyStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of an automatic scaling policy.
*/ inline AutoScalingPolicyDescription& WithStatus(const AutoScalingPolicyStatus& value) { SetStatus(value); return *this;} /** *The status of an automatic scaling policy.
*/ inline AutoScalingPolicyDescription& WithStatus(AutoScalingPolicyStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The upper and lower Amazon EC2 instance limits for an automatic scaling * policy. Automatic scaling activity will not cause an instance group to grow * above or below these limits.
*/ inline const ScalingConstraints& GetConstraints() const{ return m_constraints; } /** *The upper and lower Amazon EC2 instance limits for an automatic scaling * policy. Automatic scaling activity will not cause an instance group to grow * above or below these limits.
*/ inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; } /** *The upper and lower Amazon EC2 instance limits for an automatic scaling * policy. Automatic scaling activity will not cause an instance group to grow * above or below these limits.
*/ inline void SetConstraints(const ScalingConstraints& value) { m_constraintsHasBeenSet = true; m_constraints = value; } /** *The upper and lower Amazon EC2 instance limits for an automatic scaling * policy. Automatic scaling activity will not cause an instance group to grow * above or below these limits.
*/ inline void SetConstraints(ScalingConstraints&& value) { m_constraintsHasBeenSet = true; m_constraints = std::move(value); } /** *The upper and lower Amazon EC2 instance limits for an automatic scaling * policy. Automatic scaling activity will not cause an instance group to grow * above or below these limits.
*/ inline AutoScalingPolicyDescription& WithConstraints(const ScalingConstraints& value) { SetConstraints(value); return *this;} /** *The upper and lower Amazon EC2 instance limits for an automatic scaling * policy. Automatic scaling activity will not cause an instance group to grow * above or below these limits.
*/ inline AutoScalingPolicyDescription& WithConstraints(ScalingConstraints&& value) { SetConstraints(std::move(value)); return *this;} /** *The scale-in and scale-out rules that comprise the automatic scaling * policy.
*/ inline const Aws::VectorThe scale-in and scale-out rules that comprise the automatic scaling * policy.
*/ inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } /** *The scale-in and scale-out rules that comprise the automatic scaling * policy.
*/ inline void SetRules(const Aws::VectorThe scale-in and scale-out rules that comprise the automatic scaling * policy.
*/ inline void SetRules(Aws::VectorThe scale-in and scale-out rules that comprise the automatic scaling * policy.
*/ inline AutoScalingPolicyDescription& WithRules(const Aws::VectorThe scale-in and scale-out rules that comprise the automatic scaling * policy.
*/ inline AutoScalingPolicyDescription& WithRules(Aws::VectorThe scale-in and scale-out rules that comprise the automatic scaling * policy.
*/ inline AutoScalingPolicyDescription& AddRules(const ScalingRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } /** *The scale-in and scale-out rules that comprise the automatic scaling * policy.
*/ inline AutoScalingPolicyDescription& AddRules(ScalingRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } private: AutoScalingPolicyStatus m_status; bool m_statusHasBeenSet = false; ScalingConstraints m_constraints; bool m_constraintsHasBeenSet = false; Aws::Vector