AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AccessEntry.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/eks/EKS_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EKS {
23namespace Model {
24
36 public:
37 AWS_EKS_API AccessEntry() = default;
41
43
46 inline const Aws::String& GetClusterName() const { return m_clusterName; }
47 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
48 template <typename ClusterNameT = Aws::String>
49 void SetClusterName(ClusterNameT&& value) {
50 m_clusterNameHasBeenSet = true;
51 m_clusterName = std::forward<ClusterNameT>(value);
52 }
53 template <typename ClusterNameT = Aws::String>
54 AccessEntry& WithClusterName(ClusterNameT&& value) {
55 SetClusterName(std::forward<ClusterNameT>(value));
56 return *this;
57 }
59
61
74 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
75 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
76 template <typename PrincipalArnT = Aws::String>
77 void SetPrincipalArn(PrincipalArnT&& value) {
78 m_principalArnHasBeenSet = true;
79 m_principalArn = std::forward<PrincipalArnT>(value);
80 }
81 template <typename PrincipalArnT = Aws::String>
82 AccessEntry& WithPrincipalArn(PrincipalArnT&& value) {
83 SetPrincipalArn(std::forward<PrincipalArnT>(value));
84 return *this;
85 }
87
89
95 inline const Aws::Vector<Aws::String>& GetKubernetesGroups() const { return m_kubernetesGroups; }
96 inline bool KubernetesGroupsHasBeenSet() const { return m_kubernetesGroupsHasBeenSet; }
97 template <typename KubernetesGroupsT = Aws::Vector<Aws::String>>
98 void SetKubernetesGroups(KubernetesGroupsT&& value) {
99 m_kubernetesGroupsHasBeenSet = true;
100 m_kubernetesGroups = std::forward<KubernetesGroupsT>(value);
101 }
102 template <typename KubernetesGroupsT = Aws::Vector<Aws::String>>
103 AccessEntry& WithKubernetesGroups(KubernetesGroupsT&& value) {
104 SetKubernetesGroups(std::forward<KubernetesGroupsT>(value));
105 return *this;
106 }
107 template <typename KubernetesGroupsT = Aws::String>
108 AccessEntry& AddKubernetesGroups(KubernetesGroupsT&& value) {
109 m_kubernetesGroupsHasBeenSet = true;
110 m_kubernetesGroups.emplace_back(std::forward<KubernetesGroupsT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetAccessEntryArn() const { return m_accessEntryArn; }
120 inline bool AccessEntryArnHasBeenSet() const { return m_accessEntryArnHasBeenSet; }
121 template <typename AccessEntryArnT = Aws::String>
122 void SetAccessEntryArn(AccessEntryArnT&& value) {
123 m_accessEntryArnHasBeenSet = true;
124 m_accessEntryArn = std::forward<AccessEntryArnT>(value);
125 }
126 template <typename AccessEntryArnT = Aws::String>
127 AccessEntry& WithAccessEntryArn(AccessEntryArnT&& value) {
128 SetAccessEntryArn(std::forward<AccessEntryArnT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
138 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
139 template <typename CreatedAtT = Aws::Utils::DateTime>
140 void SetCreatedAt(CreatedAtT&& value) {
141 m_createdAtHasBeenSet = true;
142 m_createdAt = std::forward<CreatedAtT>(value);
143 }
144 template <typename CreatedAtT = Aws::Utils::DateTime>
145 AccessEntry& WithCreatedAt(CreatedAtT&& value) {
146 SetCreatedAt(std::forward<CreatedAtT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
156 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
157 template <typename ModifiedAtT = Aws::Utils::DateTime>
158 void SetModifiedAt(ModifiedAtT&& value) {
159 m_modifiedAtHasBeenSet = true;
160 m_modifiedAt = std::forward<ModifiedAtT>(value);
161 }
162 template <typename ModifiedAtT = Aws::Utils::DateTime>
163 AccessEntry& WithModifiedAt(ModifiedAtT&& value) {
164 SetModifiedAt(std::forward<ModifiedAtT>(value));
165 return *this;
166 }
168
170
175 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
176 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
177 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
178 void SetTags(TagsT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags = std::forward<TagsT>(value);
181 }
182 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 AccessEntry& WithTags(TagsT&& value) {
184 SetTags(std::forward<TagsT>(value));
185 return *this;
186 }
187 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
188 AccessEntry& AddTags(TagsKeyT&& key, TagsValueT&& value) {
189 m_tagsHasBeenSet = true;
190 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::String& GetUsername() const { return m_username; }
200 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
201 template <typename UsernameT = Aws::String>
202 void SetUsername(UsernameT&& value) {
203 m_usernameHasBeenSet = true;
204 m_username = std::forward<UsernameT>(value);
205 }
206 template <typename UsernameT = Aws::String>
207 AccessEntry& WithUsername(UsernameT&& value) {
208 SetUsername(std::forward<UsernameT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::String& GetType() const { return m_type; }
218 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
219 template <typename TypeT = Aws::String>
220 void SetType(TypeT&& value) {
221 m_typeHasBeenSet = true;
222 m_type = std::forward<TypeT>(value);
223 }
224 template <typename TypeT = Aws::String>
225 AccessEntry& WithType(TypeT&& value) {
226 SetType(std::forward<TypeT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_clusterName;
232
233 Aws::String m_principalArn;
234
235 Aws::Vector<Aws::String> m_kubernetesGroups;
236
237 Aws::String m_accessEntryArn;
238
239 Aws::Utils::DateTime m_createdAt{};
240
241 Aws::Utils::DateTime m_modifiedAt{};
242
244
245 Aws::String m_username;
246
247 Aws::String m_type;
248 bool m_clusterNameHasBeenSet = false;
249 bool m_principalArnHasBeenSet = false;
250 bool m_kubernetesGroupsHasBeenSet = false;
251 bool m_accessEntryArnHasBeenSet = false;
252 bool m_createdAtHasBeenSet = false;
253 bool m_modifiedAtHasBeenSet = false;
254 bool m_tagsHasBeenSet = false;
255 bool m_usernameHasBeenSet = false;
256 bool m_typeHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace EKS
261} // namespace Aws
Definition AccessEntry.h:35
bool CreatedAtHasBeenSet() const
AccessEntry & WithType(TypeT &&value)
AWS_EKS_API AccessEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API AccessEntry()=default
void SetAccessEntryArn(AccessEntryArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetUsername() const
const Aws::Utils::DateTime & GetModifiedAt() const
bool AccessEntryArnHasBeenSet() const
AccessEntry & WithPrincipalArn(PrincipalArnT &&value)
Definition AccessEntry.h:82
void SetModifiedAt(ModifiedAtT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
AccessEntry & AddKubernetesGroups(KubernetesGroupsT &&value)
AWS_EKS_API AccessEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TagsHasBeenSet() const
const Aws::String & GetClusterName() const
Definition AccessEntry.h:46
bool ModifiedAtHasBeenSet() const
bool PrincipalArnHasBeenSet() const
Definition AccessEntry.h:75
void SetTags(TagsT &&value)
bool TypeHasBeenSet() const
bool ClusterNameHasBeenSet() const
Definition AccessEntry.h:47
const Aws::String & GetAccessEntryArn() const
AccessEntry & WithModifiedAt(ModifiedAtT &&value)
AccessEntry & AddTags(TagsKeyT &&key, TagsValueT &&value)
AccessEntry & WithClusterName(ClusterNameT &&value)
Definition AccessEntry.h:54
AccessEntry & WithKubernetesGroups(KubernetesGroupsT &&value)
void SetClusterName(ClusterNameT &&value)
Definition AccessEntry.h:49
bool UsernameHasBeenSet() const
void SetUsername(UsernameT &&value)
const Aws::String & GetPrincipalArn() const
Definition AccessEntry.h:74
AccessEntry & WithUsername(UsernameT &&value)
void SetType(TypeT &&value)
const Aws::Vector< Aws::String > & GetKubernetesGroups() const
Definition AccessEntry.h:95
AccessEntry & WithAccessEntryArn(AccessEntryArnT &&value)
AccessEntry & WithCreatedAt(CreatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetType() const
void SetKubernetesGroups(KubernetesGroupsT &&value)
Definition AccessEntry.h:98
bool KubernetesGroupsHasBeenSet() const
Definition AccessEntry.h:96
void SetPrincipalArn(PrincipalArnT &&value)
Definition AccessEntry.h:77
AccessEntry & WithTags(TagsT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue