AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateClusterConfigRequest.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/EKSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eks/model/VpcConfigRequest.h>
11#include <aws/eks/model/Logging.h>
12#include <aws/eks/model/UpdateAccessConfigRequest.h>
13#include <aws/eks/model/UpgradePolicyRequest.h>
14#include <aws/eks/model/ZonalShiftConfigRequest.h>
15#include <aws/eks/model/ComputeConfigRequest.h>
16#include <aws/eks/model/KubernetesNetworkConfigRequest.h>
17#include <aws/eks/model/StorageConfigRequest.h>
18#include <aws/eks/model/RemoteNetworkConfigRequest.h>
19#include <utility>
20#include <aws/core/utils/UUID.h>
21
22namespace Aws
23{
24namespace EKS
25{
26namespace Model
27{
28
32 {
33 public:
34 AWS_EKS_API UpdateClusterConfigRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "UpdateClusterConfig"; }
41
42 AWS_EKS_API Aws::String SerializePayload() const override;
43
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 UpdateClusterConfigRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
59 inline const VpcConfigRequest& GetResourcesVpcConfig() const { return m_resourcesVpcConfig; }
60 inline bool ResourcesVpcConfigHasBeenSet() const { return m_resourcesVpcConfigHasBeenSet; }
61 template<typename ResourcesVpcConfigT = VpcConfigRequest>
62 void SetResourcesVpcConfig(ResourcesVpcConfigT&& value) { m_resourcesVpcConfigHasBeenSet = true; m_resourcesVpcConfig = std::forward<ResourcesVpcConfigT>(value); }
63 template<typename ResourcesVpcConfigT = VpcConfigRequest>
64 UpdateClusterConfigRequest& WithResourcesVpcConfig(ResourcesVpcConfigT&& value) { SetResourcesVpcConfig(std::forward<ResourcesVpcConfigT>(value)); return *this;}
66
68
79 inline const Logging& GetLogging() const { return m_logging; }
80 inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; }
81 template<typename LoggingT = Logging>
82 void SetLogging(LoggingT&& value) { m_loggingHasBeenSet = true; m_logging = std::forward<LoggingT>(value); }
83 template<typename LoggingT = Logging>
84 UpdateClusterConfigRequest& WithLogging(LoggingT&& value) { SetLogging(std::forward<LoggingT>(value)); return *this;}
86
88
92 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
93 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
94 template<typename ClientRequestTokenT = Aws::String>
95 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
96 template<typename ClientRequestTokenT = Aws::String>
97 UpdateClusterConfigRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
99
101
104 inline const UpdateAccessConfigRequest& GetAccessConfig() const { return m_accessConfig; }
105 inline bool AccessConfigHasBeenSet() const { return m_accessConfigHasBeenSet; }
106 template<typename AccessConfigT = UpdateAccessConfigRequest>
107 void SetAccessConfig(AccessConfigT&& value) { m_accessConfigHasBeenSet = true; m_accessConfig = std::forward<AccessConfigT>(value); }
108 template<typename AccessConfigT = UpdateAccessConfigRequest>
109 UpdateClusterConfigRequest& WithAccessConfig(AccessConfigT&& value) { SetAccessConfig(std::forward<AccessConfigT>(value)); return *this;}
111
113
118 inline const UpgradePolicyRequest& GetUpgradePolicy() const { return m_upgradePolicy; }
119 inline bool UpgradePolicyHasBeenSet() const { return m_upgradePolicyHasBeenSet; }
120 template<typename UpgradePolicyT = UpgradePolicyRequest>
121 void SetUpgradePolicy(UpgradePolicyT&& value) { m_upgradePolicyHasBeenSet = true; m_upgradePolicy = std::forward<UpgradePolicyT>(value); }
122 template<typename UpgradePolicyT = UpgradePolicyRequest>
123 UpdateClusterConfigRequest& WithUpgradePolicy(UpgradePolicyT&& value) { SetUpgradePolicy(std::forward<UpgradePolicyT>(value)); return *this;}
125
127
145 inline const ZonalShiftConfigRequest& GetZonalShiftConfig() const { return m_zonalShiftConfig; }
146 inline bool ZonalShiftConfigHasBeenSet() const { return m_zonalShiftConfigHasBeenSet; }
147 template<typename ZonalShiftConfigT = ZonalShiftConfigRequest>
148 void SetZonalShiftConfig(ZonalShiftConfigT&& value) { m_zonalShiftConfigHasBeenSet = true; m_zonalShiftConfig = std::forward<ZonalShiftConfigT>(value); }
149 template<typename ZonalShiftConfigT = ZonalShiftConfigRequest>
150 UpdateClusterConfigRequest& WithZonalShiftConfig(ZonalShiftConfigT&& value) { SetZonalShiftConfig(std::forward<ZonalShiftConfigT>(value)); return *this;}
152
154
158 inline const ComputeConfigRequest& GetComputeConfig() const { return m_computeConfig; }
159 inline bool ComputeConfigHasBeenSet() const { return m_computeConfigHasBeenSet; }
160 template<typename ComputeConfigT = ComputeConfigRequest>
161 void SetComputeConfig(ComputeConfigT&& value) { m_computeConfigHasBeenSet = true; m_computeConfig = std::forward<ComputeConfigT>(value); }
162 template<typename ComputeConfigT = ComputeConfigRequest>
163 UpdateClusterConfigRequest& WithComputeConfig(ComputeConfigT&& value) { SetComputeConfig(std::forward<ComputeConfigT>(value)); return *this;}
165
167
168 inline const KubernetesNetworkConfigRequest& GetKubernetesNetworkConfig() const { return m_kubernetesNetworkConfig; }
169 inline bool KubernetesNetworkConfigHasBeenSet() const { return m_kubernetesNetworkConfigHasBeenSet; }
170 template<typename KubernetesNetworkConfigT = KubernetesNetworkConfigRequest>
171 void SetKubernetesNetworkConfig(KubernetesNetworkConfigT&& value) { m_kubernetesNetworkConfigHasBeenSet = true; m_kubernetesNetworkConfig = std::forward<KubernetesNetworkConfigT>(value); }
172 template<typename KubernetesNetworkConfigT = KubernetesNetworkConfigRequest>
173 UpdateClusterConfigRequest& WithKubernetesNetworkConfig(KubernetesNetworkConfigT&& value) { SetKubernetesNetworkConfig(std::forward<KubernetesNetworkConfigT>(value)); return *this;}
175
177
181 inline const StorageConfigRequest& GetStorageConfig() const { return m_storageConfig; }
182 inline bool StorageConfigHasBeenSet() const { return m_storageConfigHasBeenSet; }
183 template<typename StorageConfigT = StorageConfigRequest>
184 void SetStorageConfig(StorageConfigT&& value) { m_storageConfigHasBeenSet = true; m_storageConfig = std::forward<StorageConfigT>(value); }
185 template<typename StorageConfigT = StorageConfigRequest>
186 UpdateClusterConfigRequest& WithStorageConfig(StorageConfigT&& value) { SetStorageConfig(std::forward<StorageConfigT>(value)); return *this;}
188
190
191 inline const RemoteNetworkConfigRequest& GetRemoteNetworkConfig() const { return m_remoteNetworkConfig; }
192 inline bool RemoteNetworkConfigHasBeenSet() const { return m_remoteNetworkConfigHasBeenSet; }
193 template<typename RemoteNetworkConfigT = RemoteNetworkConfigRequest>
194 void SetRemoteNetworkConfig(RemoteNetworkConfigT&& value) { m_remoteNetworkConfigHasBeenSet = true; m_remoteNetworkConfig = std::forward<RemoteNetworkConfigT>(value); }
195 template<typename RemoteNetworkConfigT = RemoteNetworkConfigRequest>
196 UpdateClusterConfigRequest& WithRemoteNetworkConfig(RemoteNetworkConfigT&& value) { SetRemoteNetworkConfig(std::forward<RemoteNetworkConfigT>(value)); return *this;}
198 private:
199
200 Aws::String m_name;
201 bool m_nameHasBeenSet = false;
202
203 VpcConfigRequest m_resourcesVpcConfig;
204 bool m_resourcesVpcConfigHasBeenSet = false;
205
206 Logging m_logging;
207 bool m_loggingHasBeenSet = false;
208
209 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
210 bool m_clientRequestTokenHasBeenSet = true;
211
212 UpdateAccessConfigRequest m_accessConfig;
213 bool m_accessConfigHasBeenSet = false;
214
215 UpgradePolicyRequest m_upgradePolicy;
216 bool m_upgradePolicyHasBeenSet = false;
217
218 ZonalShiftConfigRequest m_zonalShiftConfig;
219 bool m_zonalShiftConfigHasBeenSet = false;
220
221 ComputeConfigRequest m_computeConfig;
222 bool m_computeConfigHasBeenSet = false;
223
224 KubernetesNetworkConfigRequest m_kubernetesNetworkConfig;
225 bool m_kubernetesNetworkConfigHasBeenSet = false;
226
227 StorageConfigRequest m_storageConfig;
228 bool m_storageConfigHasBeenSet = false;
229
230 RemoteNetworkConfigRequest m_remoteNetworkConfig;
231 bool m_remoteNetworkConfigHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace EKS
236} // namespace Aws
void SetResourcesVpcConfig(ResourcesVpcConfigT &&value)
const ComputeConfigRequest & GetComputeConfig() const
void SetKubernetesNetworkConfig(KubernetesNetworkConfigT &&value)
AWS_EKS_API Aws::String SerializePayload() const override
UpdateClusterConfigRequest & WithResourcesVpcConfig(ResourcesVpcConfigT &&value)
UpdateClusterConfigRequest & WithKubernetesNetworkConfig(KubernetesNetworkConfigT &&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 ZonalShiftConfigRequest & GetZonalShiftConfig() const
const UpgradePolicyRequest & GetUpgradePolicy() const
const StorageConfigRequest & GetStorageConfig() const
const KubernetesNetworkConfigRequest & GetKubernetesNetworkConfig() const
const VpcConfigRequest & GetResourcesVpcConfig() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String