AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace EKS
28{
29namespace Model
30{
31
39 class Addon
40 {
41 public:
42 AWS_EKS_API Addon() = default;
43 AWS_EKS_API Addon(Aws::Utils::Json::JsonView jsonValue);
46
47
49
52 inline const Aws::String& GetAddonName() const { return m_addonName; }
53 inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; }
54 template<typename AddonNameT = Aws::String>
55 void SetAddonName(AddonNameT&& value) { m_addonNameHasBeenSet = true; m_addonName = std::forward<AddonNameT>(value); }
56 template<typename AddonNameT = Aws::String>
57 Addon& WithAddonName(AddonNameT&& value) { SetAddonName(std::forward<AddonNameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetClusterName() const { return m_clusterName; }
65 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
66 template<typename ClusterNameT = Aws::String>
67 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
68 template<typename ClusterNameT = Aws::String>
69 Addon& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
71
73
76 inline AddonStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(AddonStatus value) { m_statusHasBeenSet = true; m_status = value; }
79 inline Addon& WithStatus(AddonStatus value) { SetStatus(value); return *this;}
81
83
86 inline const Aws::String& GetAddonVersion() const { return m_addonVersion; }
87 inline bool AddonVersionHasBeenSet() const { return m_addonVersionHasBeenSet; }
88 template<typename AddonVersionT = Aws::String>
89 void SetAddonVersion(AddonVersionT&& value) { m_addonVersionHasBeenSet = true; m_addonVersion = std::forward<AddonVersionT>(value); }
90 template<typename AddonVersionT = Aws::String>
91 Addon& WithAddonVersion(AddonVersionT&& value) { SetAddonVersion(std::forward<AddonVersionT>(value)); return *this;}
93
95
98 inline const AddonHealth& GetHealth() const { return m_health; }
99 inline bool HealthHasBeenSet() const { return m_healthHasBeenSet; }
100 template<typename HealthT = AddonHealth>
101 void SetHealth(HealthT&& value) { m_healthHasBeenSet = true; m_health = std::forward<HealthT>(value); }
102 template<typename HealthT = AddonHealth>
103 Addon& WithHealth(HealthT&& value) { SetHealth(std::forward<HealthT>(value)); return *this;}
105
107
110 inline const Aws::String& GetAddonArn() const { return m_addonArn; }
111 inline bool AddonArnHasBeenSet() const { return m_addonArnHasBeenSet; }
112 template<typename AddonArnT = Aws::String>
113 void SetAddonArn(AddonArnT&& value) { m_addonArnHasBeenSet = true; m_addonArn = std::forward<AddonArnT>(value); }
114 template<typename AddonArnT = Aws::String>
115 Addon& WithAddonArn(AddonArnT&& value) { SetAddonArn(std::forward<AddonArnT>(value)); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
123 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
124 template<typename CreatedAtT = Aws::Utils::DateTime>
125 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
126 template<typename CreatedAtT = Aws::Utils::DateTime>
127 Addon& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
135 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
136 template<typename ModifiedAtT = Aws::Utils::DateTime>
137 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
138 template<typename ModifiedAtT = Aws::Utils::DateTime>
139 Addon& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
141
143
147 inline const Aws::String& GetServiceAccountRoleArn() const { return m_serviceAccountRoleArn; }
148 inline bool ServiceAccountRoleArnHasBeenSet() const { return m_serviceAccountRoleArnHasBeenSet; }
149 template<typename ServiceAccountRoleArnT = Aws::String>
150 void SetServiceAccountRoleArn(ServiceAccountRoleArnT&& value) { m_serviceAccountRoleArnHasBeenSet = true; m_serviceAccountRoleArn = std::forward<ServiceAccountRoleArnT>(value); }
151 template<typename ServiceAccountRoleArnT = Aws::String>
152 Addon& WithServiceAccountRoleArn(ServiceAccountRoleArnT&& value) { SetServiceAccountRoleArn(std::forward<ServiceAccountRoleArnT>(value)); return *this;}
154
156
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
165 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 Addon& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
167 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
168 Addon& AddTags(TagsKeyT&& key, TagsValueT&& value) {
169 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
170 }
172
174
177 inline const Aws::String& GetPublisher() const { return m_publisher; }
178 inline bool PublisherHasBeenSet() const { return m_publisherHasBeenSet; }
179 template<typename PublisherT = Aws::String>
180 void SetPublisher(PublisherT&& value) { m_publisherHasBeenSet = true; m_publisher = std::forward<PublisherT>(value); }
181 template<typename PublisherT = Aws::String>
182 Addon& WithPublisher(PublisherT&& value) { SetPublisher(std::forward<PublisherT>(value)); return *this;}
184
186
189 inline const Aws::String& GetOwner() const { return m_owner; }
190 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
191 template<typename OwnerT = Aws::String>
192 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
193 template<typename OwnerT = Aws::String>
194 Addon& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
196
198
202 inline const MarketplaceInformation& GetMarketplaceInformation() const { return m_marketplaceInformation; }
203 inline bool MarketplaceInformationHasBeenSet() const { return m_marketplaceInformationHasBeenSet; }
204 template<typename MarketplaceInformationT = MarketplaceInformation>
205 void SetMarketplaceInformation(MarketplaceInformationT&& value) { m_marketplaceInformationHasBeenSet = true; m_marketplaceInformation = std::forward<MarketplaceInformationT>(value); }
206 template<typename MarketplaceInformationT = MarketplaceInformation>
207 Addon& WithMarketplaceInformation(MarketplaceInformationT&& value) { SetMarketplaceInformation(std::forward<MarketplaceInformationT>(value)); return *this;}
209
211
214 inline const Aws::String& GetConfigurationValues() const { return m_configurationValues; }
215 inline bool ConfigurationValuesHasBeenSet() const { return m_configurationValuesHasBeenSet; }
216 template<typename ConfigurationValuesT = Aws::String>
217 void SetConfigurationValues(ConfigurationValuesT&& value) { m_configurationValuesHasBeenSet = true; m_configurationValues = std::forward<ConfigurationValuesT>(value); }
218 template<typename ConfigurationValuesT = Aws::String>
219 Addon& WithConfigurationValues(ConfigurationValuesT&& value) { SetConfigurationValues(std::forward<ConfigurationValuesT>(value)); return *this;}
221
223
231 inline const Aws::Vector<Aws::String>& GetPodIdentityAssociations() const { return m_podIdentityAssociations; }
232 inline bool PodIdentityAssociationsHasBeenSet() const { return m_podIdentityAssociationsHasBeenSet; }
233 template<typename PodIdentityAssociationsT = Aws::Vector<Aws::String>>
234 void SetPodIdentityAssociations(PodIdentityAssociationsT&& value) { m_podIdentityAssociationsHasBeenSet = true; m_podIdentityAssociations = std::forward<PodIdentityAssociationsT>(value); }
235 template<typename PodIdentityAssociationsT = Aws::Vector<Aws::String>>
236 Addon& WithPodIdentityAssociations(PodIdentityAssociationsT&& value) { SetPodIdentityAssociations(std::forward<PodIdentityAssociationsT>(value)); return *this;}
237 template<typename PodIdentityAssociationsT = Aws::String>
238 Addon& AddPodIdentityAssociations(PodIdentityAssociationsT&& value) { m_podIdentityAssociationsHasBeenSet = true; m_podIdentityAssociations.emplace_back(std::forward<PodIdentityAssociationsT>(value)); return *this; }
240 private:
241
242 Aws::String m_addonName;
243 bool m_addonNameHasBeenSet = false;
244
245 Aws::String m_clusterName;
246 bool m_clusterNameHasBeenSet = false;
247
249 bool m_statusHasBeenSet = false;
250
251 Aws::String m_addonVersion;
252 bool m_addonVersionHasBeenSet = false;
253
254 AddonHealth m_health;
255 bool m_healthHasBeenSet = false;
256
257 Aws::String m_addonArn;
258 bool m_addonArnHasBeenSet = false;
259
260 Aws::Utils::DateTime m_createdAt{};
261 bool m_createdAtHasBeenSet = false;
262
263 Aws::Utils::DateTime m_modifiedAt{};
264 bool m_modifiedAtHasBeenSet = false;
265
266 Aws::String m_serviceAccountRoleArn;
267 bool m_serviceAccountRoleArnHasBeenSet = false;
268
270 bool m_tagsHasBeenSet = false;
271
272 Aws::String m_publisher;
273 bool m_publisherHasBeenSet = false;
274
275 Aws::String m_owner;
276 bool m_ownerHasBeenSet = false;
277
278 MarketplaceInformation m_marketplaceInformation;
279 bool m_marketplaceInformationHasBeenSet = false;
280
281 Aws::String m_configurationValues;
282 bool m_configurationValuesHasBeenSet = false;
283
284 Aws::Vector<Aws::String> m_podIdentityAssociations;
285 bool m_podIdentityAssociationsHasBeenSet = false;
286 };
287
288} // namespace Model
289} // namespace EKS
290} // namespace Aws
void SetTags(TagsT &&value)
Definition Addon.h:164
Addon & WithAddonName(AddonNameT &&value)
Definition Addon.h:57
bool AddonVersionHasBeenSet() const
Definition Addon.h:87
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Addon.h:122
AWS_EKS_API Addon & operator=(Aws::Utils::Json::JsonView jsonValue)
Addon & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Addon.h:168
const Aws::String & GetAddonName() const
Definition Addon.h:52
const Aws::String & GetOwner() const
Definition Addon.h:189
const AddonHealth & GetHealth() const
Definition Addon.h:98
Addon & WithPublisher(PublisherT &&value)
Definition Addon.h:182
Addon & WithOwner(OwnerT &&value)
Definition Addon.h:194
void SetModifiedAt(ModifiedAtT &&value)
Definition Addon.h:137
bool OwnerHasBeenSet() const
Definition Addon.h:190
Addon & WithCreatedAt(CreatedAtT &&value)
Definition Addon.h:127
Addon & AddPodIdentityAssociations(PodIdentityAssociationsT &&value)
Definition Addon.h:238
bool PodIdentityAssociationsHasBeenSet() const
Definition Addon.h:232
const Aws::String & GetClusterName() const
Definition Addon.h:64
AddonStatus GetStatus() const
Definition Addon.h:76
void SetAddonVersion(AddonVersionT &&value)
Definition Addon.h:89
void SetClusterName(ClusterNameT &&value)
Definition Addon.h:67
bool HealthHasBeenSet() const
Definition Addon.h:99
Addon & WithStatus(AddonStatus value)
Definition Addon.h:79
void SetCreatedAt(CreatedAtT &&value)
Definition Addon.h:125
Addon & WithConfigurationValues(ConfigurationValuesT &&value)
Definition Addon.h:219
void SetServiceAccountRoleArn(ServiceAccountRoleArnT &&value)
Definition Addon.h:150
bool AddonNameHasBeenSet() const
Definition Addon.h:53
Addon & WithServiceAccountRoleArn(ServiceAccountRoleArnT &&value)
Definition Addon.h:152
void SetAddonArn(AddonArnT &&value)
Definition Addon.h:113
Addon & WithTags(TagsT &&value)
Definition Addon.h:166
bool StatusHasBeenSet() const
Definition Addon.h:77
void SetPublisher(PublisherT &&value)
Definition Addon.h:180
Addon & WithModifiedAt(ModifiedAtT &&value)
Definition Addon.h:139
bool CreatedAtHasBeenSet() const
Definition Addon.h:123
const Aws::String & GetAddonArn() const
Definition Addon.h:110
const Aws::String & GetServiceAccountRoleArn() const
Definition Addon.h:147
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Addon.h:161
void SetStatus(AddonStatus value)
Definition Addon.h:78
bool MarketplaceInformationHasBeenSet() const
Definition Addon.h:203
bool PublisherHasBeenSet() const
Definition Addon.h:178
void SetAddonName(AddonNameT &&value)
Definition Addon.h:55
bool TagsHasBeenSet() const
Definition Addon.h:162
const Aws::String & GetAddonVersion() const
Definition Addon.h:86
Addon & WithAddonArn(AddonArnT &&value)
Definition Addon.h:115
bool ConfigurationValuesHasBeenSet() const
Definition Addon.h:215
const MarketplaceInformation & GetMarketplaceInformation() const
Definition Addon.h:202
bool ModifiedAtHasBeenSet() const
Definition Addon.h:135
bool ServiceAccountRoleArnHasBeenSet() const
Definition Addon.h:148
void SetMarketplaceInformation(MarketplaceInformationT &&value)
Definition Addon.h:205
AWS_EKS_API Addon()=default
const Aws::Vector< Aws::String > & GetPodIdentityAssociations() const
Definition Addon.h:231
void SetPodIdentityAssociations(PodIdentityAssociationsT &&value)
Definition Addon.h:234
const Aws::String & GetPublisher() const
Definition Addon.h:177
void SetHealth(HealthT &&value)
Definition Addon.h:101
void SetConfigurationValues(ConfigurationValuesT &&value)
Definition Addon.h:217
bool ClusterNameHasBeenSet() const
Definition Addon.h:65
AWS_EKS_API Addon(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConfigurationValues() const
Definition Addon.h:214
Addon & WithHealth(HealthT &&value)
Definition Addon.h:103
Addon & WithClusterName(ClusterNameT &&value)
Definition Addon.h:69
const Aws::Utils::DateTime & GetModifiedAt() const
Definition Addon.h:134
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
Addon & WithPodIdentityAssociations(PodIdentityAssociationsT &&value)
Definition Addon.h:236
Addon & WithMarketplaceInformation(MarketplaceInformationT &&value)
Definition Addon.h:207
void SetOwner(OwnerT &&value)
Definition Addon.h:192
Addon & WithAddonVersion(AddonVersionT &&value)
Definition Addon.h:91
bool AddonArnHasBeenSet() const
Definition Addon.h:111
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