AWS SDK for C++  1.9.21
AWS SDK for C++
ScalingConstraints.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace EMR
20 {
21 namespace Model
22 {
23 
33  {
34  public:
39 
40 
46  inline int GetMinCapacity() const{ return m_minCapacity; }
47 
53  inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
54 
60  inline void SetMinCapacity(int value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
61 
67  inline ScalingConstraints& WithMinCapacity(int value) { SetMinCapacity(value); return *this;}
68 
69 
75  inline int GetMaxCapacity() const{ return m_maxCapacity; }
76 
82  inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
83 
89  inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
90 
96  inline ScalingConstraints& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
97 
98  private:
99 
100  int m_minCapacity;
101  bool m_minCapacityHasBeenSet;
102 
103  int m_maxCapacity;
104  bool m_maxCapacityHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace EMR
109 } // namespace Aws
Aws::EMR::Model::ScalingConstraints::WithMaxCapacity
ScalingConstraints & WithMaxCapacity(int value)
Definition: ScalingConstraints.h:96
Aws::EMR::Model::ScalingConstraints::GetMinCapacity
int GetMinCapacity() const
Definition: ScalingConstraints.h:46
Aws::EMR::Model::ScalingConstraints::WithMinCapacity
ScalingConstraints & WithMinCapacity(int value)
Definition: ScalingConstraints.h:67
EMR_EXPORTS.h
Aws::EMR::Model::ScalingConstraints
Definition: ScalingConstraints.h:33
Aws::EMR::Model::ScalingConstraints::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::ScalingConstraints::ScalingConstraints
ScalingConstraints(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ScalingConstraints::ScalingConstraints
ScalingConstraints()
Aws::EMR::Model::ScalingConstraints::GetMaxCapacity
int GetMaxCapacity() const
Definition: ScalingConstraints.h:75
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::ScalingConstraints::SetMinCapacity
void SetMinCapacity(int value)
Definition: ScalingConstraints.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ScalingConstraints::operator=
ScalingConstraints & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ScalingConstraints::SetMaxCapacity
void SetMaxCapacity(int value)
Definition: ScalingConstraints.h:89
Aws::EMR::Model::ScalingConstraints::MinCapacityHasBeenSet
bool MinCapacityHasBeenSet() const
Definition: ScalingConstraints.h:53
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::ScalingConstraints::MaxCapacityHasBeenSet
bool MaxCapacityHasBeenSet() const
Definition: ScalingConstraints.h:82