7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/ScalingConstraints.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticmapreduce/model/ScalingRule.h>
54 template<
typename Constra
intsT = ScalingConstra
ints>
55 void SetConstraints(ConstraintsT&& value) { m_constraintsHasBeenSet =
true; m_constraints = std::forward<ConstraintsT>(value); }
56 template<
typename Constra
intsT = ScalingConstra
ints>
67 template<
typename RulesT = Aws::Vector<ScalingRule>>
68 void SetRules(RulesT&& value) { m_rulesHasBeenSet =
true; m_rules = std::forward<RulesT>(value); }
69 template<
typename RulesT = Aws::Vector<ScalingRule>>
71 template<
typename RulesT = ScalingRule>
72 AutoScalingPolicy&
AddRules(RulesT&& value) { m_rulesHasBeenSet =
true; m_rules.emplace_back(std::forward<RulesT>(value));
return *
this; }
77 bool m_constraintsHasBeenSet =
false;
80 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