AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PodIdentityAssociation.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EKS
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_EKS_API PodIdentityAssociation() = default;
43
44
46
49 inline const Aws::String& GetClusterName() const { return m_clusterName; }
50 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
51 template<typename ClusterNameT = Aws::String>
52 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
53 template<typename ClusterNameT = Aws::String>
54 PodIdentityAssociation& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
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) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
67 template<typename NamespaceT = Aws::String>
68 PodIdentityAssociation& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
70
72
76 inline const Aws::String& GetServiceAccount() const { return m_serviceAccount; }
77 inline bool ServiceAccountHasBeenSet() const { return m_serviceAccountHasBeenSet; }
78 template<typename ServiceAccountT = Aws::String>
79 void SetServiceAccount(ServiceAccountT&& value) { m_serviceAccountHasBeenSet = true; m_serviceAccount = std::forward<ServiceAccountT>(value); }
80 template<typename ServiceAccountT = Aws::String>
81 PodIdentityAssociation& WithServiceAccount(ServiceAccountT&& value) { SetServiceAccount(std::forward<ServiceAccountT>(value)); return *this;}
83
85
90 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
91 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
92 template<typename RoleArnT = Aws::String>
93 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
94 template<typename RoleArnT = Aws::String>
95 PodIdentityAssociation& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
97
99
102 inline const Aws::String& GetAssociationArn() const { return m_associationArn; }
103 inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
104 template<typename AssociationArnT = Aws::String>
105 void SetAssociationArn(AssociationArnT&& value) { m_associationArnHasBeenSet = true; m_associationArn = std::forward<AssociationArnT>(value); }
106 template<typename AssociationArnT = Aws::String>
107 PodIdentityAssociation& WithAssociationArn(AssociationArnT&& value) { SetAssociationArn(std::forward<AssociationArnT>(value)); return *this;}
109
111
114 inline const Aws::String& GetAssociationId() const { return m_associationId; }
115 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
116 template<typename AssociationIdT = Aws::String>
117 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
118 template<typename AssociationIdT = Aws::String>
119 PodIdentityAssociation& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
121
123
142 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
143 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
144 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
146 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 PodIdentityAssociation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
148 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 PodIdentityAssociation& AddTags(TagsKeyT&& key, TagsValueT&& value) {
150 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
151 }
153
155
158 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
159 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
160 template<typename CreatedAtT = Aws::Utils::DateTime>
161 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
162 template<typename CreatedAtT = Aws::Utils::DateTime>
163 PodIdentityAssociation& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
165
167
170 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
171 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
172 template<typename ModifiedAtT = Aws::Utils::DateTime>
173 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
174 template<typename ModifiedAtT = Aws::Utils::DateTime>
175 PodIdentityAssociation& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
177
179
183 inline const Aws::String& GetOwnerArn() const { return m_ownerArn; }
184 inline bool OwnerArnHasBeenSet() const { return m_ownerArnHasBeenSet; }
185 template<typename OwnerArnT = Aws::String>
186 void SetOwnerArn(OwnerArnT&& value) { m_ownerArnHasBeenSet = true; m_ownerArn = std::forward<OwnerArnT>(value); }
187 template<typename OwnerArnT = Aws::String>
188 PodIdentityAssociation& WithOwnerArn(OwnerArnT&& value) { SetOwnerArn(std::forward<OwnerArnT>(value)); return *this;}
190
192
204 inline bool GetDisableSessionTags() const { return m_disableSessionTags; }
205 inline bool DisableSessionTagsHasBeenSet() const { return m_disableSessionTagsHasBeenSet; }
206 inline void SetDisableSessionTags(bool value) { m_disableSessionTagsHasBeenSet = true; m_disableSessionTags = value; }
207 inline PodIdentityAssociation& WithDisableSessionTags(bool value) { SetDisableSessionTags(value); return *this;}
209
211
216 inline const Aws::String& GetTargetRoleArn() const { return m_targetRoleArn; }
217 inline bool TargetRoleArnHasBeenSet() const { return m_targetRoleArnHasBeenSet; }
218 template<typename TargetRoleArnT = Aws::String>
219 void SetTargetRoleArn(TargetRoleArnT&& value) { m_targetRoleArnHasBeenSet = true; m_targetRoleArn = std::forward<TargetRoleArnT>(value); }
220 template<typename TargetRoleArnT = Aws::String>
221 PodIdentityAssociation& WithTargetRoleArn(TargetRoleArnT&& value) { SetTargetRoleArn(std::forward<TargetRoleArnT>(value)); return *this;}
223
225
238 inline const Aws::String& GetExternalId() const { return m_externalId; }
239 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
240 template<typename ExternalIdT = Aws::String>
241 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
242 template<typename ExternalIdT = Aws::String>
243 PodIdentityAssociation& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
245 private:
246
247 Aws::String m_clusterName;
248 bool m_clusterNameHasBeenSet = false;
249
250 Aws::String m_namespace;
251 bool m_namespaceHasBeenSet = false;
252
253 Aws::String m_serviceAccount;
254 bool m_serviceAccountHasBeenSet = false;
255
256 Aws::String m_roleArn;
257 bool m_roleArnHasBeenSet = false;
258
259 Aws::String m_associationArn;
260 bool m_associationArnHasBeenSet = false;
261
262 Aws::String m_associationId;
263 bool m_associationIdHasBeenSet = false;
264
266 bool m_tagsHasBeenSet = false;
267
268 Aws::Utils::DateTime m_createdAt{};
269 bool m_createdAtHasBeenSet = false;
270
271 Aws::Utils::DateTime m_modifiedAt{};
272 bool m_modifiedAtHasBeenSet = false;
273
274 Aws::String m_ownerArn;
275 bool m_ownerArnHasBeenSet = false;
276
277 bool m_disableSessionTags{false};
278 bool m_disableSessionTagsHasBeenSet = false;
279
280 Aws::String m_targetRoleArn;
281 bool m_targetRoleArnHasBeenSet = false;
282
283 Aws::String m_externalId;
284 bool m_externalIdHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace EKS
289} // 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