AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScalingPolicyDescription.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/AutoScalingPolicyStatus.h>
9#include <aws/elasticmapreduce/model/ScalingConstraints.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticmapreduce/model/ScalingRule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EMR
25{
26namespace Model
27{
28
39 {
40 public:
45
46
48
51 inline const AutoScalingPolicyStatus& GetStatus() const{ return m_status; }
52 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
53 inline void SetStatus(const AutoScalingPolicyStatus& value) { m_statusHasBeenSet = true; m_status = value; }
54 inline void SetStatus(AutoScalingPolicyStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
55 inline AutoScalingPolicyDescription& WithStatus(const AutoScalingPolicyStatus& value) { SetStatus(value); return *this;}
56 inline AutoScalingPolicyDescription& WithStatus(AutoScalingPolicyStatus&& value) { SetStatus(std::move(value)); return *this;}
58
60
65 inline const ScalingConstraints& GetConstraints() const{ return m_constraints; }
66 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
67 inline void SetConstraints(const ScalingConstraints& value) { m_constraintsHasBeenSet = true; m_constraints = value; }
68 inline void SetConstraints(ScalingConstraints&& value) { m_constraintsHasBeenSet = true; m_constraints = std::move(value); }
70 inline AutoScalingPolicyDescription& WithConstraints(ScalingConstraints&& value) { SetConstraints(std::move(value)); return *this;}
72
74
78 inline const Aws::Vector<ScalingRule>& GetRules() const{ return m_rules; }
79 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
80 inline void SetRules(const Aws::Vector<ScalingRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
81 inline void SetRules(Aws::Vector<ScalingRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
82 inline AutoScalingPolicyDescription& WithRules(const Aws::Vector<ScalingRule>& value) { SetRules(value); return *this;}
83 inline AutoScalingPolicyDescription& WithRules(Aws::Vector<ScalingRule>&& value) { SetRules(std::move(value)); return *this;}
84 inline AutoScalingPolicyDescription& AddRules(const ScalingRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
85 inline AutoScalingPolicyDescription& AddRules(ScalingRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
87 private:
88
90 bool m_statusHasBeenSet = false;
91
92 ScalingConstraints m_constraints;
93 bool m_constraintsHasBeenSet = false;
94
96 bool m_rulesHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace EMR
101} // namespace Aws
AutoScalingPolicyDescription & WithStatus(AutoScalingPolicyStatus &&value)
AutoScalingPolicyDescription & AddRules(const ScalingRule &value)
AutoScalingPolicyDescription & WithRules(Aws::Vector< ScalingRule > &&value)
const AutoScalingPolicyStatus & GetStatus() const
AutoScalingPolicyDescription & WithRules(const Aws::Vector< ScalingRule > &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AutoScalingPolicyDescription & AddRules(ScalingRule &&value)
AutoScalingPolicyDescription & WithConstraints(ScalingConstraints &&value)
AutoScalingPolicyDescription & WithConstraints(const ScalingConstraints &value)
AutoScalingPolicyDescription & WithStatus(const AutoScalingPolicyStatus &value)
void SetRules(const Aws::Vector< ScalingRule > &value)
const Aws::Vector< ScalingRule > & GetRules() const
AWS_EMR_API AutoScalingPolicyDescription(Aws::Utils::Json::JsonView jsonValue)
void SetConstraints(const ScalingConstraints &value)
void SetRules(Aws::Vector< ScalingRule > &&value)
void SetStatus(const AutoScalingPolicyStatus &value)
AWS_EMR_API AutoScalingPolicyDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue