AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
UpdateNodegroupConfigRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/EKSRequest.h>
10#include <aws/eks/EKS_EXPORTS.h>
11#include <aws/eks/model/NodeRepairConfig.h>
12#include <aws/eks/model/NodegroupScalingConfig.h>
13#include <aws/eks/model/NodegroupUpdateConfig.h>
14#include <aws/eks/model/UpdateLabelsPayload.h>
15#include <aws/eks/model/UpdateTaintsPayload.h>
16#include <aws/eks/model/WarmPoolConfig.h>
17
18#include <utility>
19
20namespace Aws {
21namespace EKS {
22namespace Model {
23
27 public:
28 AWS_EKS_API UpdateNodegroupConfigRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateNodegroupConfig"; }
35
36 AWS_EKS_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetClusterName() const { return m_clusterName; }
43 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
44 template <typename ClusterNameT = Aws::String>
45 void SetClusterName(ClusterNameT&& value) {
46 m_clusterNameHasBeenSet = true;
47 m_clusterName = std::forward<ClusterNameT>(value);
48 }
49 template <typename ClusterNameT = Aws::String>
51 SetClusterName(std::forward<ClusterNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetNodegroupName() const { return m_nodegroupName; }
61 inline bool NodegroupNameHasBeenSet() const { return m_nodegroupNameHasBeenSet; }
62 template <typename NodegroupNameT = Aws::String>
63 void SetNodegroupName(NodegroupNameT&& value) {
64 m_nodegroupNameHasBeenSet = true;
65 m_nodegroupName = std::forward<NodegroupNameT>(value);
66 }
67 template <typename NodegroupNameT = Aws::String>
69 SetNodegroupName(std::forward<NodegroupNameT>(value));
70 return *this;
71 }
73
75
79 inline const UpdateLabelsPayload& GetLabels() const { return m_labels; }
80 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
81 template <typename LabelsT = UpdateLabelsPayload>
82 void SetLabels(LabelsT&& value) {
83 m_labelsHasBeenSet = true;
84 m_labels = std::forward<LabelsT>(value);
85 }
86 template <typename LabelsT = UpdateLabelsPayload>
88 SetLabels(std::forward<LabelsT>(value));
89 return *this;
90 }
92
94
100 inline const UpdateTaintsPayload& GetTaints() const { return m_taints; }
101 inline bool TaintsHasBeenSet() const { return m_taintsHasBeenSet; }
102 template <typename TaintsT = UpdateTaintsPayload>
103 void SetTaints(TaintsT&& value) {
104 m_taintsHasBeenSet = true;
105 m_taints = std::forward<TaintsT>(value);
106 }
107 template <typename TaintsT = UpdateTaintsPayload>
109 SetTaints(std::forward<TaintsT>(value));
110 return *this;
111 }
113
115
119 inline const NodegroupScalingConfig& GetScalingConfig() const { return m_scalingConfig; }
120 inline bool ScalingConfigHasBeenSet() const { return m_scalingConfigHasBeenSet; }
121 template <typename ScalingConfigT = NodegroupScalingConfig>
122 void SetScalingConfig(ScalingConfigT&& value) {
123 m_scalingConfigHasBeenSet = true;
124 m_scalingConfig = std::forward<ScalingConfigT>(value);
125 }
126 template <typename ScalingConfigT = NodegroupScalingConfig>
128 SetScalingConfig(std::forward<ScalingConfigT>(value));
129 return *this;
130 }
132
134
137 inline const NodegroupUpdateConfig& GetUpdateConfig() const { return m_updateConfig; }
138 inline bool UpdateConfigHasBeenSet() const { return m_updateConfigHasBeenSet; }
139 template <typename UpdateConfigT = NodegroupUpdateConfig>
140 void SetUpdateConfig(UpdateConfigT&& value) {
141 m_updateConfigHasBeenSet = true;
142 m_updateConfig = std::forward<UpdateConfigT>(value);
143 }
144 template <typename UpdateConfigT = NodegroupUpdateConfig>
146 SetUpdateConfig(std::forward<UpdateConfigT>(value));
147 return *this;
148 }
150
152
155 inline const NodeRepairConfig& GetNodeRepairConfig() const { return m_nodeRepairConfig; }
156 inline bool NodeRepairConfigHasBeenSet() const { return m_nodeRepairConfigHasBeenSet; }
157 template <typename NodeRepairConfigT = NodeRepairConfig>
158 void SetNodeRepairConfig(NodeRepairConfigT&& value) {
159 m_nodeRepairConfigHasBeenSet = true;
160 m_nodeRepairConfig = std::forward<NodeRepairConfigT>(value);
161 }
162 template <typename NodeRepairConfigT = NodeRepairConfig>
164 SetNodeRepairConfig(std::forward<NodeRepairConfigT>(value));
165 return *this;
166 }
168
170
175 inline const WarmPoolConfig& GetWarmPoolConfig() const { return m_warmPoolConfig; }
176 inline bool WarmPoolConfigHasBeenSet() const { return m_warmPoolConfigHasBeenSet; }
177 template <typename WarmPoolConfigT = WarmPoolConfig>
178 void SetWarmPoolConfig(WarmPoolConfigT&& value) {
179 m_warmPoolConfigHasBeenSet = true;
180 m_warmPoolConfig = std::forward<WarmPoolConfigT>(value);
181 }
182 template <typename WarmPoolConfigT = WarmPoolConfig>
184 SetWarmPoolConfig(std::forward<WarmPoolConfigT>(value));
185 return *this;
186 }
188
190
194 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
195 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
196 template <typename ClientRequestTokenT = Aws::String>
197 void SetClientRequestToken(ClientRequestTokenT&& value) {
198 m_clientRequestTokenHasBeenSet = true;
199 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
200 }
201 template <typename ClientRequestTokenT = Aws::String>
203 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
204 return *this;
205 }
207 private:
208 Aws::String m_clusterName;
209
210 Aws::String m_nodegroupName;
211
212 UpdateLabelsPayload m_labels;
213
214 UpdateTaintsPayload m_taints;
215
216 NodegroupScalingConfig m_scalingConfig;
217
218 NodegroupUpdateConfig m_updateConfig;
219
220 NodeRepairConfig m_nodeRepairConfig;
221
222 WarmPoolConfig m_warmPoolConfig;
223
224 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
225 bool m_clusterNameHasBeenSet = false;
226 bool m_nodegroupNameHasBeenSet = false;
227 bool m_labelsHasBeenSet = false;
228 bool m_taintsHasBeenSet = false;
229 bool m_scalingConfigHasBeenSet = false;
230 bool m_updateConfigHasBeenSet = false;
231 bool m_nodeRepairConfigHasBeenSet = false;
232 bool m_warmPoolConfigHasBeenSet = false;
233 bool m_clientRequestTokenHasBeenSet = true;
234};
235
236} // namespace Model
237} // namespace EKS
238} // namespace Aws
UpdateNodegroupConfigRequest & WithScalingConfig(ScalingConfigT &&value)
UpdateNodegroupConfigRequest & WithWarmPoolConfig(WarmPoolConfigT &&value)
UpdateNodegroupConfigRequest & WithUpdateConfig(UpdateConfigT &&value)
UpdateNodegroupConfigRequest & WithNodegroupName(NodegroupNameT &&value)
UpdateNodegroupConfigRequest & WithLabels(LabelsT &&value)
const NodegroupUpdateConfig & GetUpdateConfig() const
const NodegroupScalingConfig & GetScalingConfig() const
AWS_EKS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateNodegroupConfigRequest & WithClusterName(ClusterNameT &&value)
UpdateNodegroupConfigRequest & WithClientRequestToken(ClientRequestTokenT &&value)
UpdateNodegroupConfigRequest & WithTaints(TaintsT &&value)
UpdateNodegroupConfigRequest & WithNodeRepairConfig(NodeRepairConfigT &&value)
AWS_EKS_API UpdateNodegroupConfigRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String