7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9#include <aws/elasticmapreduce/model/ScalingConstraints.h>
10#include <aws/elasticmapreduce/model/ScalingRule.h>
48 template <
typename Constra
intsT = ScalingConstra
ints>
50 m_constraintsHasBeenSet =
true;
51 m_constraints = std::forward<ConstraintsT>(value);
53 template <
typename Constra
intsT = ScalingConstra
ints>
67 template <
typename RulesT = Aws::Vector<ScalingRule>>
69 m_rulesHasBeenSet =
true;
70 m_rules = std::forward<RulesT>(value);
72 template <
typename RulesT = Aws::Vector<ScalingRule>>
74 SetRules(std::forward<RulesT>(value));
77 template <
typename RulesT = ScalingRule>
79 m_rulesHasBeenSet =
true;
80 m_rules.emplace_back(std::forward<RulesT>(value));
88 bool m_constraintsHasBeenSet =
false;
89 bool m_rulesHasBeenSet =
false;
const ScalingConstraints & GetConstraints() const
AutoScalingPolicy & AddRules(RulesT &&value)
AWS_EMR_API AutoScalingPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
bool RulesHasBeenSet() const
const Aws::Vector< ScalingRule > & GetRules() const
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API AutoScalingPolicy()=default
bool ConstraintsHasBeenSet() const
void SetConstraints(ConstraintsT &&value)
void SetRules(RulesT &&value)
AutoScalingPolicy & WithRules(RulesT &&value)
AutoScalingPolicy & WithConstraints(ConstraintsT &&value)
AWS_EMR_API AutoScalingPolicy(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue