AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SimpleScalingPolicyConfiguration.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/AdjustmentType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMR
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_EMR_API SimpleScalingPolicyConfiguration() = default;
41
42
44
60 inline AdjustmentType GetAdjustmentType() const { return m_adjustmentType; }
61 inline bool AdjustmentTypeHasBeenSet() const { return m_adjustmentTypeHasBeenSet; }
62 inline void SetAdjustmentType(AdjustmentType value) { m_adjustmentTypeHasBeenSet = true; m_adjustmentType = value; }
65
67
77 inline int GetScalingAdjustment() const { return m_scalingAdjustment; }
78 inline bool ScalingAdjustmentHasBeenSet() const { return m_scalingAdjustmentHasBeenSet; }
79 inline void SetScalingAdjustment(int value) { m_scalingAdjustmentHasBeenSet = true; m_scalingAdjustment = value; }
82
84
89 inline int GetCoolDown() const { return m_coolDown; }
90 inline bool CoolDownHasBeenSet() const { return m_coolDownHasBeenSet; }
91 inline void SetCoolDown(int value) { m_coolDownHasBeenSet = true; m_coolDown = value; }
92 inline SimpleScalingPolicyConfiguration& WithCoolDown(int value) { SetCoolDown(value); return *this;}
94 private:
95
97 bool m_adjustmentTypeHasBeenSet = false;
98
99 int m_scalingAdjustment{0};
100 bool m_scalingAdjustmentHasBeenSet = false;
101
102 int m_coolDown{0};
103 bool m_coolDownHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace EMR
108} // namespace Aws
AWS_EMR_API SimpleScalingPolicyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SimpleScalingPolicyConfiguration & WithCoolDown(int value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
SimpleScalingPolicyConfiguration & WithScalingAdjustment(int value)
AWS_EMR_API SimpleScalingPolicyConfiguration(Aws::Utils::Json::JsonView jsonValue)
SimpleScalingPolicyConfiguration & WithAdjustmentType(AdjustmentType value)
Aws::Utils::Json::JsonValue JsonValue