AWS SDK for C++

AWS SDK for C++ Version 1.11.849

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
66 inline const VpcConfigRequest& GetResourcesVpcConfig() const { return m_resourcesVpcConfig; }
67 inline bool ResourcesVpcConfigHasBeenSet() const { return m_resourcesVpcConfigHasBeenSet; }
68 template <typename ResourcesVpcConfigT = VpcConfigRequest>
69 void SetResourcesVpcConfig(ResourcesVpcConfigT&& value) {
70 m_resourcesVpcConfigHasBeenSet = true;
71 m_resourcesVpcConfig = std::forward<ResourcesVpcConfigT>(value);
72 }
73 template <typename ResourcesVpcConfigT = VpcConfigRequest>
74 UpdateClusterConfigRequest& WithResourcesVpcConfig(ResourcesVpcConfigT&& value) {
75 SetResourcesVpcConfig(std::forward<ResourcesVpcConfigT>(value));
76 return *this;
77 }
79
81
92 inline const Logging& GetLogging() const { return m_logging; }
93 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
94 template <typename LoggingT = Logging>
95 void SetLogging(LoggingT&& value) {
96 m_loggingHasBeenSet = true;
97 m_logging = std::forward<LoggingT>(value);
98 }
99 template <typename LoggingT = Logging>
101 SetLogging(std::forward<LoggingT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
112 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
113 template <typename ClientRequestTokenT = Aws::String>
114 void SetClientRequestToken(ClientRequestTokenT&& value) {
115 m_clientRequestTokenHasBeenSet = true;
116 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
117 }
118 template <typename ClientRequestTokenT = Aws::String>
120 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
121 return *this;
122 }
124
126
129 inline const UpdateAccessConfigRequest& GetAccessConfig() const { return m_accessConfig; }
130 inline bool AccessConfigHasBeenSet() const { return m_accessConfigHasBeenSet; }
131 template <typename AccessConfigT = UpdateAccessConfigRequest>
132 void SetAccessConfig(AccessConfigT&& value) {
133 m_accessConfigHasBeenSet = true;
134 m_accessConfig = std::forward<AccessConfigT>(value);
135 }
136 template <typename AccessConfigT = UpdateAccessConfigRequest>
138 SetAccessConfig(std::forward<AccessConfigT>(value));
139 return *this;
140 }
142
144
149 inline const UpgradePolicyRequest& GetUpgradePolicy() const { return m_upgradePolicy; }
150 inline bool UpgradePolicyHasBeenSet() const { return m_upgradePolicyHasBeenSet; }
151 template <typename UpgradePolicyT = UpgradePolicyRequest>
152 void SetUpgradePolicy(UpgradePolicyT&& value) {
153 m_upgradePolicyHasBeenSet = true;
154 m_upgradePolicy = std::forward<UpgradePolicyT>(value);
155 }
156 template <typename UpgradePolicyT = UpgradePolicyRequest>
158 SetUpgradePolicy(std::forward<UpgradePolicyT>(value));
159 return *this;
160 }
162
164
182 inline const ZonalShiftConfigRequest& GetZonalShiftConfig() const { return m_zonalShiftConfig; }
183 inline bool ZonalShiftConfigHasBeenSet() const { return m_zonalShiftConfigHasBeenSet; }
184 template <typename ZonalShiftConfigT = ZonalShiftConfigRequest>
185 void SetZonalShiftConfig(ZonalShiftConfigT&& value) {
186 m_zonalShiftConfigHasBeenSet = true;
187 m_zonalShiftConfig = std::forward<ZonalShiftConfigT>(value);
188 }
189 template <typename ZonalShiftConfigT = ZonalShiftConfigRequest>
191 SetZonalShiftConfig(std::forward<ZonalShiftConfigT>(value));
192 return *this;
193 }
195
197
201 inline const ComputeConfigRequest& GetComputeConfig() const { return m_computeConfig; }
202 inline bool ComputeConfigHasBeenSet() const { return m_computeConfigHasBeenSet; }
203 template <typename ComputeConfigT = ComputeConfigRequest>
204 void SetComputeConfig(ComputeConfigT&& value) {
205 m_computeConfigHasBeenSet = true;
206 m_computeConfig = std::forward<ComputeConfigT>(value);
207 }
208 template <typename ComputeConfigT = ComputeConfigRequest>
210 SetComputeConfig(std::forward<ComputeConfigT>(value));
211 return *this;
212 }
214
216
217 inline const KubernetesNetworkConfigRequest& GetKubernetesNetworkConfig() const { return m_kubernetesNetworkConfig; }
218 inline bool KubernetesNetworkConfigHasBeenSet() const { return m_kubernetesNetworkConfigHasBeenSet; }
219 template <typename KubernetesNetworkConfigT = KubernetesNetworkConfigRequest>
220 void SetKubernetesNetworkConfig(KubernetesNetworkConfigT&& value) {
221 m_kubernetesNetworkConfigHasBeenSet = true;
222 m_kubernetesNetworkConfig = std::forward<KubernetesNetworkConfigT>(value);
223 }
224 template <typename KubernetesNetworkConfigT = KubernetesNetworkConfigRequest>
225 UpdateClusterConfigRequest& WithKubernetesNetworkConfig(KubernetesNetworkConfigT&& value) {
226 SetKubernetesNetworkConfig(std::forward<KubernetesNetworkConfigT>(value));
227 return *this;
228 }
230
232
236 inline const StorageConfigRequest& GetStorageConfig() const { return m_storageConfig; }
237 inline bool StorageConfigHasBeenSet() const { return m_storageConfigHasBeenSet; }
238 template <typename StorageConfigT = StorageConfigRequest>
239 void SetStorageConfig(StorageConfigT&& value) {
240 m_storageConfigHasBeenSet = true;
241 m_storageConfig = std::forward<StorageConfigT>(value);
242 }
243 template <typename StorageConfigT = StorageConfigRequest>
245 SetStorageConfig(std::forward<StorageConfigT>(value));
246 return *this;
247 }
249
251
252 inline const RemoteNetworkConfigRequest& GetRemoteNetworkConfig() const { return m_remoteNetworkConfig; }
253 inline bool RemoteNetworkConfigHasBeenSet() const { return m_remoteNetworkConfigHasBeenSet; }
254 template <typename RemoteNetworkConfigT = RemoteNetworkConfigRequest>
255 void SetRemoteNetworkConfig(RemoteNetworkConfigT&& value) {
256 m_remoteNetworkConfigHasBeenSet = true;
257 m_remoteNetworkConfig = std::forward<RemoteNetworkConfigT>(value);
258 }
259 template <typename RemoteNetworkConfigT = RemoteNetworkConfigRequest>
261 SetRemoteNetworkConfig(std::forward<RemoteNetworkConfigT>(value));
262 return *this;
263 }
265
267
273 inline bool GetDeletionProtection() const { return m_deletionProtection; }
274 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
275 inline void SetDeletionProtection(bool value) {
276 m_deletionProtectionHasBeenSet = true;
277 m_deletionProtection = value;
278 }
281 return *this;
282 }
284
286
290 inline const ControlPlaneScalingConfig& GetControlPlaneScalingConfig() const { return m_controlPlaneScalingConfig; }
291 inline bool ControlPlaneScalingConfigHasBeenSet() const { return m_controlPlaneScalingConfigHasBeenSet; }
292 template <typename ControlPlaneScalingConfigT = ControlPlaneScalingConfig>
293 void SetControlPlaneScalingConfig(ControlPlaneScalingConfigT&& value) {
294 m_controlPlaneScalingConfigHasBeenSet = true;
295 m_controlPlaneScalingConfig = std::forward<ControlPlaneScalingConfigT>(value);
296 }
297 template <typename ControlPlaneScalingConfigT = ControlPlaneScalingConfig>
298 UpdateClusterConfigRequest& WithControlPlaneScalingConfig(ControlPlaneScalingConfigT&& value) {
299 SetControlPlaneScalingConfig(std::forward<ControlPlaneScalingConfigT>(value));
300 return *this;
301 }
303 private:
304 Aws::String m_name;
305
306 VpcConfigRequest m_resourcesVpcConfig;
307
308 Logging m_logging;
309
310 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
311
312 UpdateAccessConfigRequest m_accessConfig;
313
314 UpgradePolicyRequest m_upgradePolicy;
315
316 ZonalShiftConfigRequest m_zonalShiftConfig;
317
318 ComputeConfigRequest m_computeConfig;
319
320 KubernetesNetworkConfigRequest m_kubernetesNetworkConfig;
321
322 StorageConfigRequest m_storageConfig;
323
324 RemoteNetworkConfigRequest m_remoteNetworkConfig;
325
326 bool m_deletionProtection{false};
327
328 ControlPlaneScalingConfig m_controlPlaneScalingConfig;
329 bool m_nameHasBeenSet = false;
330 bool m_resourcesVpcConfigHasBeenSet = false;
331 bool m_loggingHasBeenSet = false;
332 bool m_clientRequestTokenHasBeenSet = true;
333 bool m_accessConfigHasBeenSet = false;
334 bool m_upgradePolicyHasBeenSet = false;
335 bool m_zonalShiftConfigHasBeenSet = false;
336 bool m_computeConfigHasBeenSet = false;
337 bool m_kubernetesNetworkConfigHasBeenSet = false;
338 bool m_storageConfigHasBeenSet = false;
339 bool m_remoteNetworkConfigHasBeenSet = false;
340 bool m_deletionProtectionHasBeenSet = false;
341 bool m_controlPlaneScalingConfigHasBeenSet = false;
342};
343
344} // namespace Model
345} // namespace EKS
346} // 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