AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NodegroupScalingConfig.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EKS
20{
21namespace Model
22{
23
33 {
34 public:
35 AWS_EKS_API NodegroupScalingConfig() = default;
39
40
42
45 inline int GetMinSize() const { return m_minSize; }
46 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
47 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
48 inline NodegroupScalingConfig& WithMinSize(int value) { SetMinSize(value); return *this;}
50
52
58 inline int GetMaxSize() const { return m_maxSize; }
59 inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
60 inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
61 inline NodegroupScalingConfig& WithMaxSize(int value) { SetMaxSize(value); return *this;}
63
65
86 inline int GetDesiredSize() const { return m_desiredSize; }
87 inline bool DesiredSizeHasBeenSet() const { return m_desiredSizeHasBeenSet; }
88 inline void SetDesiredSize(int value) { m_desiredSizeHasBeenSet = true; m_desiredSize = value; }
89 inline NodegroupScalingConfig& WithDesiredSize(int value) { SetDesiredSize(value); return *this;}
91 private:
92
93 int m_minSize{0};
94 bool m_minSizeHasBeenSet = false;
95
96 int m_maxSize{0};
97 bool m_maxSizeHasBeenSet = false;
98
99 int m_desiredSize{0};
100 bool m_desiredSizeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace EKS
105} // 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