AWS SDK for C++  1.9.106
AWS SDK for C++
SimpleScalingPolicyConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace EMR
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
58  inline const AdjustmentType& GetAdjustmentType() const{ return m_adjustmentType; }
59 
75  inline bool AdjustmentTypeHasBeenSet() const { return m_adjustmentTypeHasBeenSet; }
76 
92  inline void SetAdjustmentType(const AdjustmentType& value) { m_adjustmentTypeHasBeenSet = true; m_adjustmentType = value; }
93 
109  inline void SetAdjustmentType(AdjustmentType&& value) { m_adjustmentTypeHasBeenSet = true; m_adjustmentType = std::move(value); }
110 
126  inline SimpleScalingPolicyConfiguration& WithAdjustmentType(const AdjustmentType& value) { SetAdjustmentType(value); return *this;}
127 
143  inline SimpleScalingPolicyConfiguration& WithAdjustmentType(AdjustmentType&& value) { SetAdjustmentType(std::move(value)); return *this;}
144 
145 
156  inline int GetScalingAdjustment() const{ return m_scalingAdjustment; }
157 
168  inline bool ScalingAdjustmentHasBeenSet() const { return m_scalingAdjustmentHasBeenSet; }
169 
180  inline void SetScalingAdjustment(int value) { m_scalingAdjustmentHasBeenSet = true; m_scalingAdjustment = value; }
181 
192  inline SimpleScalingPolicyConfiguration& WithScalingAdjustment(int value) { SetScalingAdjustment(value); return *this;}
193 
194 
200  inline int GetCoolDown() const{ return m_coolDown; }
201 
207  inline bool CoolDownHasBeenSet() const { return m_coolDownHasBeenSet; }
208 
214  inline void SetCoolDown(int value) { m_coolDownHasBeenSet = true; m_coolDown = value; }
215 
221  inline SimpleScalingPolicyConfiguration& WithCoolDown(int value) { SetCoolDown(value); return *this;}
222 
223  private:
224 
225  AdjustmentType m_adjustmentType;
226  bool m_adjustmentTypeHasBeenSet;
227 
228  int m_scalingAdjustment;
229  bool m_scalingAdjustmentHasBeenSet;
230 
231  int m_coolDown;
232  bool m_coolDownHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace EMR
237 } // namespace Aws
Aws::EMR::Model::SimpleScalingPolicyConfiguration::GetAdjustmentType
const AdjustmentType & GetAdjustmentType() const
Definition: SimpleScalingPolicyConfiguration.h:58
Aws::EMR::Model::SimpleScalingPolicyConfiguration::SimpleScalingPolicyConfiguration
SimpleScalingPolicyConfiguration()
Aws::EMR::Model::SimpleScalingPolicyConfiguration::WithAdjustmentType
SimpleScalingPolicyConfiguration & WithAdjustmentType(const AdjustmentType &value)
Definition: SimpleScalingPolicyConfiguration.h:126
Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetScalingAdjustment
void SetScalingAdjustment(int value)
Definition: SimpleScalingPolicyConfiguration.h:180
EMR_EXPORTS.h
Aws::EMR::Model::SimpleScalingPolicyConfiguration::SimpleScalingPolicyConfiguration
SimpleScalingPolicyConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetAdjustmentType
void SetAdjustmentType(AdjustmentType &&value)
Definition: SimpleScalingPolicyConfiguration.h:109
Aws::EMR::Model::SimpleScalingPolicyConfiguration::GetCoolDown
int GetCoolDown() const
Definition: SimpleScalingPolicyConfiguration.h:200
Aws::EMR::Model::SimpleScalingPolicyConfiguration
Definition: SimpleScalingPolicyConfiguration.h:35
Aws::EMR::Model::SimpleScalingPolicyConfiguration::WithAdjustmentType
SimpleScalingPolicyConfiguration & WithAdjustmentType(AdjustmentType &&value)
Definition: SimpleScalingPolicyConfiguration.h:143
Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetAdjustmentType
void SetAdjustmentType(const AdjustmentType &value)
Definition: SimpleScalingPolicyConfiguration.h:92
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::EMR::Model::SimpleScalingPolicyConfiguration::AdjustmentTypeHasBeenSet
bool AdjustmentTypeHasBeenSet() const
Definition: SimpleScalingPolicyConfiguration.h:75
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::EMR::Model::AdjustmentType
AdjustmentType
Definition: AdjustmentType.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::SimpleScalingPolicyConfiguration::GetScalingAdjustment
int GetScalingAdjustment() const
Definition: SimpleScalingPolicyConfiguration.h:156
Aws::EMR::Model::SimpleScalingPolicyConfiguration::WithCoolDown
SimpleScalingPolicyConfiguration & WithCoolDown(int value)
Definition: SimpleScalingPolicyConfiguration.h:221
AdjustmentType.h
Aws::EMR::Model::SimpleScalingPolicyConfiguration::SetCoolDown
void SetCoolDown(int value)
Definition: SimpleScalingPolicyConfiguration.h:214
Aws::EMR::Model::SimpleScalingPolicyConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::SimpleScalingPolicyConfiguration::operator=
SimpleScalingPolicyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::SimpleScalingPolicyConfiguration::ScalingAdjustmentHasBeenSet
bool ScalingAdjustmentHasBeenSet() const
Definition: SimpleScalingPolicyConfiguration.h:168
Aws::EMR::Model::SimpleScalingPolicyConfiguration::WithScalingAdjustment
SimpleScalingPolicyConfiguration & WithScalingAdjustment(int value)
Definition: SimpleScalingPolicyConfiguration.h:192
Aws::EMR::Model::SimpleScalingPolicyConfiguration::CoolDownHasBeenSet
bool CoolDownHasBeenSet() const
Definition: SimpleScalingPolicyConfiguration.h:207