AWS SDK for C++

AWS SDK for C++ Version 1.11.872

Loading...
Searching...
No Matches
UpdateClusterConfigRequest.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/ComputeConfigRequest.h>
12#include <aws/eks/model/ControlPlaneScalingConfig.h>
13#include <aws/eks/model/KubeApiServerConfigRequest.h>
14#include <aws/eks/model/KubeControllerManagerConfigRequest.h>
15#include <aws/eks/model/KubeSchedulerConfigRequest.h>
16#include <aws/eks/model/KubernetesNetworkConfigRequest.h>
17#include <aws/eks/model/Logging.h>
18#include <aws/eks/model/RemoteNetworkConfigRequest.h>
19#include <aws/eks/model/StorageConfigRequest.h>
20#include <aws/eks/model/UpdateAccessConfigRequest.h>
21#include <aws/eks/model/UpgradePolicyRequest.h>
22#include <aws/eks/model/VpcConfigRequest.h>
23#include <aws/eks/model/ZonalShiftConfigRequest.h>
24
25#include <utility>
26
27namespace Aws {
28namespace EKS {
29namespace Model {
30
34 public:
35 AWS_EKS_API UpdateClusterConfigRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "UpdateClusterConfig"; }
42
43 AWS_EKS_API Aws::String SerializePayload() const override;
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template <typename NameT = Aws::String>
52 void SetName(NameT&& value) {
53 m_nameHasBeenSet = true;
54 m_name = std::forward<NameT>(value);
55 }
56 template <typename NameT = Aws::String>
58 SetName(std::forward<NameT>(value));
59 return *this;
60 }
62
64
69 inline const VpcConfigRequest& GetResourcesVpcConfig() const { return m_resourcesVpcConfig; }
70 inline bool ResourcesVpcConfigHasBeenSet() const { return m_resourcesVpcConfigHasBeenSet; }
71 template <typename ResourcesVpcConfigT = VpcConfigRequest>
72 void SetResourcesVpcConfig(ResourcesVpcConfigT&& value) {
73 m_resourcesVpcConfigHasBeenSet = true;
74 m_resourcesVpcConfig = std::forward<ResourcesVpcConfigT>(value);
75 }
76 template <typename ResourcesVpcConfigT = VpcConfigRequest>
77 UpdateClusterConfigRequest& WithResourcesVpcConfig(ResourcesVpcConfigT&& value) {
78 SetResourcesVpcConfig(std::forward<ResourcesVpcConfigT>(value));
79 return *this;
80 }
82
84
95 inline const Logging& GetLogging() const { return m_logging; }
96 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
97 template <typename LoggingT = Logging>
98 void SetLogging(LoggingT&& value) {
99 m_loggingHasBeenSet = true;
100 m_logging = std::forward<LoggingT>(value);
101 }
102 template <typename LoggingT = Logging>
104 SetLogging(std::forward<LoggingT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
115 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
116 template <typename ClientRequestTokenT = Aws::String>
117 void SetClientRequestToken(ClientRequestTokenT&& value) {
118 m_clientRequestTokenHasBeenSet = true;
119 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
120 }
121 template <typename ClientRequestTokenT = Aws::String>
123 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
124 return *this;
125 }
127
129
132 inline const UpdateAccessConfigRequest& GetAccessConfig() const { return m_accessConfig; }
133 inline bool AccessConfigHasBeenSet() const { return m_accessConfigHasBeenSet; }
134 template <typename AccessConfigT = UpdateAccessConfigRequest>
135 void SetAccessConfig(AccessConfigT&& value) {
136 m_accessConfigHasBeenSet = true;
137 m_accessConfig = std::forward<AccessConfigT>(value);
138 }
139 template <typename AccessConfigT = UpdateAccessConfigRequest>
141 SetAccessConfig(std::forward<AccessConfigT>(value));
142 return *this;
143 }
145
147
152 inline const UpgradePolicyRequest& GetUpgradePolicy() const { return m_upgradePolicy; }
153 inline bool UpgradePolicyHasBeenSet() const { return m_upgradePolicyHasBeenSet; }
154 template <typename UpgradePolicyT = UpgradePolicyRequest>
155 void SetUpgradePolicy(UpgradePolicyT&& value) {
156 m_upgradePolicyHasBeenSet = true;
157 m_upgradePolicy = std::forward<UpgradePolicyT>(value);
158 }
159 template <typename UpgradePolicyT = UpgradePolicyRequest>
161 SetUpgradePolicy(std::forward<UpgradePolicyT>(value));
162 return *this;
163 }
165
167
185 inline const ZonalShiftConfigRequest& GetZonalShiftConfig() const { return m_zonalShiftConfig; }
186 inline bool ZonalShiftConfigHasBeenSet() const { return m_zonalShiftConfigHasBeenSet; }
187 template <typename ZonalShiftConfigT = ZonalShiftConfigRequest>
188 void SetZonalShiftConfig(ZonalShiftConfigT&& value) {
189 m_zonalShiftConfigHasBeenSet = true;
190 m_zonalShiftConfig = std::forward<ZonalShiftConfigT>(value);
191 }
192 template <typename ZonalShiftConfigT = ZonalShiftConfigRequest>
194 SetZonalShiftConfig(std::forward<ZonalShiftConfigT>(value));
195 return *this;
196 }
198
200
204 inline const ComputeConfigRequest& GetComputeConfig() const { return m_computeConfig; }
205 inline bool ComputeConfigHasBeenSet() const { return m_computeConfigHasBeenSet; }
206 template <typename ComputeConfigT = ComputeConfigRequest>
207 void SetComputeConfig(ComputeConfigT&& value) {
208 m_computeConfigHasBeenSet = true;
209 m_computeConfig = std::forward<ComputeConfigT>(value);
210 }
211 template <typename ComputeConfigT = ComputeConfigRequest>
213 SetComputeConfig(std::forward<ComputeConfigT>(value));
214 return *this;
215 }
217
219
220 inline const KubernetesNetworkConfigRequest& GetKubernetesNetworkConfig() const { return m_kubernetesNetworkConfig; }
221 inline bool KubernetesNetworkConfigHasBeenSet() const { return m_kubernetesNetworkConfigHasBeenSet; }
222 template <typename KubernetesNetworkConfigT = KubernetesNetworkConfigRequest>
223 void SetKubernetesNetworkConfig(KubernetesNetworkConfigT&& value) {
224 m_kubernetesNetworkConfigHasBeenSet = true;
225 m_kubernetesNetworkConfig = std::forward<KubernetesNetworkConfigT>(value);
226 }
227 template <typename KubernetesNetworkConfigT = KubernetesNetworkConfigRequest>
228 UpdateClusterConfigRequest& WithKubernetesNetworkConfig(KubernetesNetworkConfigT&& value) {
229 SetKubernetesNetworkConfig(std::forward<KubernetesNetworkConfigT>(value));
230 return *this;
231 }
233
235
239 inline const StorageConfigRequest& GetStorageConfig() const { return m_storageConfig; }
240 inline bool StorageConfigHasBeenSet() const { return m_storageConfigHasBeenSet; }
241 template <typename StorageConfigT = StorageConfigRequest>
242 void SetStorageConfig(StorageConfigT&& value) {
243 m_storageConfigHasBeenSet = true;
244 m_storageConfig = std::forward<StorageConfigT>(value);
245 }
246 template <typename StorageConfigT = StorageConfigRequest>
248 SetStorageConfig(std::forward<StorageConfigT>(value));
249 return *this;
250 }
252
254
255 inline const RemoteNetworkConfigRequest& GetRemoteNetworkConfig() const { return m_remoteNetworkConfig; }
256 inline bool RemoteNetworkConfigHasBeenSet() const { return m_remoteNetworkConfigHasBeenSet; }
257 template <typename RemoteNetworkConfigT = RemoteNetworkConfigRequest>
258 void SetRemoteNetworkConfig(RemoteNetworkConfigT&& value) {
259 m_remoteNetworkConfigHasBeenSet = true;
260 m_remoteNetworkConfig = std::forward<RemoteNetworkConfigT>(value);
261 }
262 template <typename RemoteNetworkConfigT = RemoteNetworkConfigRequest>
264 SetRemoteNetworkConfig(std::forward<RemoteNetworkConfigT>(value));
265 return *this;
266 }
268
270
276 inline bool GetDeletionProtection() const { return m_deletionProtection; }
277 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
278 inline void SetDeletionProtection(bool value) {
279 m_deletionProtectionHasBeenSet = true;
280 m_deletionProtection = value;
281 }
284 return *this;
285 }
287
289
293 inline const ControlPlaneScalingConfig& GetControlPlaneScalingConfig() const { return m_controlPlaneScalingConfig; }
294 inline bool ControlPlaneScalingConfigHasBeenSet() const { return m_controlPlaneScalingConfigHasBeenSet; }
295 template <typename ControlPlaneScalingConfigT = ControlPlaneScalingConfig>
296 void SetControlPlaneScalingConfig(ControlPlaneScalingConfigT&& value) {
297 m_controlPlaneScalingConfigHasBeenSet = true;
298 m_controlPlaneScalingConfig = std::forward<ControlPlaneScalingConfigT>(value);
299 }
300 template <typename ControlPlaneScalingConfigT = ControlPlaneScalingConfig>
301 UpdateClusterConfigRequest& WithControlPlaneScalingConfig(ControlPlaneScalingConfigT&& value) {
302 SetControlPlaneScalingConfig(std::forward<ControlPlaneScalingConfigT>(value));
303 return *this;
304 }
306
308
311 inline const KubeApiServerConfigRequest& GetKubeApiServerConfig() const { return m_kubeApiServerConfig; }
312 inline bool KubeApiServerConfigHasBeenSet() const { return m_kubeApiServerConfigHasBeenSet; }
313 template <typename KubeApiServerConfigT = KubeApiServerConfigRequest>
314 void SetKubeApiServerConfig(KubeApiServerConfigT&& value) {
315 m_kubeApiServerConfigHasBeenSet = true;
316 m_kubeApiServerConfig = std::forward<KubeApiServerConfigT>(value);
317 }
318 template <typename KubeApiServerConfigT = KubeApiServerConfigRequest>
320 SetKubeApiServerConfig(std::forward<KubeApiServerConfigT>(value));
321 return *this;
322 }
324
326
329 inline const KubeSchedulerConfigRequest& GetKubeSchedulerConfig() const { return m_kubeSchedulerConfig; }
330 inline bool KubeSchedulerConfigHasBeenSet() const { return m_kubeSchedulerConfigHasBeenSet; }
331 template <typename KubeSchedulerConfigT = KubeSchedulerConfigRequest>
332 void SetKubeSchedulerConfig(KubeSchedulerConfigT&& value) {
333 m_kubeSchedulerConfigHasBeenSet = true;
334 m_kubeSchedulerConfig = std::forward<KubeSchedulerConfigT>(value);
335 }
336 template <typename KubeSchedulerConfigT = KubeSchedulerConfigRequest>
338 SetKubeSchedulerConfig(std::forward<KubeSchedulerConfigT>(value));
339 return *this;
340 }
342
344
347 inline const KubeControllerManagerConfigRequest& GetKubeControllerManagerConfig() const { return m_kubeControllerManagerConfig; }
348 inline bool KubeControllerManagerConfigHasBeenSet() const { return m_kubeControllerManagerConfigHasBeenSet; }
349 template <typename KubeControllerManagerConfigT = KubeControllerManagerConfigRequest>
350 void SetKubeControllerManagerConfig(KubeControllerManagerConfigT&& value) {
351 m_kubeControllerManagerConfigHasBeenSet = true;
352 m_kubeControllerManagerConfig = std::forward<KubeControllerManagerConfigT>(value);
353 }
354 template <typename KubeControllerManagerConfigT = KubeControllerManagerConfigRequest>
355 UpdateClusterConfigRequest& WithKubeControllerManagerConfig(KubeControllerManagerConfigT&& value) {
356 SetKubeControllerManagerConfig(std::forward<KubeControllerManagerConfigT>(value));
357 return *this;
358 }
360 private:
361 Aws::String m_name;
362
363 VpcConfigRequest m_resourcesVpcConfig;
364
365 Logging m_logging;
366
367 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
368
369 UpdateAccessConfigRequest m_accessConfig;
370
371 UpgradePolicyRequest m_upgradePolicy;
372
373 ZonalShiftConfigRequest m_zonalShiftConfig;
374
375 ComputeConfigRequest m_computeConfig;
376
377 KubernetesNetworkConfigRequest m_kubernetesNetworkConfig;
378
379 StorageConfigRequest m_storageConfig;
380
381 RemoteNetworkConfigRequest m_remoteNetworkConfig;
382
383 bool m_deletionProtection{false};
384
385 ControlPlaneScalingConfig m_controlPlaneScalingConfig;
386
387 KubeApiServerConfigRequest m_kubeApiServerConfig;
388
389 KubeSchedulerConfigRequest m_kubeSchedulerConfig;
390
391 KubeControllerManagerConfigRequest m_kubeControllerManagerConfig;
392 bool m_nameHasBeenSet = false;
393 bool m_resourcesVpcConfigHasBeenSet = false;
394 bool m_loggingHasBeenSet = false;
395 bool m_clientRequestTokenHasBeenSet = true;
396 bool m_accessConfigHasBeenSet = false;
397 bool m_upgradePolicyHasBeenSet = false;
398 bool m_zonalShiftConfigHasBeenSet = false;
399 bool m_computeConfigHasBeenSet = false;
400 bool m_kubernetesNetworkConfigHasBeenSet = false;
401 bool m_storageConfigHasBeenSet = false;
402 bool m_remoteNetworkConfigHasBeenSet = false;
403 bool m_deletionProtectionHasBeenSet = false;
404 bool m_controlPlaneScalingConfigHasBeenSet = false;
405 bool m_kubeApiServerConfigHasBeenSet = false;
406 bool m_kubeSchedulerConfigHasBeenSet = false;
407 bool m_kubeControllerManagerConfigHasBeenSet = false;
408};
409
410} // namespace Model
411} // namespace EKS
412} // namespace Aws
void SetKubeApiServerConfig(KubeApiServerConfigT &&value)
void SetResourcesVpcConfig(ResourcesVpcConfigT &&value)
const ComputeConfigRequest & GetComputeConfig() const
void SetControlPlaneScalingConfig(ControlPlaneScalingConfigT &&value)
UpdateClusterConfigRequest & WithKubeControllerManagerConfig(KubeControllerManagerConfigT &&value)
void SetKubernetesNetworkConfig(KubernetesNetworkConfigT &&value)
AWS_EKS_API Aws::String SerializePayload() const override
UpdateClusterConfigRequest & WithResourcesVpcConfig(ResourcesVpcConfigT &&value)
UpdateClusterConfigRequest & WithKubernetesNetworkConfig(KubernetesNetworkConfigT &&value)
UpdateClusterConfigRequest & WithDeletionProtection(bool value)
UpdateClusterConfigRequest & WithRemoteNetworkConfig(RemoteNetworkConfigT &&value)
UpdateClusterConfigRequest & WithStorageConfig(StorageConfigT &&value)
const KubeApiServerConfigRequest & GetKubeApiServerConfig() const
virtual const char * GetServiceRequestName() const override
UpdateClusterConfigRequest & WithUpgradePolicy(UpgradePolicyT &&value)
UpdateClusterConfigRequest & WithAccessConfig(AccessConfigT &&value)
const KubeControllerManagerConfigRequest & GetKubeControllerManagerConfig() const
UpdateClusterConfigRequest & WithName(NameT &&value)
void SetKubeControllerManagerConfig(KubeControllerManagerConfigT &&value)
UpdateClusterConfigRequest & WithKubeApiServerConfig(KubeApiServerConfigT &&value)
AWS_EKS_API UpdateClusterConfigRequest()=default
void SetClientRequestToken(ClientRequestTokenT &&value)
void SetRemoteNetworkConfig(RemoteNetworkConfigT &&value)
UpdateClusterConfigRequest & WithComputeConfig(ComputeConfigT &&value)
UpdateClusterConfigRequest & WithKubeSchedulerConfig(KubeSchedulerConfigT &&value)
const RemoteNetworkConfigRequest & GetRemoteNetworkConfig() const
const UpdateAccessConfigRequest & GetAccessConfig() const
UpdateClusterConfigRequest & WithZonalShiftConfig(ZonalShiftConfigT &&value)
const KubeSchedulerConfigRequest & GetKubeSchedulerConfig() const
UpdateClusterConfigRequest & WithClientRequestToken(ClientRequestTokenT &&value)
UpdateClusterConfigRequest & WithLogging(LoggingT &&value)
const ControlPlaneScalingConfig & GetControlPlaneScalingConfig() const
const ZonalShiftConfigRequest & GetZonalShiftConfig() const
const UpgradePolicyRequest & GetUpgradePolicy() const
const StorageConfigRequest & GetStorageConfig() const
const KubernetesNetworkConfigRequest & GetKubernetesNetworkConfig() const
void SetKubeSchedulerConfig(KubeSchedulerConfigT &&value)
UpdateClusterConfigRequest & WithControlPlaneScalingConfig(ControlPlaneScalingConfigT &&value)
const VpcConfigRequest & GetResourcesVpcConfig() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String