AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PodIdentityAssociation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eks/EKS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EKS {
22namespace Model {
23
33 public:
34 AWS_EKS_API PodIdentityAssociation() = default;
38
40
43 inline const Aws::String& GetClusterName() const { return m_clusterName; }
44 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
45 template <typename ClusterNameT = Aws::String>
46 void SetClusterName(ClusterNameT&& value) {
47 m_clusterNameHasBeenSet = true;
48 m_clusterName = std::forward<ClusterNameT>(value);
49 }
50 template <typename ClusterNameT = Aws::String>
51 PodIdentityAssociation& WithClusterName(ClusterNameT&& value) {
52 SetClusterName(std::forward<ClusterNameT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetNamespace() const { return m_namespace; }
64 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
65 template <typename NamespaceT = Aws::String>
66 void SetNamespace(NamespaceT&& value) {
67 m_namespaceHasBeenSet = true;
68 m_namespace = std::forward<NamespaceT>(value);
69 }
70 template <typename NamespaceT = Aws::String>
72 SetNamespace(std::forward<NamespaceT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetServiceAccount() const { return m_serviceAccount; }
83 inline bool ServiceAccountHasBeenSet() const { return m_serviceAccountHasBeenSet; }
84 template <typename ServiceAccountT = Aws::String>
85 void SetServiceAccount(ServiceAccountT&& value) {
86 m_serviceAccountHasBeenSet = true;
87 m_serviceAccount = std::forward<ServiceAccountT>(value);
88 }
89 template <typename ServiceAccountT = Aws::String>
90 PodIdentityAssociation& WithServiceAccount(ServiceAccountT&& value) {
91 SetServiceAccount(std::forward<ServiceAccountT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
103 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
104 template <typename RoleArnT = Aws::String>
105 void SetRoleArn(RoleArnT&& value) {
106 m_roleArnHasBeenSet = true;
107 m_roleArn = std::forward<RoleArnT>(value);
108 }
109 template <typename RoleArnT = Aws::String>
111 SetRoleArn(std::forward<RoleArnT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetAssociationArn() const { return m_associationArn; }
121 inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
122 template <typename AssociationArnT = Aws::String>
123 void SetAssociationArn(AssociationArnT&& value) {
124 m_associationArnHasBeenSet = true;
125 m_associationArn = std::forward<AssociationArnT>(value);
126 }
127 template <typename AssociationArnT = Aws::String>
128 PodIdentityAssociation& WithAssociationArn(AssociationArnT&& value) {
129 SetAssociationArn(std::forward<AssociationArnT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetAssociationId() const { return m_associationId; }
139 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
140 template <typename AssociationIdT = Aws::String>
141 void SetAssociationId(AssociationIdT&& value) {
142 m_associationIdHasBeenSet = true;
143 m_associationId = std::forward<AssociationIdT>(value);
144 }
145 template <typename AssociationIdT = Aws::String>
146 PodIdentityAssociation& WithAssociationId(AssociationIdT&& value) {
147 SetAssociationId(std::forward<AssociationIdT>(value));
148 return *this;
149 }
151
153
172 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 void SetTags(TagsT&& value) {
176 m_tagsHasBeenSet = true;
177 m_tags = std::forward<TagsT>(value);
178 }
179 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 SetTags(std::forward<TagsT>(value));
182 return *this;
183 }
184 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
185 PodIdentityAssociation& AddTags(TagsKeyT&& key, TagsValueT&& value) {
186 m_tagsHasBeenSet = true;
187 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
197 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
198 template <typename CreatedAtT = Aws::Utils::DateTime>
199 void SetCreatedAt(CreatedAtT&& value) {
200 m_createdAtHasBeenSet = true;
201 m_createdAt = std::forward<CreatedAtT>(value);
202 }
203 template <typename CreatedAtT = Aws::Utils::DateTime>
205 SetCreatedAt(std::forward<CreatedAtT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
215 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
216 template <typename ModifiedAtT = Aws::Utils::DateTime>
217 void SetModifiedAt(ModifiedAtT&& value) {
218 m_modifiedAtHasBeenSet = true;
219 m_modifiedAt = std::forward<ModifiedAtT>(value);
220 }
221 template <typename ModifiedAtT = Aws::Utils::DateTime>
223 SetModifiedAt(std::forward<ModifiedAtT>(value));
224 return *this;
225 }
227
229
233 inline const Aws::String& GetOwnerArn() const { return m_ownerArn; }
234 inline bool OwnerArnHasBeenSet() const { return m_ownerArnHasBeenSet; }
235 template <typename OwnerArnT = Aws::String>
236 void SetOwnerArn(OwnerArnT&& value) {
237 m_ownerArnHasBeenSet = true;
238 m_ownerArn = std::forward<OwnerArnT>(value);
239 }
240 template <typename OwnerArnT = Aws::String>
242 SetOwnerArn(std::forward<OwnerArnT>(value));
243 return *this;
244 }
246
248
260 inline bool GetDisableSessionTags() const { return m_disableSessionTags; }
261 inline bool DisableSessionTagsHasBeenSet() const { return m_disableSessionTagsHasBeenSet; }
262 inline void SetDisableSessionTags(bool value) {
263 m_disableSessionTagsHasBeenSet = true;
264 m_disableSessionTags = value;
265 }
268 return *this;
269 }
271
273
278 inline const Aws::String& GetTargetRoleArn() const { return m_targetRoleArn; }
279 inline bool TargetRoleArnHasBeenSet() const { return m_targetRoleArnHasBeenSet; }
280 template <typename TargetRoleArnT = Aws::String>
281 void SetTargetRoleArn(TargetRoleArnT&& value) {
282 m_targetRoleArnHasBeenSet = true;
283 m_targetRoleArn = std::forward<TargetRoleArnT>(value);
284 }
285 template <typename TargetRoleArnT = Aws::String>
286 PodIdentityAssociation& WithTargetRoleArn(TargetRoleArnT&& value) {
287 SetTargetRoleArn(std::forward<TargetRoleArnT>(value));
288 return *this;
289 }
291
293
306 inline const Aws::String& GetExternalId() const { return m_externalId; }
307 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
308 template <typename ExternalIdT = Aws::String>
309 void SetExternalId(ExternalIdT&& value) {
310 m_externalIdHasBeenSet = true;
311 m_externalId = std::forward<ExternalIdT>(value);
312 }
313 template <typename ExternalIdT = Aws::String>
315 SetExternalId(std::forward<ExternalIdT>(value));
316 return *this;
317 }
319 private:
320 Aws::String m_clusterName;
321
322 Aws::String m_namespace;
323
324 Aws::String m_serviceAccount;
325
326 Aws::String m_roleArn;
327
328 Aws::String m_associationArn;
329
330 Aws::String m_associationId;
331
333
334 Aws::Utils::DateTime m_createdAt{};
335
336 Aws::Utils::DateTime m_modifiedAt{};
337
338 Aws::String m_ownerArn;
339
340 bool m_disableSessionTags{false};
341
342 Aws::String m_targetRoleArn;
343
344 Aws::String m_externalId;
345 bool m_clusterNameHasBeenSet = false;
346 bool m_namespaceHasBeenSet = false;
347 bool m_serviceAccountHasBeenSet = false;
348 bool m_roleArnHasBeenSet = false;
349 bool m_associationArnHasBeenSet = false;
350 bool m_associationIdHasBeenSet = false;
351 bool m_tagsHasBeenSet = false;
352 bool m_createdAtHasBeenSet = false;
353 bool m_modifiedAtHasBeenSet = false;
354 bool m_ownerArnHasBeenSet = false;
355 bool m_disableSessionTagsHasBeenSet = false;
356 bool m_targetRoleArnHasBeenSet = false;
357 bool m_externalIdHasBeenSet = false;
358};
359
360} // namespace Model
361} // namespace EKS
362} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
PodIdentityAssociation & WithAssociationId(AssociationIdT &&value)
void SetServiceAccount(ServiceAccountT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedAt() const
PodIdentityAssociation & AddTags(TagsKeyT &&key, TagsValueT &&value)
PodIdentityAssociation & WithServiceAccount(ServiceAccountT &&value)
PodIdentityAssociation & WithTargetRoleArn(TargetRoleArnT &&value)
PodIdentityAssociation & WithDisableSessionTags(bool value)
const Aws::Utils::DateTime & GetModifiedAt() const
AWS_EKS_API PodIdentityAssociation(Aws::Utils::Json::JsonView jsonValue)
PodIdentityAssociation & WithNamespace(NamespaceT &&value)
PodIdentityAssociation & WithRoleArn(RoleArnT &&value)
PodIdentityAssociation & WithClusterName(ClusterNameT &&value)
PodIdentityAssociation & WithOwnerArn(OwnerArnT &&value)
PodIdentityAssociation & WithTags(TagsT &&value)
AWS_EKS_API PodIdentityAssociation()=default
AWS_EKS_API PodIdentityAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
PodIdentityAssociation & WithModifiedAt(ModifiedAtT &&value)
PodIdentityAssociation & WithExternalId(ExternalIdT &&value)
PodIdentityAssociation & WithCreatedAt(CreatedAtT &&value)
void SetAssociationArn(AssociationArnT &&value)
PodIdentityAssociation & WithAssociationArn(AssociationArnT &&value)
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
Aws::Utils::Json::JsonValue JsonValue