AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
29 public:
30 AWS_EKS_API NodegroupScalingConfig() = default;
34
36
39 inline int GetMinSize() const { return m_minSize; }
40 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
41 inline void SetMinSize(int value) {
42 m_minSizeHasBeenSet = true;
43 m_minSize = value;
44 }
46 SetMinSize(value);
47 return *this;
48 }
50
52
58 inline int GetMaxSize() const { return m_maxSize; }
59 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
60 inline void SetMaxSize(int value) {
61 m_maxSizeHasBeenSet = true;
62 m_maxSize = value;
63 }
65 SetMaxSize(value);
66 return *this;
67 }
69
71
92 inline int GetDesiredSize() const { return m_desiredSize; }
93 inline bool DesiredSizeHasBeenSet() const { return m_desiredSizeHasBeenSet; }
94 inline void SetDesiredSize(int value) {
95 m_desiredSizeHasBeenSet = true;
96 m_desiredSize = value;
97 }
99 SetDesiredSize(value);
100 return *this;
101 }
103 private:
104 int m_minSize{0};
105
106 int m_maxSize{0};
107
108 int m_desiredSize{0};
109 bool m_minSizeHasBeenSet = false;
110 bool m_maxSizeHasBeenSet = false;
111 bool m_desiredSizeHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace EKS
116} // 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