AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
41
42
44
60 inline const AdjustmentType& GetAdjustmentType() const{ return m_adjustmentType; }
61 inline bool AdjustmentTypeHasBeenSet() const { return m_adjustmentTypeHasBeenSet; }
62 inline void SetAdjustmentType(const AdjustmentType& value) { m_adjustmentTypeHasBeenSet = true; m_adjustmentType = value; }
63 inline void SetAdjustmentType(AdjustmentType&& value) { m_adjustmentTypeHasBeenSet = true; m_adjustmentType = std::move(value); }
65 inline SimpleScalingPolicyConfiguration& WithAdjustmentType(AdjustmentType&& value) { SetAdjustmentType(std::move(value)); return *this;}
67
69
79 inline int GetScalingAdjustment() const{ return m_scalingAdjustment; }
80 inline bool ScalingAdjustmentHasBeenSet() const { return m_scalingAdjustmentHasBeenSet; }
81 inline void SetScalingAdjustment(int value) { m_scalingAdjustmentHasBeenSet = true; m_scalingAdjustment = value; }
84
86
91 inline int GetCoolDown() const{ return m_coolDown; }
92 inline bool CoolDownHasBeenSet() const { return m_coolDownHasBeenSet; }
93 inline void SetCoolDown(int value) { m_coolDownHasBeenSet = true; m_coolDown = value; }
94 inline SimpleScalingPolicyConfiguration& WithCoolDown(int value) { SetCoolDown(value); return *this;}
96 private:
97
98 AdjustmentType m_adjustmentType;
99 bool m_adjustmentTypeHasBeenSet = false;
100
101 int m_scalingAdjustment;
102 bool m_scalingAdjustmentHasBeenSet = false;
103
104 int m_coolDown;
105 bool m_coolDownHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace EMR
110} // namespace Aws
SimpleScalingPolicyConfiguration & WithAdjustmentType(AdjustmentType &&value)
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)
SimpleScalingPolicyConfiguration & WithAdjustmentType(const AdjustmentType &value)
AWS_EMR_API SimpleScalingPolicyConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue