AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
NodegroupUpdateConfig.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/model/NodegroupUpdateStrategies.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
31 public:
32 AWS_EKS_API NodegroupUpdateConfig() = default;
36
38
44 inline int GetMaxUnavailable() const { return m_maxUnavailable; }
45 inline bool MaxUnavailableHasBeenSet() const { return m_maxUnavailableHasBeenSet; }
46 inline void SetMaxUnavailable(int value) {
47 m_maxUnavailableHasBeenSet = true;
48 m_maxUnavailable = value;
49 }
51 SetMaxUnavailable(value);
52 return *this;
53 }
55
57
62 inline int GetMaxUnavailablePercentage() const { return m_maxUnavailablePercentage; }
63 inline bool MaxUnavailablePercentageHasBeenSet() const { return m_maxUnavailablePercentageHasBeenSet; }
64 inline void SetMaxUnavailablePercentage(int value) {
65 m_maxUnavailablePercentageHasBeenSet = true;
66 m_maxUnavailablePercentage = value;
67 }
70 return *this;
71 }
73
75
91 inline NodegroupUpdateStrategies GetUpdateStrategy() const { return m_updateStrategy; }
92 inline bool UpdateStrategyHasBeenSet() const { return m_updateStrategyHasBeenSet; }
94 m_updateStrategyHasBeenSet = true;
95 m_updateStrategy = value;
96 }
98 SetUpdateStrategy(value);
99 return *this;
100 }
102 private:
103 int m_maxUnavailable{0};
104
105 int m_maxUnavailablePercentage{0};
106
108 bool m_maxUnavailableHasBeenSet = false;
109 bool m_maxUnavailablePercentageHasBeenSet = false;
110 bool m_updateStrategyHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace EKS
115} // namespace Aws
AWS_EKS_API NodegroupUpdateConfig()=default
NodegroupUpdateConfig & WithMaxUnavailablePercentage(int value)
AWS_EKS_API NodegroupUpdateConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
NodegroupUpdateConfig & WithUpdateStrategy(NodegroupUpdateStrategies value)
void SetUpdateStrategy(NodegroupUpdateStrategies value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
NodegroupUpdateStrategies GetUpdateStrategy() const
AWS_EKS_API NodegroupUpdateConfig(Aws::Utils::Json::JsonView jsonValue)
NodegroupUpdateConfig & WithMaxUnavailable(int value)
Aws::Utils::Json::JsonValue JsonValue