AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EMR {
20namespace Model {
21
31 public:
32 AWS_EMR_API SimpleScalingPolicyConfiguration() = default;
36
38
54 inline AdjustmentType GetAdjustmentType() const { return m_adjustmentType; }
55 inline bool AdjustmentTypeHasBeenSet() const { return m_adjustmentTypeHasBeenSet; }
56 inline void SetAdjustmentType(AdjustmentType value) {
57 m_adjustmentTypeHasBeenSet = true;
58 m_adjustmentType = value;
59 }
61 SetAdjustmentType(value);
62 return *this;
63 }
65
67
77 inline int GetScalingAdjustment() const { return m_scalingAdjustment; }
78 inline bool ScalingAdjustmentHasBeenSet() const { return m_scalingAdjustmentHasBeenSet; }
79 inline void SetScalingAdjustment(int value) {
80 m_scalingAdjustmentHasBeenSet = true;
81 m_scalingAdjustment = value;
82 }
85 return *this;
86 }
88
90
95 inline int GetCoolDown() const { return m_coolDown; }
96 inline bool CoolDownHasBeenSet() const { return m_coolDownHasBeenSet; }
97 inline void SetCoolDown(int value) {
98 m_coolDownHasBeenSet = true;
99 m_coolDown = value;
100 }
102 SetCoolDown(value);
103 return *this;
104 }
106 private:
107 AdjustmentType m_adjustmentType{AdjustmentType::NOT_SET};
108
109 int m_scalingAdjustment{0};
110
111 int m_coolDown{0};
112 bool m_adjustmentTypeHasBeenSet = false;
113 bool m_scalingAdjustmentHasBeenSet = false;
114 bool m_coolDownHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace EMR
119} // 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