AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/KubernetesNetworkConfigRequest.h>
14#include <aws/eks/model/Logging.h>
15#include <aws/eks/model/RemoteNetworkConfigRequest.h>
16#include <aws/eks/model/StorageConfigRequest.h>
17#include <aws/eks/model/UpdateAccessConfigRequest.h>
18#include <aws/eks/model/UpgradePolicyRequest.h>
19#include <aws/eks/model/VpcConfigRequest.h>
20#include <aws/eks/model/ZonalShiftConfigRequest.h>
21
22#include <utility>
23
24namespace Aws {
25namespace EKS {
26namespace Model {
27
31 public:
32 AWS_EKS_API UpdateClusterConfigRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateClusterConfig"; }
39
40 AWS_EKS_API Aws::String SerializePayload() const override;
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
62 inline const VpcConfigRequest& GetResourcesVpcConfig() const { return m_resourcesVpcConfig; }
63 inline bool ResourcesVpcConfigHasBeenSet() const { return m_resourcesVpcConfigHasBeenSet; }
64 template <typename ResourcesVpcConfigT = VpcConfigRequest>
65 void SetResourcesVpcConfig(ResourcesVpcConfigT&& value) {
66 m_resourcesVpcConfigHasBeenSet = true;
67 m_resourcesVpcConfig = std::forward<ResourcesVpcConfigT>(value);
68 }
69 template <typename ResourcesVpcConfigT = VpcConfigRequest>
70 UpdateClusterConfigRequest& WithResourcesVpcConfig(ResourcesVpcConfigT&& value) {
71 SetResourcesVpcConfig(std::forward<ResourcesVpcConfigT>(value));
72 return *this;
73 }
75
77
88 inline const Logging& GetLogging() const { return m_logging; }
89 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
90 template <typename LoggingT = Logging>
91 void SetLogging(LoggingT&& value) {
92 m_loggingHasBeenSet = true;
93 m_logging = std::forward<LoggingT>(value);
94 }
95 template <typename LoggingT = Logging>
97 SetLogging(std::forward<LoggingT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
108 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
109 template <typename ClientRequestTokenT = Aws::String>
110 void SetClientRequestToken(ClientRequestTokenT&& value) {
111 m_clientRequestTokenHasBeenSet = true;
112 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
113 }
114 template <typename ClientRequestTokenT = Aws::String>
116 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
117 return *this;
118 }
120
122
125 inline const UpdateAccessConfigRequest& GetAccessConfig() const { return m_accessConfig; }
126 inline bool AccessConfigHasBeenSet() const { return m_accessConfigHasBeenSet; }
127 template <typename AccessConfigT = UpdateAccessConfigRequest>
128 void SetAccessConfig(AccessConfigT&& value) {
129 m_accessConfigHasBeenSet = true;
130 m_accessConfig = std::forward<AccessConfigT>(value);
131 }
132 template <typename AccessConfigT = UpdateAccessConfigRequest>
134 SetAccessConfig(std::forward<AccessConfigT>(value));
135 return *this;
136 }
138
140
145 inline const UpgradePolicyRequest& GetUpgradePolicy() const { return m_upgradePolicy; }
146 inline bool UpgradePolicyHasBeenSet() const { return m_upgradePolicyHasBeenSet; }
147 template <typename UpgradePolicyT = UpgradePolicyRequest>
148 void SetUpgradePolicy(UpgradePolicyT&& value) {
149 m_upgradePolicyHasBeenSet = true;
150 m_upgradePolicy = std::forward<UpgradePolicyT>(value);
151 }
152 template <typename UpgradePolicyT = UpgradePolicyRequest>
154 SetUpgradePolicy(std::forward<UpgradePolicyT>(value));
155 return *this;
156 }
158
160
178 inline const ZonalShiftConfigRequest& GetZonalShiftConfig() const { return m_zonalShiftConfig; }
179 inline bool ZonalShiftConfigHasBeenSet() const { return m_zonalShiftConfigHasBeenSet; }
180 template <typename ZonalShiftConfigT = ZonalShiftConfigRequest>
181 void SetZonalShiftConfig(ZonalShiftConfigT&& value) {
182 m_zonalShiftConfigHasBeenSet = true;
183 m_zonalShiftConfig = std::forward<ZonalShiftConfigT>(value);
184 }
185 template <typename ZonalShiftConfigT = ZonalShiftConfigRequest>
187 SetZonalShiftConfig(std::forward<ZonalShiftConfigT>(value));
188 return *this;
189 }
191
193
197 inline const ComputeConfigRequest& GetComputeConfig() const { return m_computeConfig; }
198 inline bool ComputeConfigHasBeenSet() const { return m_computeConfigHasBeenSet; }
199 template <typename ComputeConfigT = ComputeConfigRequest>
200 void SetComputeConfig(ComputeConfigT&& value) {
201 m_computeConfigHasBeenSet = true;
202 m_computeConfig = std::forward<ComputeConfigT>(value);
203 }
204 template <typename ComputeConfigT = ComputeConfigRequest>
206 SetComputeConfig(std::forward<ComputeConfigT>(value));
207 return *this;
208 }
210
212
213 inline const KubernetesNetworkConfigRequest& GetKubernetesNetworkConfig() const { return m_kubernetesNetworkConfig; }
214 inline bool KubernetesNetworkConfigHasBeenSet() const { return m_kubernetesNetworkConfigHasBeenSet; }
215 template <typename KubernetesNetworkConfigT = KubernetesNetworkConfigRequest>
216 void SetKubernetesNetworkConfig(KubernetesNetworkConfigT&& value) {
217 m_kubernetesNetworkConfigHasBeenSet = true;
218 m_kubernetesNetworkConfig = std::forward<KubernetesNetworkConfigT>(value);
219 }
220 template <typename KubernetesNetworkConfigT = KubernetesNetworkConfigRequest>
221 UpdateClusterConfigRequest& WithKubernetesNetworkConfig(KubernetesNetworkConfigT&& value) {
222 SetKubernetesNetworkConfig(std::forward<KubernetesNetworkConfigT>(value));
223 return *this;
224 }
226
228
232 inline const StorageConfigRequest& GetStorageConfig() const { return m_storageConfig; }
233 inline bool StorageConfigHasBeenSet() const { return m_storageConfigHasBeenSet; }
234 template <typename StorageConfigT = StorageConfigRequest>
235 void SetStorageConfig(StorageConfigT&& value) {
236 m_storageConfigHasBeenSet = true;
237 m_storageConfig = std::forward<StorageConfigT>(value);
238 }
239 template <typename StorageConfigT = StorageConfigRequest>
241 SetStorageConfig(std::forward<StorageConfigT>(value));
242 return *this;
243 }
245
247
248 inline const RemoteNetworkConfigRequest& GetRemoteNetworkConfig() const { return m_remoteNetworkConfig; }
249 inline bool RemoteNetworkConfigHasBeenSet() const { return m_remoteNetworkConfigHasBeenSet; }
250 template <typename RemoteNetworkConfigT = RemoteNetworkConfigRequest>
251 void SetRemoteNetworkConfig(RemoteNetworkConfigT&& value) {
252 m_remoteNetworkConfigHasBeenSet = true;
253 m_remoteNetworkConfig = std::forward<RemoteNetworkConfigT>(value);
254 }
255 template <typename RemoteNetworkConfigT = RemoteNetworkConfigRequest>
257 SetRemoteNetworkConfig(std::forward<RemoteNetworkConfigT>(value));
258 return *this;
259 }
261
263
269 inline bool GetDeletionProtection() const { return m_deletionProtection; }
270 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
271 inline void SetDeletionProtection(bool value) {
272 m_deletionProtectionHasBeenSet = true;
273 m_deletionProtection = value;
274 }
277 return *this;
278 }
280
282
286 inline const ControlPlaneScalingConfig& GetControlPlaneScalingConfig() const { return m_controlPlaneScalingConfig; }
287 inline bool ControlPlaneScalingConfigHasBeenSet() const { return m_controlPlaneScalingConfigHasBeenSet; }
288 template <typename ControlPlaneScalingConfigT = ControlPlaneScalingConfig>
289 void SetControlPlaneScalingConfig(ControlPlaneScalingConfigT&& value) {
290 m_controlPlaneScalingConfigHasBeenSet = true;
291 m_controlPlaneScalingConfig = std::forward<ControlPlaneScalingConfigT>(value);
292 }
293 template <typename ControlPlaneScalingConfigT = ControlPlaneScalingConfig>
294 UpdateClusterConfigRequest& WithControlPlaneScalingConfig(ControlPlaneScalingConfigT&& value) {
295 SetControlPlaneScalingConfig(std::forward<ControlPlaneScalingConfigT>(value));
296 return *this;
297 }
299 private:
300 Aws::String m_name;
301
302 VpcConfigRequest m_resourcesVpcConfig;
303
304 Logging m_logging;
305
306 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
307
308 UpdateAccessConfigRequest m_accessConfig;
309
310 UpgradePolicyRequest m_upgradePolicy;
311
312 ZonalShiftConfigRequest m_zonalShiftConfig;
313
314 ComputeConfigRequest m_computeConfig;
315
316 KubernetesNetworkConfigRequest m_kubernetesNetworkConfig;
317
318 StorageConfigRequest m_storageConfig;
319
320 RemoteNetworkConfigRequest m_remoteNetworkConfig;
321
322 bool m_deletionProtection{false};
323
324 ControlPlaneScalingConfig m_controlPlaneScalingConfig;
325 bool m_nameHasBeenSet = false;
326 bool m_resourcesVpcConfigHasBeenSet = false;
327 bool m_loggingHasBeenSet = false;
328 bool m_clientRequestTokenHasBeenSet = true;
329 bool m_accessConfigHasBeenSet = false;
330 bool m_upgradePolicyHasBeenSet = false;
331 bool m_zonalShiftConfigHasBeenSet = false;
332 bool m_computeConfigHasBeenSet = false;
333 bool m_kubernetesNetworkConfigHasBeenSet = false;
334 bool m_storageConfigHasBeenSet = false;
335 bool m_remoteNetworkConfigHasBeenSet = false;
336 bool m_deletionProtectionHasBeenSet = false;
337 bool m_controlPlaneScalingConfigHasBeenSet = false;
338};
339
340} // namespace Model
341} // namespace EKS
342} // namespace Aws
void SetResourcesVpcConfig(ResourcesVpcConfigT &&value)
const ComputeConfigRequest & GetComputeConfig() const
void SetControlPlaneScalingConfig(ControlPlaneScalingConfigT &&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)
virtual const char * GetServiceRequestName() const override
UpdateClusterConfigRequest & WithUpgradePolicy(UpgradePolicyT &&value)
UpdateClusterConfigRequest & WithAccessConfig(AccessConfigT &&value)
UpdateClusterConfigRequest & WithName(NameT &&value)
AWS_EKS_API UpdateClusterConfigRequest()=default
void SetClientRequestToken(ClientRequestTokenT &&value)
void SetRemoteNetworkConfig(RemoteNetworkConfigT &&value)
UpdateClusterConfigRequest & WithComputeConfig(ComputeConfigT &&value)
const RemoteNetworkConfigRequest & GetRemoteNetworkConfig() const
const UpdateAccessConfigRequest & GetAccessConfig() const
UpdateClusterConfigRequest & WithZonalShiftConfig(ZonalShiftConfigT &&value)
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
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