AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
WarmPoolConfig.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/model/WarmPoolState.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EKS {
20namespace Model {
21
33 public:
34 AWS_EKS_API WarmPoolConfig() = default;
38
40
46 inline bool GetEnabled() const { return m_enabled; }
47 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
48 inline void SetEnabled(bool value) {
49 m_enabledHasBeenSet = true;
50 m_enabled = value;
51 }
52 inline WarmPoolConfig& WithEnabled(bool value) {
53 SetEnabled(value);
54 return *this;
55 }
57
59
64 inline int GetMinSize() const { return m_minSize; }
65 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
66 inline void SetMinSize(int value) {
67 m_minSizeHasBeenSet = true;
68 m_minSize = value;
69 }
70 inline WarmPoolConfig& WithMinSize(int value) {
71 SetMinSize(value);
72 return *this;
73 }
75
77
82 inline int GetMaxGroupPreparedCapacity() const { return m_maxGroupPreparedCapacity; }
83 inline bool MaxGroupPreparedCapacityHasBeenSet() const { return m_maxGroupPreparedCapacityHasBeenSet; }
84 inline void SetMaxGroupPreparedCapacity(int value) {
85 m_maxGroupPreparedCapacityHasBeenSet = true;
86 m_maxGroupPreparedCapacity = value;
87 }
90 return *this;
91 }
93
95
103 inline WarmPoolState GetPoolState() const { return m_poolState; }
104 inline bool PoolStateHasBeenSet() const { return m_poolStateHasBeenSet; }
105 inline void SetPoolState(WarmPoolState value) {
106 m_poolStateHasBeenSet = true;
107 m_poolState = value;
108 }
110 SetPoolState(value);
111 return *this;
112 }
114
116
122 inline bool GetReuseOnScaleIn() const { return m_reuseOnScaleIn; }
123 inline bool ReuseOnScaleInHasBeenSet() const { return m_reuseOnScaleInHasBeenSet; }
124 inline void SetReuseOnScaleIn(bool value) {
125 m_reuseOnScaleInHasBeenSet = true;
126 m_reuseOnScaleIn = value;
127 }
128 inline WarmPoolConfig& WithReuseOnScaleIn(bool value) {
129 SetReuseOnScaleIn(value);
130 return *this;
131 }
133 private:
134 bool m_enabled{false};
135
136 int m_minSize{0};
137
138 int m_maxGroupPreparedCapacity{0};
139
141
142 bool m_reuseOnScaleIn{false};
143 bool m_enabledHasBeenSet = false;
144 bool m_minSizeHasBeenSet = false;
145 bool m_maxGroupPreparedCapacityHasBeenSet = false;
146 bool m_poolStateHasBeenSet = false;
147 bool m_reuseOnScaleInHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace EKS
152} // namespace Aws
AWS_EKS_API WarmPoolConfig()=default
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
bool MaxGroupPreparedCapacityHasBeenSet() const
AWS_EKS_API WarmPoolConfig(Aws::Utils::Json::JsonView jsonValue)
void SetMaxGroupPreparedCapacity(int value)
WarmPoolState GetPoolState() const
WarmPoolConfig & WithPoolState(WarmPoolState value)
WarmPoolConfig & WithEnabled(bool value)
void SetPoolState(WarmPoolState value)
WarmPoolConfig & WithReuseOnScaleIn(bool value)
WarmPoolConfig & WithMinSize(int value)
WarmPoolConfig & WithMaxGroupPreparedCapacity(int value)
AWS_EKS_API WarmPoolConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue