AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScalingPolicy.h
1
6#pragma once
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>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMR
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_EMR_API AutoScalingPolicy();
44
45
47
52 inline const ScalingConstraints& GetConstraints() const{ return m_constraints; }
53 inline bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; }
54 inline void SetConstraints(const ScalingConstraints& value) { m_constraintsHasBeenSet = true; m_constraints = value; }
55 inline void SetConstraints(ScalingConstraints&& value) { m_constraintsHasBeenSet = true; m_constraints = std::move(value); }
56 inline AutoScalingPolicy& WithConstraints(const ScalingConstraints& value) { SetConstraints(value); return *this;}
57 inline AutoScalingPolicy& WithConstraints(ScalingConstraints&& value) { SetConstraints(std::move(value)); return *this;}
59
61
65 inline const Aws::Vector<ScalingRule>& GetRules() const{ return m_rules; }
66 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
67 inline void SetRules(const Aws::Vector<ScalingRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
68 inline void SetRules(Aws::Vector<ScalingRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
69 inline AutoScalingPolicy& WithRules(const Aws::Vector<ScalingRule>& value) { SetRules(value); return *this;}
70 inline AutoScalingPolicy& WithRules(Aws::Vector<ScalingRule>&& value) { SetRules(std::move(value)); return *this;}
71 inline AutoScalingPolicy& AddRules(const ScalingRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
72 inline AutoScalingPolicy& AddRules(ScalingRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
74 private:
75
76 ScalingConstraints m_constraints;
77 bool m_constraintsHasBeenSet = false;
78
80 bool m_rulesHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace EMR
85} // namespace Aws
void SetRules(const Aws::Vector< ScalingRule > &value)
const ScalingConstraints & GetConstraints() const
AutoScalingPolicy & WithConstraints(ScalingConstraints &&value)
AWS_EMR_API AutoScalingPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConstraints(const ScalingConstraints &value)
const Aws::Vector< ScalingRule > & GetRules() const
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AutoScalingPolicy & AddRules(const ScalingRule &value)
AutoScalingPolicy & AddRules(ScalingRule &&value)
void SetRules(Aws::Vector< ScalingRule > &&value)
AutoScalingPolicy & WithRules(const Aws::Vector< ScalingRule > &value)
AutoScalingPolicy & WithRules(Aws::Vector< ScalingRule > &&value)
void SetConstraints(ScalingConstraints &&value)
AWS_EMR_API AutoScalingPolicy(Aws::Utils::Json::JsonView jsonValue)
AutoScalingPolicy & WithConstraints(const ScalingConstraints &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue