AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
41
42
44
47 inline ComputeLimitsUnitType GetUnitType() const { return m_unitType; }
48 inline bool UnitTypeHasBeenSet() const { return m_unitTypeHasBeenSet; }
49 inline void SetUnitType(ComputeLimitsUnitType value) { m_unitTypeHasBeenSet = true; m_unitType = value; }
50 inline ComputeLimits& WithUnitType(ComputeLimitsUnitType value) { SetUnitType(value); return *this;}
52
54
61 inline int GetMinimumCapacityUnits() const { return m_minimumCapacityUnits; }
62 inline bool MinimumCapacityUnitsHasBeenSet() const { return m_minimumCapacityUnitsHasBeenSet; }
63 inline void SetMinimumCapacityUnits(int value) { m_minimumCapacityUnitsHasBeenSet = true; m_minimumCapacityUnits = value; }
64 inline ComputeLimits& WithMinimumCapacityUnits(int value) { SetMinimumCapacityUnits(value); return *this;}
66
68
75 inline int GetMaximumCapacityUnits() const { return m_maximumCapacityUnits; }
76 inline bool MaximumCapacityUnitsHasBeenSet() const { return m_maximumCapacityUnitsHasBeenSet; }
77 inline void SetMaximumCapacityUnits(int value) { m_maximumCapacityUnitsHasBeenSet = true; m_maximumCapacityUnits = value; }
78 inline ComputeLimits& WithMaximumCapacityUnits(int value) { SetMaximumCapacityUnits(value); return *this;}
80
82
89 inline int GetMaximumOnDemandCapacityUnits() const { return m_maximumOnDemandCapacityUnits; }
90 inline bool MaximumOnDemandCapacityUnitsHasBeenSet() const { return m_maximumOnDemandCapacityUnitsHasBeenSet; }
91 inline void SetMaximumOnDemandCapacityUnits(int value) { m_maximumOnDemandCapacityUnitsHasBeenSet = true; m_maximumOnDemandCapacityUnits = value; }
94
96
103 inline int GetMaximumCoreCapacityUnits() const { return m_maximumCoreCapacityUnits; }
104 inline bool MaximumCoreCapacityUnitsHasBeenSet() const { return m_maximumCoreCapacityUnitsHasBeenSet; }
105 inline void SetMaximumCoreCapacityUnits(int value) { m_maximumCoreCapacityUnitsHasBeenSet = true; m_maximumCoreCapacityUnits = value; }
108 private:
109
111 bool m_unitTypeHasBeenSet = false;
112
113 int m_minimumCapacityUnits{0};
114 bool m_minimumCapacityUnitsHasBeenSet = false;
115
116 int m_maximumCapacityUnits{0};
117 bool m_maximumCapacityUnitsHasBeenSet = false;
118
119 int m_maximumOnDemandCapacityUnits{0};
120 bool m_maximumOnDemandCapacityUnitsHasBeenSet = false;
121
122 int m_maximumCoreCapacityUnits{0};
123 bool m_maximumCoreCapacityUnitsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace EMR
128} // 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
ComputeLimits & WithUnitType(ComputeLimitsUnitType value)
void SetMaximumCoreCapacityUnits(int value)
void SetMaximumCapacityUnits(int value)
AWS_EMR_API ComputeLimits()=default
void SetMaximumOnDemandCapacityUnits(int value)
ComputeLimitsUnitType GetUnitType() const
AWS_EMR_API ComputeLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetMaximumOnDemandCapacityUnits() const
bool MaximumOnDemandCapacityUnitsHasBeenSet() const
ComputeLimits & WithMinimumCapacityUnits(int value)
void SetUnitType(ComputeLimitsUnitType value)
bool MaximumCoreCapacityUnitsHasBeenSet() const
ComputeLimits & WithMaximumCapacityUnits(int value)
AWS_EMR_API ComputeLimits(Aws::Utils::Json::JsonView jsonValue)
ComputeLimits & WithMaximumCoreCapacityUnits(int value)
Aws::Utils::Json::JsonValue JsonValue