AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
NodegroupScalingConfig.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace EKS {
17namespace Model {
18
28 public:
29 AWS_EKS_API NodegroupScalingConfig() = default;
33
35
38 inline int GetMinSize() const { return m_minSize; }
39 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
40 inline void SetMinSize(int value) {
41 m_minSizeHasBeenSet = true;
42 m_minSize = value;
43 }
45 SetMinSize(value);
46 return *this;
47 }
49
51
57 inline int GetMaxSize() const { return m_maxSize; }
58 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
59 inline void SetMaxSize(int value) {
60 m_maxSizeHasBeenSet = true;
61 m_maxSize = value;
62 }
64 SetMaxSize(value);
65 return *this;
66 }
68
70
91 inline int GetDesiredSize() const { return m_desiredSize; }
92 inline bool DesiredSizeHasBeenSet() const { return m_desiredSizeHasBeenSet; }
93 inline void SetDesiredSize(int value) {
94 m_desiredSizeHasBeenSet = true;
95 m_desiredSize = value;
96 }
98 SetDesiredSize(value);
99 return *this;
100 }
102 private:
103 int m_minSize{0};
104
105 int m_maxSize{0};
106
107 int m_desiredSize{0};
108 bool m_minSizeHasBeenSet = false;
109 bool m_maxSizeHasBeenSet = false;
110 bool m_desiredSizeHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace EKS
115} // namespace Aws
AWS_EKS_API NodegroupScalingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API NodegroupScalingConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API NodegroupScalingConfig()=default
NodegroupScalingConfig & WithMinSize(int value)
NodegroupScalingConfig & WithDesiredSize(int value)
NodegroupScalingConfig & WithMaxSize(int value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue