AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComputeLimits.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/ComputeLimitsUnitType.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:
37 AWS_EMR_API ComputeLimits();
41
42
44
47 inline const ComputeLimitsUnitType& GetUnitType() const{ return m_unitType; }
48 inline bool UnitTypeHasBeenSet() const { return m_unitTypeHasBeenSet; }
49 inline void SetUnitType(const ComputeLimitsUnitType& value) { m_unitTypeHasBeenSet = true; m_unitType = value; }
50 inline void SetUnitType(ComputeLimitsUnitType&& value) { m_unitTypeHasBeenSet = true; m_unitType = std::move(value); }
51 inline ComputeLimits& WithUnitType(const ComputeLimitsUnitType& value) { SetUnitType(value); return *this;}
52 inline ComputeLimits& WithUnitType(ComputeLimitsUnitType&& value) { SetUnitType(std::move(value)); return *this;}
54
56
63 inline int GetMinimumCapacityUnits() const{ return m_minimumCapacityUnits; }
64 inline bool MinimumCapacityUnitsHasBeenSet() const { return m_minimumCapacityUnitsHasBeenSet; }
65 inline void SetMinimumCapacityUnits(int value) { m_minimumCapacityUnitsHasBeenSet = true; m_minimumCapacityUnits = value; }
66 inline ComputeLimits& WithMinimumCapacityUnits(int value) { SetMinimumCapacityUnits(value); return *this;}
68
70
77 inline int GetMaximumCapacityUnits() const{ return m_maximumCapacityUnits; }
78 inline bool MaximumCapacityUnitsHasBeenSet() const { return m_maximumCapacityUnitsHasBeenSet; }
79 inline void SetMaximumCapacityUnits(int value) { m_maximumCapacityUnitsHasBeenSet = true; m_maximumCapacityUnits = value; }
80 inline ComputeLimits& WithMaximumCapacityUnits(int value) { SetMaximumCapacityUnits(value); return *this;}
82
84
91 inline int GetMaximumOnDemandCapacityUnits() const{ return m_maximumOnDemandCapacityUnits; }
92 inline bool MaximumOnDemandCapacityUnitsHasBeenSet() const { return m_maximumOnDemandCapacityUnitsHasBeenSet; }
93 inline void SetMaximumOnDemandCapacityUnits(int value) { m_maximumOnDemandCapacityUnitsHasBeenSet = true; m_maximumOnDemandCapacityUnits = value; }
96
98
105 inline int GetMaximumCoreCapacityUnits() const{ return m_maximumCoreCapacityUnits; }
106 inline bool MaximumCoreCapacityUnitsHasBeenSet() const { return m_maximumCoreCapacityUnitsHasBeenSet; }
107 inline void SetMaximumCoreCapacityUnits(int value) { m_maximumCoreCapacityUnitsHasBeenSet = true; m_maximumCoreCapacityUnits = value; }
110 private:
111
112 ComputeLimitsUnitType m_unitType;
113 bool m_unitTypeHasBeenSet = false;
114
115 int m_minimumCapacityUnits;
116 bool m_minimumCapacityUnitsHasBeenSet = false;
117
118 int m_maximumCapacityUnits;
119 bool m_maximumCapacityUnitsHasBeenSet = false;
120
121 int m_maximumOnDemandCapacityUnits;
122 bool m_maximumOnDemandCapacityUnitsHasBeenSet = false;
123
124 int m_maximumCoreCapacityUnits;
125 bool m_maximumCoreCapacityUnitsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EMR
130} // namespace Aws
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
bool MinimumCapacityUnitsHasBeenSet() const
void SetMinimumCapacityUnits(int value)
ComputeLimits & WithMaximumOnDemandCapacityUnits(int value)
bool MaximumCapacityUnitsHasBeenSet() const
void SetMaximumCoreCapacityUnits(int value)
void SetUnitType(ComputeLimitsUnitType &&value)
void SetMaximumCapacityUnits(int value)
ComputeLimits & WithUnitType(ComputeLimitsUnitType &&value)
ComputeLimits & WithUnitType(const ComputeLimitsUnitType &value)
void SetMaximumOnDemandCapacityUnits(int value)
void SetUnitType(const ComputeLimitsUnitType &value)
AWS_EMR_API ComputeLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetMaximumOnDemandCapacityUnits() const
bool MaximumOnDemandCapacityUnitsHasBeenSet() const
ComputeLimits & WithMinimumCapacityUnits(int value)
bool MaximumCoreCapacityUnitsHasBeenSet() const
ComputeLimits & WithMaximumCapacityUnits(int value)
const ComputeLimitsUnitType & GetUnitType() const
AWS_EMR_API ComputeLimits(Aws::Utils::Json::JsonView jsonValue)
ComputeLimits & WithMaximumCoreCapacityUnits(int value)
Aws::Utils::Json::JsonValue JsonValue