AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
CreateAddonRequest.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/ResolveConflicts.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/eks/model/AddonNamespaceConfigRequest.h>
14#include <aws/eks/model/AddonPodIdentityAssociations.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace EKS
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_EKS_API CreateAddonRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateAddon"; }
37
38 AWS_EKS_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetClusterName() const { return m_clusterName; }
46 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
47 template<typename ClusterNameT = Aws::String>
48 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
49 template<typename ClusterNameT = Aws::String>
50 CreateAddonRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
52
54
58 inline const Aws::String& GetAddonName() const { return m_addonName; }
59 inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; }
60 template<typename AddonNameT = Aws::String>
61 void SetAddonName(AddonNameT&& value) { m_addonNameHasBeenSet = true; m_addonName = std::forward<AddonNameT>(value); }
62 template<typename AddonNameT = Aws::String>
63 CreateAddonRequest& WithAddonName(AddonNameT&& value) { SetAddonName(std::forward<AddonNameT>(value)); return *this;}
65
67
73 inline const Aws::String& GetAddonVersion() const { return m_addonVersion; }
74 inline bool AddonVersionHasBeenSet() const { return m_addonVersionHasBeenSet; }
75 template<typename AddonVersionT = Aws::String>
76 void SetAddonVersion(AddonVersionT&& value) { m_addonVersionHasBeenSet = true; m_addonVersion = std::forward<AddonVersionT>(value); }
77 template<typename AddonVersionT = Aws::String>
78 CreateAddonRequest& WithAddonVersion(AddonVersionT&& value) { SetAddonVersion(std::forward<AddonVersionT>(value)); return *this;}
80
82
95 inline const Aws::String& GetServiceAccountRoleArn() const { return m_serviceAccountRoleArn; }
96 inline bool ServiceAccountRoleArnHasBeenSet() const { return m_serviceAccountRoleArnHasBeenSet; }
97 template<typename ServiceAccountRoleArnT = Aws::String>
98 void SetServiceAccountRoleArn(ServiceAccountRoleArnT&& value) { m_serviceAccountRoleArnHasBeenSet = true; m_serviceAccountRoleArn = std::forward<ServiceAccountRoleArnT>(value); }
99 template<typename ServiceAccountRoleArnT = Aws::String>
100 CreateAddonRequest& WithServiceAccountRoleArn(ServiceAccountRoleArnT&& value) { SetServiceAccountRoleArn(std::forward<ServiceAccountRoleArnT>(value)); return *this;}
102
104
123 inline ResolveConflicts GetResolveConflicts() const { return m_resolveConflicts; }
124 inline bool ResolveConflictsHasBeenSet() const { return m_resolveConflictsHasBeenSet; }
125 inline void SetResolveConflicts(ResolveConflicts value) { m_resolveConflictsHasBeenSet = true; m_resolveConflicts = value; }
128
130
134 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
135 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
136 template<typename ClientRequestTokenT = Aws::String>
137 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
138 template<typename ClientRequestTokenT = Aws::String>
139 CreateAddonRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
141
143
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
152 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 CreateAddonRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
154 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
155 CreateAddonRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
156 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
157 }
159
161
166 inline const Aws::String& GetConfigurationValues() const { return m_configurationValues; }
167 inline bool ConfigurationValuesHasBeenSet() const { return m_configurationValuesHasBeenSet; }
168 template<typename ConfigurationValuesT = Aws::String>
169 void SetConfigurationValues(ConfigurationValuesT&& value) { m_configurationValuesHasBeenSet = true; m_configurationValues = std::forward<ConfigurationValuesT>(value); }
170 template<typename ConfigurationValuesT = Aws::String>
171 CreateAddonRequest& WithConfigurationValues(ConfigurationValuesT&& value) { SetConfigurationValues(std::forward<ConfigurationValuesT>(value)); return *this;}
173
175
183 inline const Aws::Vector<AddonPodIdentityAssociations>& GetPodIdentityAssociations() const { return m_podIdentityAssociations; }
184 inline bool PodIdentityAssociationsHasBeenSet() const { return m_podIdentityAssociationsHasBeenSet; }
185 template<typename PodIdentityAssociationsT = Aws::Vector<AddonPodIdentityAssociations>>
186 void SetPodIdentityAssociations(PodIdentityAssociationsT&& value) { m_podIdentityAssociationsHasBeenSet = true; m_podIdentityAssociations = std::forward<PodIdentityAssociationsT>(value); }
187 template<typename PodIdentityAssociationsT = Aws::Vector<AddonPodIdentityAssociations>>
188 CreateAddonRequest& WithPodIdentityAssociations(PodIdentityAssociationsT&& value) { SetPodIdentityAssociations(std::forward<PodIdentityAssociationsT>(value)); return *this;}
189 template<typename PodIdentityAssociationsT = AddonPodIdentityAssociations>
190 CreateAddonRequest& AddPodIdentityAssociations(PodIdentityAssociationsT&& value) { m_podIdentityAssociationsHasBeenSet = true; m_podIdentityAssociations.emplace_back(std::forward<PodIdentityAssociationsT>(value)); return *this; }
192
194
198 inline const AddonNamespaceConfigRequest& GetNamespaceConfig() const { return m_namespaceConfig; }
199 inline bool NamespaceConfigHasBeenSet() const { return m_namespaceConfigHasBeenSet; }
200 template<typename NamespaceConfigT = AddonNamespaceConfigRequest>
201 void SetNamespaceConfig(NamespaceConfigT&& value) { m_namespaceConfigHasBeenSet = true; m_namespaceConfig = std::forward<NamespaceConfigT>(value); }
202 template<typename NamespaceConfigT = AddonNamespaceConfigRequest>
203 CreateAddonRequest& WithNamespaceConfig(NamespaceConfigT&& value) { SetNamespaceConfig(std::forward<NamespaceConfigT>(value)); return *this;}
205 private:
206
207 Aws::String m_clusterName;
208 bool m_clusterNameHasBeenSet = false;
209
210 Aws::String m_addonName;
211 bool m_addonNameHasBeenSet = false;
212
213 Aws::String m_addonVersion;
214 bool m_addonVersionHasBeenSet = false;
215
216 Aws::String m_serviceAccountRoleArn;
217 bool m_serviceAccountRoleArnHasBeenSet = false;
218
220 bool m_resolveConflictsHasBeenSet = false;
221
222 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
223 bool m_clientRequestTokenHasBeenSet = true;
224
226 bool m_tagsHasBeenSet = false;
227
228 Aws::String m_configurationValues;
229 bool m_configurationValuesHasBeenSet = false;
230
231 Aws::Vector<AddonPodIdentityAssociations> m_podIdentityAssociations;
232 bool m_podIdentityAssociationsHasBeenSet = false;
233
234 AddonNamespaceConfigRequest m_namespaceConfig;
235 bool m_namespaceConfigHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace EKS
240} // namespace Aws
CreateAddonRequest & AddPodIdentityAssociations(PodIdentityAssociationsT &&value)
CreateAddonRequest & WithClusterName(ClusterNameT &&value)
void SetServiceAccountRoleArn(ServiceAccountRoleArnT &&value)
CreateAddonRequest & WithResolveConflicts(ResolveConflicts value)
CreateAddonRequest & WithServiceAccountRoleArn(ServiceAccountRoleArnT &&value)
const Aws::String & GetClientRequestToken() const
CreateAddonRequest & WithPodIdentityAssociations(PodIdentityAssociationsT &&value)
void SetPodIdentityAssociations(PodIdentityAssociationsT &&value)
CreateAddonRequest & WithAddonVersion(AddonVersionT &&value)
AWS_EKS_API CreateAddonRequest()=default
const Aws::String & GetAddonVersion() const
const Aws::String & GetConfigurationValues() const
const Aws::String & GetServiceAccountRoleArn() const
CreateAddonRequest & WithConfigurationValues(ConfigurationValuesT &&value)
const Aws::String & GetClusterName() const
CreateAddonRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetAddonName(AddonNameT &&value)
void SetConfigurationValues(ConfigurationValuesT &&value)
void SetAddonVersion(AddonVersionT &&value)
ResolveConflicts GetResolveConflicts() const
void SetClusterName(ClusterNameT &&value)
const AddonNamespaceConfigRequest & GetNamespaceConfig() const
AWS_EKS_API Aws::String SerializePayload() const override
CreateAddonRequest & WithTags(TagsT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
const Aws::Vector< AddonPodIdentityAssociations > & GetPodIdentityAssociations() const
void SetResolveConflicts(ResolveConflicts value)
CreateAddonRequest & WithAddonName(AddonNameT &&value)
void SetNamespaceConfig(NamespaceConfigT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAddonName() const
CreateAddonRequest & WithNamespaceConfig(NamespaceConfigT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAddonRequest & WithClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector