AWS SDK for C++  1.9.74
AWS SDK for C++
ComputeLimits.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 
46  inline const ComputeLimitsUnitType& GetUnitType() const{ return m_unitType; }
47 
51  inline bool UnitTypeHasBeenSet() const { return m_unitTypeHasBeenSet; }
52 
56  inline void SetUnitType(const ComputeLimitsUnitType& value) { m_unitTypeHasBeenSet = true; m_unitType = value; }
57 
61  inline void SetUnitType(ComputeLimitsUnitType&& value) { m_unitTypeHasBeenSet = true; m_unitType = std::move(value); }
62 
66  inline ComputeLimits& WithUnitType(const ComputeLimitsUnitType& value) { SetUnitType(value); return *this;}
67 
71  inline ComputeLimits& WithUnitType(ComputeLimitsUnitType&& value) { SetUnitType(std::move(value)); return *this;}
72 
73 
81  inline int GetMinimumCapacityUnits() const{ return m_minimumCapacityUnits; }
82 
90  inline bool MinimumCapacityUnitsHasBeenSet() const { return m_minimumCapacityUnitsHasBeenSet; }
91 
99  inline void SetMinimumCapacityUnits(int value) { m_minimumCapacityUnitsHasBeenSet = true; m_minimumCapacityUnits = value; }
100 
108  inline ComputeLimits& WithMinimumCapacityUnits(int value) { SetMinimumCapacityUnits(value); return *this;}
109 
110 
118  inline int GetMaximumCapacityUnits() const{ return m_maximumCapacityUnits; }
119 
127  inline bool MaximumCapacityUnitsHasBeenSet() const { return m_maximumCapacityUnitsHasBeenSet; }
128 
136  inline void SetMaximumCapacityUnits(int value) { m_maximumCapacityUnitsHasBeenSet = true; m_maximumCapacityUnits = value; }
137 
145  inline ComputeLimits& WithMaximumCapacityUnits(int value) { SetMaximumCapacityUnits(value); return *this;}
146 
147 
154  inline int GetMaximumOnDemandCapacityUnits() const{ return m_maximumOnDemandCapacityUnits; }
155 
162  inline bool MaximumOnDemandCapacityUnitsHasBeenSet() const { return m_maximumOnDemandCapacityUnitsHasBeenSet; }
163 
170  inline void SetMaximumOnDemandCapacityUnits(int value) { m_maximumOnDemandCapacityUnitsHasBeenSet = true; m_maximumOnDemandCapacityUnits = value; }
171 
178  inline ComputeLimits& WithMaximumOnDemandCapacityUnits(int value) { SetMaximumOnDemandCapacityUnits(value); return *this;}
179 
180 
188  inline int GetMaximumCoreCapacityUnits() const{ return m_maximumCoreCapacityUnits; }
189 
197  inline bool MaximumCoreCapacityUnitsHasBeenSet() const { return m_maximumCoreCapacityUnitsHasBeenSet; }
198 
206  inline void SetMaximumCoreCapacityUnits(int value) { m_maximumCoreCapacityUnitsHasBeenSet = true; m_maximumCoreCapacityUnits = value; }
207 
215  inline ComputeLimits& WithMaximumCoreCapacityUnits(int value) { SetMaximumCoreCapacityUnits(value); return *this;}
216 
217  private:
218 
219  ComputeLimitsUnitType m_unitType;
220  bool m_unitTypeHasBeenSet;
221 
222  int m_minimumCapacityUnits;
223  bool m_minimumCapacityUnitsHasBeenSet;
224 
225  int m_maximumCapacityUnits;
226  bool m_maximumCapacityUnitsHasBeenSet;
227 
228  int m_maximumOnDemandCapacityUnits;
229  bool m_maximumOnDemandCapacityUnitsHasBeenSet;
230 
231  int m_maximumCoreCapacityUnits;
232  bool m_maximumCoreCapacityUnitsHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace EMR
237 } // namespace Aws
Aws::EMR::Model::ComputeLimits::GetMaximumOnDemandCapacityUnits
int GetMaximumOnDemandCapacityUnits() const
Definition: ComputeLimits.h:154
Aws::EMR::Model::ComputeLimits::MinimumCapacityUnitsHasBeenSet
bool MinimumCapacityUnitsHasBeenSet() const
Definition: ComputeLimits.h:90
Aws::EMR::Model::ComputeLimits::WithMaximumCoreCapacityUnits
ComputeLimits & WithMaximumCoreCapacityUnits(int value)
Definition: ComputeLimits.h:215
EMR_EXPORTS.h
Aws::EMR::Model::ComputeLimits::MaximumOnDemandCapacityUnitsHasBeenSet
bool MaximumOnDemandCapacityUnitsHasBeenSet() const
Definition: ComputeLimits.h:162
Aws::EMR::Model::ComputeLimits::SetMaximumCapacityUnits
void SetMaximumCapacityUnits(int value)
Definition: ComputeLimits.h:136
Aws::EMR::Model::ComputeLimits::GetMaximumCapacityUnits
int GetMaximumCapacityUnits() const
Definition: ComputeLimits.h:118
Aws::EMR::Model::ComputeLimits::operator=
ComputeLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ComputeLimits::SetMaximumOnDemandCapacityUnits
void SetMaximumOnDemandCapacityUnits(int value)
Definition: ComputeLimits.h:170
Aws::EMR::Model::ComputeLimits
Definition: ComputeLimits.h:35
Aws::EMR::Model::ComputeLimits::SetMaximumCoreCapacityUnits
void SetMaximumCoreCapacityUnits(int value)
Definition: ComputeLimits.h:206
Aws::EMR::Model::ComputeLimits::SetUnitType
void SetUnitType(ComputeLimitsUnitType &&value)
Definition: ComputeLimits.h:61
ComputeLimitsUnitType.h
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::EMR::Model::ComputeLimits::GetMaximumCoreCapacityUnits
int GetMaximumCoreCapacityUnits() const
Definition: ComputeLimits.h:188
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::ComputeLimits::SetUnitType
void SetUnitType(const ComputeLimitsUnitType &value)
Definition: ComputeLimits.h:56
Aws::EMR::Model::ComputeLimits::WithMinimumCapacityUnits
ComputeLimits & WithMinimumCapacityUnits(int value)
Definition: ComputeLimits.h:108
Aws::EMR::Model::ComputeLimits::WithUnitType
ComputeLimits & WithUnitType(const ComputeLimitsUnitType &value)
Definition: ComputeLimits.h:66
Aws::EMR::Model::ComputeLimits::WithMaximumOnDemandCapacityUnits
ComputeLimits & WithMaximumOnDemandCapacityUnits(int value)
Definition: ComputeLimits.h:178
Aws::EMR::Model::ComputeLimits::MaximumCoreCapacityUnitsHasBeenSet
bool MaximumCoreCapacityUnitsHasBeenSet() const
Definition: ComputeLimits.h:197
Aws::EMR::Model::ComputeLimitsUnitType
ComputeLimitsUnitType
Definition: ComputeLimitsUnitType.h:17
Aws::EMR::Model::ComputeLimits::GetMinimumCapacityUnits
int GetMinimumCapacityUnits() const
Definition: ComputeLimits.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ComputeLimits::WithMaximumCapacityUnits
ComputeLimits & WithMaximumCapacityUnits(int value)
Definition: ComputeLimits.h:145
Aws::EMR::Model::ComputeLimits::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::ComputeLimits::GetUnitType
const ComputeLimitsUnitType & GetUnitType() const
Definition: ComputeLimits.h:46
Aws::EMR::Model::ComputeLimits::SetMinimumCapacityUnits
void SetMinimumCapacityUnits(int value)
Definition: ComputeLimits.h:99
Aws::EMR::Model::ComputeLimits::UnitTypeHasBeenSet
bool UnitTypeHasBeenSet() const
Definition: ComputeLimits.h:51
Aws::EMR::Model::ComputeLimits::ComputeLimits
ComputeLimits(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::ComputeLimits::ComputeLimits
ComputeLimits()
Aws::EMR::Model::ComputeLimits::WithUnitType
ComputeLimits & WithUnitType(ComputeLimitsUnitType &&value)
Definition: ComputeLimits.h:71
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::ComputeLimits::MaximumCapacityUnitsHasBeenSet
bool MaximumCapacityUnitsHasBeenSet() const
Definition: ComputeLimits.h:127