AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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/AddonPodIdentityAssociations.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace EKS
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_EKS_API CreateAddonRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateAddon"; }
36
37 AWS_EKS_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetClusterName() const { return m_clusterName; }
45 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
46 template<typename ClusterNameT = Aws::String>
47 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
48 template<typename ClusterNameT = Aws::String>
49 CreateAddonRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
51
53
57 inline const Aws::String& GetAddonName() const { return m_addonName; }
58 inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; }
59 template<typename AddonNameT = Aws::String>
60 void SetAddonName(AddonNameT&& value) { m_addonNameHasBeenSet = true; m_addonName = std::forward<AddonNameT>(value); }
61 template<typename AddonNameT = Aws::String>
62 CreateAddonRequest& WithAddonName(AddonNameT&& value) { SetAddonName(std::forward<AddonNameT>(value)); return *this;}
64
66
72 inline const Aws::String& GetAddonVersion() const { return m_addonVersion; }
73 inline bool AddonVersionHasBeenSet() const { return m_addonVersionHasBeenSet; }
74 template<typename AddonVersionT = Aws::String>
75 void SetAddonVersion(AddonVersionT&& value) { m_addonVersionHasBeenSet = true; m_addonVersion = std::forward<AddonVersionT>(value); }
76 template<typename AddonVersionT = Aws::String>
77 CreateAddonRequest& WithAddonVersion(AddonVersionT&& value) { SetAddonVersion(std::forward<AddonVersionT>(value)); return *this;}
79
81
94 inline const Aws::String& GetServiceAccountRoleArn() const { return m_serviceAccountRoleArn; }
95 inline bool ServiceAccountRoleArnHasBeenSet() const { return m_serviceAccountRoleArnHasBeenSet; }
96 template<typename ServiceAccountRoleArnT = Aws::String>
97 void SetServiceAccountRoleArn(ServiceAccountRoleArnT&& value) { m_serviceAccountRoleArnHasBeenSet = true; m_serviceAccountRoleArn = std::forward<ServiceAccountRoleArnT>(value); }
98 template<typename ServiceAccountRoleArnT = Aws::String>
99 CreateAddonRequest& WithServiceAccountRoleArn(ServiceAccountRoleArnT&& value) { SetServiceAccountRoleArn(std::forward<ServiceAccountRoleArnT>(value)); return *this;}
101
103
122 inline ResolveConflicts GetResolveConflicts() const { return m_resolveConflicts; }
123 inline bool ResolveConflictsHasBeenSet() const { return m_resolveConflictsHasBeenSet; }
124 inline void SetResolveConflicts(ResolveConflicts value) { m_resolveConflictsHasBeenSet = true; m_resolveConflicts = value; }
127
129
133 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
134 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
135 template<typename ClientRequestTokenT = Aws::String>
136 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
137 template<typename ClientRequestTokenT = Aws::String>
138 CreateAddonRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
140
142
147 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
151 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 CreateAddonRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
153 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
154 CreateAddonRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
155 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
156 }
158
160
165 inline const Aws::String& GetConfigurationValues() const { return m_configurationValues; }
166 inline bool ConfigurationValuesHasBeenSet() const { return m_configurationValuesHasBeenSet; }
167 template<typename ConfigurationValuesT = Aws::String>
168 void SetConfigurationValues(ConfigurationValuesT&& value) { m_configurationValuesHasBeenSet = true; m_configurationValues = std::forward<ConfigurationValuesT>(value); }
169 template<typename ConfigurationValuesT = Aws::String>
170 CreateAddonRequest& WithConfigurationValues(ConfigurationValuesT&& value) { SetConfigurationValues(std::forward<ConfigurationValuesT>(value)); return *this;}
172
174
182 inline const Aws::Vector<AddonPodIdentityAssociations>& GetPodIdentityAssociations() const { return m_podIdentityAssociations; }
183 inline bool PodIdentityAssociationsHasBeenSet() const { return m_podIdentityAssociationsHasBeenSet; }
184 template<typename PodIdentityAssociationsT = Aws::Vector<AddonPodIdentityAssociations>>
185 void SetPodIdentityAssociations(PodIdentityAssociationsT&& value) { m_podIdentityAssociationsHasBeenSet = true; m_podIdentityAssociations = std::forward<PodIdentityAssociationsT>(value); }
186 template<typename PodIdentityAssociationsT = Aws::Vector<AddonPodIdentityAssociations>>
187 CreateAddonRequest& WithPodIdentityAssociations(PodIdentityAssociationsT&& value) { SetPodIdentityAssociations(std::forward<PodIdentityAssociationsT>(value)); return *this;}
188 template<typename PodIdentityAssociationsT = AddonPodIdentityAssociations>
189 CreateAddonRequest& AddPodIdentityAssociations(PodIdentityAssociationsT&& value) { m_podIdentityAssociationsHasBeenSet = true; m_podIdentityAssociations.emplace_back(std::forward<PodIdentityAssociationsT>(value)); return *this; }
191 private:
192
193 Aws::String m_clusterName;
194 bool m_clusterNameHasBeenSet = false;
195
196 Aws::String m_addonName;
197 bool m_addonNameHasBeenSet = false;
198
199 Aws::String m_addonVersion;
200 bool m_addonVersionHasBeenSet = false;
201
202 Aws::String m_serviceAccountRoleArn;
203 bool m_serviceAccountRoleArnHasBeenSet = false;
204
206 bool m_resolveConflictsHasBeenSet = false;
207
208 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
209 bool m_clientRequestTokenHasBeenSet = true;
210
212 bool m_tagsHasBeenSet = false;
213
214 Aws::String m_configurationValues;
215 bool m_configurationValuesHasBeenSet = false;
216
217 Aws::Vector<AddonPodIdentityAssociations> m_podIdentityAssociations;
218 bool m_podIdentityAssociationsHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace EKS
223} // 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)
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)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAddonName() const
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