AWS SDK for C++  1.9.19
AWS SDK for C++
AutoScalingPolicyDescription.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace EMR
25 {
26 namespace Model
27 {
28 
39  {
40  public:
45 
46 
50  inline const AutoScalingPolicyStatus& GetStatus() const{ return m_status; }
51 
55  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
56 
60  inline void SetStatus(const AutoScalingPolicyStatus& value) { m_statusHasBeenSet = true; m_status = value; }
61 
65  inline void SetStatus(AutoScalingPolicyStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
66 
70  inline AutoScalingPolicyDescription& WithStatus(const AutoScalingPolicyStatus& value) { SetStatus(value); return *this;}
71 
75  inline AutoScalingPolicyDescription& WithStatus(AutoScalingPolicyStatus&& value) { SetStatus(std::move(value)); return *this;}
76 
77 
83  inline const ScalingConstraints& GetConstraints() const{ return m_constraints; }
84 
90  inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
91 
97  inline void SetConstraints(const ScalingConstraints& value) { m_constraintsHasBeenSet = true; m_constraints = value; }
98 
104  inline void SetConstraints(ScalingConstraints&& value) { m_constraintsHasBeenSet = true; m_constraints = std::move(value); }
105 
111  inline AutoScalingPolicyDescription& WithConstraints(const ScalingConstraints& value) { SetConstraints(value); return *this;}
112 
118  inline AutoScalingPolicyDescription& WithConstraints(ScalingConstraints&& value) { SetConstraints(std::move(value)); return *this;}
119 
120 
125  inline const Aws::Vector<ScalingRule>& GetRules() const{ return m_rules; }
126 
131  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
132 
137  inline void SetRules(const Aws::Vector<ScalingRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
138 
143  inline void SetRules(Aws::Vector<ScalingRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
144 
149  inline AutoScalingPolicyDescription& WithRules(const Aws::Vector<ScalingRule>& value) { SetRules(value); return *this;}
150 
155  inline AutoScalingPolicyDescription& WithRules(Aws::Vector<ScalingRule>&& value) { SetRules(std::move(value)); return *this;}
156 
161  inline AutoScalingPolicyDescription& AddRules(const ScalingRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
162 
167  inline AutoScalingPolicyDescription& AddRules(ScalingRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
168 
169  private:
170 
171  AutoScalingPolicyStatus m_status;
172  bool m_statusHasBeenSet;
173 
174  ScalingConstraints m_constraints;
175  bool m_constraintsHasBeenSet;
176 
177  Aws::Vector<ScalingRule> m_rules;
178  bool m_rulesHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace EMR
183 } // namespace Aws
ScalingConstraints.h
Aws::EMR::Model::ScalingRule
Definition: ScalingRule.h:38
Aws::EMR::Model::AutoScalingPolicyDescription::AutoScalingPolicyDescription
AutoScalingPolicyDescription()
Aws::EMR::Model::AutoScalingPolicyDescription::SetConstraints
void SetConstraints(const ScalingConstraints &value)
Definition: AutoScalingPolicyDescription.h:97
Aws::EMR::Model::AutoScalingPolicyDescription::operator=
AutoScalingPolicyDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::AutoScalingPolicyDescription::SetConstraints
void SetConstraints(ScalingConstraints &&value)
Definition: AutoScalingPolicyDescription.h:104
EMR_EXPORTS.h
Aws::EMR::Model::ScalingConstraints
Definition: ScalingConstraints.h:33
Aws::EMR::Model::AutoScalingPolicyDescription::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::AutoScalingPolicyDescription::GetStatus
const AutoScalingPolicyStatus & GetStatus() const
Definition: AutoScalingPolicyDescription.h:50
Aws::EMR::Model::AutoScalingPolicyDescription
Definition: AutoScalingPolicyDescription.h:39
Aws::EMR::Model::AutoScalingPolicyDescription::SetRules
void SetRules(Aws::Vector< ScalingRule > &&value)
Definition: AutoScalingPolicyDescription.h:143
Aws::EMR::Model::AutoScalingPolicyDescription::WithRules
AutoScalingPolicyDescription & WithRules(const Aws::Vector< ScalingRule > &value)
Definition: AutoScalingPolicyDescription.h:149
Aws::EMR::Model::AutoScalingPolicyDescription::AddRules
AutoScalingPolicyDescription & AddRules(ScalingRule &&value)
Definition: AutoScalingPolicyDescription.h:167
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::AutoScalingPolicyDescription::GetConstraints
const ScalingConstraints & GetConstraints() const
Definition: AutoScalingPolicyDescription.h:83
Aws::EMR::Model::AutoScalingPolicyDescription::WithStatus
AutoScalingPolicyDescription & WithStatus(AutoScalingPolicyStatus &&value)
Definition: AutoScalingPolicyDescription.h:75
AWSVector.h
AutoScalingPolicyStatus.h
Aws::EMR::Model::AutoScalingPolicyDescription::GetRules
const Aws::Vector< ScalingRule > & GetRules() const
Definition: AutoScalingPolicyDescription.h:125
Aws::EMR::Model::AutoScalingPolicyDescription::SetRules
void SetRules(const Aws::Vector< ScalingRule > &value)
Definition: AutoScalingPolicyDescription.h:137
Aws::EMR::Model::AutoScalingPolicyDescription::WithConstraints
AutoScalingPolicyDescription & WithConstraints(const ScalingConstraints &value)
Definition: AutoScalingPolicyDescription.h:111
Aws::EMR::Model::AutoScalingPolicyDescription::ConstraintsHasBeenSet
bool ConstraintsHasBeenSet() const
Definition: AutoScalingPolicyDescription.h:90
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
ScalingRule.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::AutoScalingPolicyDescription::AutoScalingPolicyDescription
AutoScalingPolicyDescription(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::AutoScalingPolicyDescription::AddRules
AutoScalingPolicyDescription & AddRules(const ScalingRule &value)
Definition: AutoScalingPolicyDescription.h:161
Aws::EMR::Model::AutoScalingPolicyDescription::WithStatus
AutoScalingPolicyDescription & WithStatus(const AutoScalingPolicyStatus &value)
Definition: AutoScalingPolicyDescription.h:70
Aws::EMR::Model::AutoScalingPolicyDescription::SetStatus
void SetStatus(AutoScalingPolicyStatus &&value)
Definition: AutoScalingPolicyDescription.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::AutoScalingPolicyDescription::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: AutoScalingPolicyDescription.h:55
Aws::EMR::Model::AutoScalingPolicyDescription::WithConstraints
AutoScalingPolicyDescription & WithConstraints(ScalingConstraints &&value)
Definition: AutoScalingPolicyDescription.h:118
Aws::EMR::Model::AutoScalingPolicyDescription::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: AutoScalingPolicyDescription.h:131
Aws::EMR::Model::AutoScalingPolicyDescription::SetStatus
void SetStatus(const AutoScalingPolicyStatus &value)
Definition: AutoScalingPolicyDescription.h:60
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::AutoScalingPolicyDescription::WithRules
AutoScalingPolicyDescription & WithRules(Aws::Vector< ScalingRule > &&value)
Definition: AutoScalingPolicyDescription.h:155
Aws::EMR::Model::AutoScalingPolicyStatus
Definition: AutoScalingPolicyStatus.h:33