AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
Addon.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/model/AddonStatus.h>
10#include <aws/eks/model/AddonHealth.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/eks/model/MarketplaceInformation.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/eks/model/AddonNamespaceConfigResponse.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace EKS
29{
30namespace Model
31{
32
40 class Addon
41 {
42 public:
43 AWS_EKS_API Addon() = default;
44 AWS_EKS_API Addon(Aws::Utils::Json::JsonView jsonValue);
47
48
50
53 inline const Aws::String& GetAddonName() const { return m_addonName; }
54 inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; }
55 template<typename AddonNameT = Aws::String>
56 void SetAddonName(AddonNameT&& value) { m_addonNameHasBeenSet = true; m_addonName = std::forward<AddonNameT>(value); }
57 template<typename AddonNameT = Aws::String>
58 Addon& WithAddonName(AddonNameT&& value) { SetAddonName(std::forward<AddonNameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetClusterName() const { return m_clusterName; }
66 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
67 template<typename ClusterNameT = Aws::String>
68 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
69 template<typename ClusterNameT = Aws::String>
70 Addon& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
72
74
77 inline AddonStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(AddonStatus value) { m_statusHasBeenSet = true; m_status = value; }
80 inline Addon& WithStatus(AddonStatus value) { SetStatus(value); return *this;}
82
84
87 inline const Aws::String& GetAddonVersion() const { return m_addonVersion; }
88 inline bool AddonVersionHasBeenSet() const { return m_addonVersionHasBeenSet; }
89 template<typename AddonVersionT = Aws::String>
90 void SetAddonVersion(AddonVersionT&& value) { m_addonVersionHasBeenSet = true; m_addonVersion = std::forward<AddonVersionT>(value); }
91 template<typename AddonVersionT = Aws::String>
92 Addon& WithAddonVersion(AddonVersionT&& value) { SetAddonVersion(std::forward<AddonVersionT>(value)); return *this;}
94
96
99 inline const AddonHealth& GetHealth() const { return m_health; }
100 inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
101 template<typename HealthT = AddonHealth>
102 void SetHealth(HealthT&& value) { m_healthHasBeenSet = true; m_health = std::forward<HealthT>(value); }
103 template<typename HealthT = AddonHealth>
104 Addon& WithHealth(HealthT&& value) { SetHealth(std::forward<HealthT>(value)); return *this;}
106
108
111 inline const Aws::String& GetAddonArn() const { return m_addonArn; }
112 inline bool AddonArnHasBeenSet() const { return m_addonArnHasBeenSet; }
113 template<typename AddonArnT = Aws::String>
114 void SetAddonArn(AddonArnT&& value) { m_addonArnHasBeenSet = true; m_addonArn = std::forward<AddonArnT>(value); }
115 template<typename AddonArnT = Aws::String>
116 Addon& WithAddonArn(AddonArnT&& value) { SetAddonArn(std::forward<AddonArnT>(value)); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
124 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
125 template<typename CreatedAtT = Aws::Utils::DateTime>
126 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
127 template<typename CreatedAtT = Aws::Utils::DateTime>
128 Addon& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
136 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
137 template<typename ModifiedAtT = Aws::Utils::DateTime>
138 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
139 template<typename ModifiedAtT = Aws::Utils::DateTime>
140 Addon& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
142
144
148 inline const Aws::String& GetServiceAccountRoleArn() const { return m_serviceAccountRoleArn; }
149 inline bool ServiceAccountRoleArnHasBeenSet() const { return m_serviceAccountRoleArnHasBeenSet; }
150 template<typename ServiceAccountRoleArnT = Aws::String>
151 void SetServiceAccountRoleArn(ServiceAccountRoleArnT&& value) { m_serviceAccountRoleArnHasBeenSet = true; m_serviceAccountRoleArn = std::forward<ServiceAccountRoleArnT>(value); }
152 template<typename ServiceAccountRoleArnT = Aws::String>
153 Addon& WithServiceAccountRoleArn(ServiceAccountRoleArnT&& value) { SetServiceAccountRoleArn(std::forward<ServiceAccountRoleArnT>(value)); return *this;}
155
157
162 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
165 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
166 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 Addon& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
168 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
169 Addon& AddTags(TagsKeyT&& key, TagsValueT&& value) {
170 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
171 }
173
175
178 inline const Aws::String& GetPublisher() const { return m_publisher; }
179 inline bool PublisherHasBeenSet() const { return m_publisherHasBeenSet; }
180 template<typename PublisherT = Aws::String>
181 void SetPublisher(PublisherT&& value) { m_publisherHasBeenSet = true; m_publisher = std::forward<PublisherT>(value); }
182 template<typename PublisherT = Aws::String>
183 Addon& WithPublisher(PublisherT&& value) { SetPublisher(std::forward<PublisherT>(value)); return *this;}
185
187
190 inline const Aws::String& GetOwner() const { return m_owner; }
191 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
192 template<typename OwnerT = Aws::String>
193 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
194 template<typename OwnerT = Aws::String>
195 Addon& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
197
199
203 inline const MarketplaceInformation& GetMarketplaceInformation() const { return m_marketplaceInformation; }
204 inline bool MarketplaceInformationHasBeenSet() const { return m_marketplaceInformationHasBeenSet; }
205 template<typename MarketplaceInformationT = MarketplaceInformation>
206 void SetMarketplaceInformation(MarketplaceInformationT&& value) { m_marketplaceInformationHasBeenSet = true; m_marketplaceInformation = std::forward<MarketplaceInformationT>(value); }
207 template<typename MarketplaceInformationT = MarketplaceInformation>
208 Addon& WithMarketplaceInformation(MarketplaceInformationT&& value) { SetMarketplaceInformation(std::forward<MarketplaceInformationT>(value)); return *this;}
210
212
215 inline const Aws::String& GetConfigurationValues() const { return m_configurationValues; }
216 inline bool ConfigurationValuesHasBeenSet() const { return m_configurationValuesHasBeenSet; }
217 template<typename ConfigurationValuesT = Aws::String>
218 void SetConfigurationValues(ConfigurationValuesT&& value) { m_configurationValuesHasBeenSet = true; m_configurationValues = std::forward<ConfigurationValuesT>(value); }
219 template<typename ConfigurationValuesT = Aws::String>
220 Addon& WithConfigurationValues(ConfigurationValuesT&& value) { SetConfigurationValues(std::forward<ConfigurationValuesT>(value)); return *this;}
222
224
232 inline const Aws::Vector<Aws::String>& GetPodIdentityAssociations() const { return m_podIdentityAssociations; }
233 inline bool PodIdentityAssociationsHasBeenSet() const { return m_podIdentityAssociationsHasBeenSet; }
234 template<typename PodIdentityAssociationsT = Aws::Vector<Aws::String>>
235 void SetPodIdentityAssociations(PodIdentityAssociationsT&& value) { m_podIdentityAssociationsHasBeenSet = true; m_podIdentityAssociations = std::forward<PodIdentityAssociationsT>(value); }
236 template<typename PodIdentityAssociationsT = Aws::Vector<Aws::String>>
237 Addon& WithPodIdentityAssociations(PodIdentityAssociationsT&& value) { SetPodIdentityAssociations(std::forward<PodIdentityAssociationsT>(value)); return *this;}
238 template<typename PodIdentityAssociationsT = Aws::String>
239 Addon& AddPodIdentityAssociations(PodIdentityAssociationsT&& value) { m_podIdentityAssociationsHasBeenSet = true; m_podIdentityAssociations.emplace_back(std::forward<PodIdentityAssociationsT>(value)); return *this; }
241
243
247 inline const AddonNamespaceConfigResponse& GetNamespaceConfig() const { return m_namespaceConfig; }
248 inline bool NamespaceConfigHasBeenSet() const { return m_namespaceConfigHasBeenSet; }
249 template<typename NamespaceConfigT = AddonNamespaceConfigResponse>
250 void SetNamespaceConfig(NamespaceConfigT&& value) { m_namespaceConfigHasBeenSet = true; m_namespaceConfig = std::forward<NamespaceConfigT>(value); }
251 template<typename NamespaceConfigT = AddonNamespaceConfigResponse>
252 Addon& WithNamespaceConfig(NamespaceConfigT&& value) { SetNamespaceConfig(std::forward<NamespaceConfigT>(value)); return *this;}
254 private:
255
256 Aws::String m_addonName;
257 bool m_addonNameHasBeenSet = false;
258
259 Aws::String m_clusterName;
260 bool m_clusterNameHasBeenSet = false;
261
263 bool m_statusHasBeenSet = false;
264
265 Aws::String m_addonVersion;
266 bool m_addonVersionHasBeenSet = false;
267
268 AddonHealth m_health;
269 bool m_healthHasBeenSet = false;
270
271 Aws::String m_addonArn;
272 bool m_addonArnHasBeenSet = false;
273
274 Aws::Utils::DateTime m_createdAt{};
275 bool m_createdAtHasBeenSet = false;
276
277 Aws::Utils::DateTime m_modifiedAt{};
278 bool m_modifiedAtHasBeenSet = false;
279
280 Aws::String m_serviceAccountRoleArn;
281 bool m_serviceAccountRoleArnHasBeenSet = false;
282
284 bool m_tagsHasBeenSet = false;
285
286 Aws::String m_publisher;
287 bool m_publisherHasBeenSet = false;
288
289 Aws::String m_owner;
290 bool m_ownerHasBeenSet = false;
291
292 MarketplaceInformation m_marketplaceInformation;
293 bool m_marketplaceInformationHasBeenSet = false;
294
295 Aws::String m_configurationValues;
296 bool m_configurationValuesHasBeenSet = false;
297
298 Aws::Vector<Aws::String> m_podIdentityAssociations;
299 bool m_podIdentityAssociationsHasBeenSet = false;
300
301 AddonNamespaceConfigResponse m_namespaceConfig;
302 bool m_namespaceConfigHasBeenSet = false;
303 };
304
305} // namespace Model
306} // namespace EKS
307} // namespace Aws
void SetTags(TagsT &&value)
Definition Addon.h:165
Addon & WithAddonName(AddonNameT &&value)
Definition Addon.h:58
bool AddonVersionHasBeenSet() const
Definition Addon.h:88
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Addon.h:123
AWS_EKS_API Addon & operator=(Aws::Utils::Json::JsonView jsonValue)
Addon & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Addon.h:169
const Aws::String & GetAddonName() const
Definition Addon.h:53
const Aws::String & GetOwner() const
Definition Addon.h:190
const AddonHealth & GetHealth() const
Definition Addon.h:99
Addon & WithPublisher(PublisherT &&value)
Definition Addon.h:183
Addon & WithOwner(OwnerT &&value)
Definition Addon.h:195
void SetModifiedAt(ModifiedAtT &&value)
Definition Addon.h:138
bool OwnerHasBeenSet() const
Definition Addon.h:191
const AddonNamespaceConfigResponse & GetNamespaceConfig() const
Definition Addon.h:247
Addon & WithCreatedAt(CreatedAtT &&value)
Definition Addon.h:128
Addon & AddPodIdentityAssociations(PodIdentityAssociationsT &&value)
Definition Addon.h:239
bool PodIdentityAssociationsHasBeenSet() const
Definition Addon.h:233
const Aws::String & GetClusterName() const
Definition Addon.h:65
AddonStatus GetStatus() const
Definition Addon.h:77
void SetAddonVersion(AddonVersionT &&value)
Definition Addon.h:90
void SetClusterName(ClusterNameT &&value)
Definition Addon.h:68
bool HealthHasBeenSet() const
Definition Addon.h:100
Addon & WithStatus(AddonStatus value)
Definition Addon.h:80
void SetCreatedAt(CreatedAtT &&value)
Definition Addon.h:126
Addon & WithConfigurationValues(ConfigurationValuesT &&value)
Definition Addon.h:220
void SetServiceAccountRoleArn(ServiceAccountRoleArnT &&value)
Definition Addon.h:151
bool AddonNameHasBeenSet() const
Definition Addon.h:54
Addon & WithServiceAccountRoleArn(ServiceAccountRoleArnT &&value)
Definition Addon.h:153
void SetAddonArn(AddonArnT &&value)
Definition Addon.h:114
Addon & WithTags(TagsT &&value)
Definition Addon.h:167
bool StatusHasBeenSet() const
Definition Addon.h:78
void SetPublisher(PublisherT &&value)
Definition Addon.h:181
Addon & WithModifiedAt(ModifiedAtT &&value)
Definition Addon.h:140
bool CreatedAtHasBeenSet() const
Definition Addon.h:124
const Aws::String & GetAddonArn() const
Definition Addon.h:111
const Aws::String & GetServiceAccountRoleArn() const
Definition Addon.h:148
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Addon.h:162
void SetStatus(AddonStatus value)
Definition Addon.h:79
Addon & WithNamespaceConfig(NamespaceConfigT &&value)
Definition Addon.h:252
bool MarketplaceInformationHasBeenSet() const
Definition Addon.h:204
bool PublisherHasBeenSet() const
Definition Addon.h:179
void SetAddonName(AddonNameT &&value)
Definition Addon.h:56
bool TagsHasBeenSet() const
Definition Addon.h:163
const Aws::String & GetAddonVersion() const
Definition Addon.h:87
Addon & WithAddonArn(AddonArnT &&value)
Definition Addon.h:116
bool ConfigurationValuesHasBeenSet() const
Definition Addon.h:216
const MarketplaceInformation & GetMarketplaceInformation() const
Definition Addon.h:203
void SetNamespaceConfig(NamespaceConfigT &&value)
Definition Addon.h:250
bool ModifiedAtHasBeenSet() const
Definition Addon.h:136
bool ServiceAccountRoleArnHasBeenSet() const
Definition Addon.h:149
void SetMarketplaceInformation(MarketplaceInformationT &&value)
Definition Addon.h:206
bool NamespaceConfigHasBeenSet() const
Definition Addon.h:248
AWS_EKS_API Addon()=default
const Aws::Vector< Aws::String > & GetPodIdentityAssociations() const
Definition Addon.h:232
void SetPodIdentityAssociations(PodIdentityAssociationsT &&value)
Definition Addon.h:235
const Aws::String & GetPublisher() const
Definition Addon.h:178
void SetHealth(HealthT &&value)
Definition Addon.h:102
void SetConfigurationValues(ConfigurationValuesT &&value)
Definition Addon.h:218
bool ClusterNameHasBeenSet() const
Definition Addon.h:66
AWS_EKS_API Addon(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConfigurationValues() const
Definition Addon.h:215
Addon & WithHealth(HealthT &&value)
Definition Addon.h:104
Addon & WithClusterName(ClusterNameT &&value)
Definition Addon.h:70
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Addon.h:135
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
Addon & WithPodIdentityAssociations(PodIdentityAssociationsT &&value)
Definition Addon.h:237
Addon & WithMarketplaceInformation(MarketplaceInformationT &&value)
Definition Addon.h:208
void SetOwner(OwnerT &&value)
Definition Addon.h:193
Addon & WithAddonVersion(AddonVersionT &&value)
Definition Addon.h:92
bool AddonArnHasBeenSet() const
Definition Addon.h:112
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
Aws::Utils::Json::JsonValue JsonValue