AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateAccessEntryRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.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/EKSRequest.h>
12#include <aws/eks/EKS_EXPORTS.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EKS {
18namespace Model {
19
23 public:
24 AWS_EKS_API CreateAccessEntryRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateAccessEntry"; }
31
32 AWS_EKS_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetClusterName() const { return m_clusterName; }
39 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
40 template <typename ClusterNameT = Aws::String>
41 void SetClusterName(ClusterNameT&& value) {
42 m_clusterNameHasBeenSet = true;
43 m_clusterName = std::forward<ClusterNameT>(value);
44 }
45 template <typename ClusterNameT = Aws::String>
47 SetClusterName(std::forward<ClusterNameT>(value));
48 return *this;
49 }
51
53
69 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
70 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
71 template <typename PrincipalArnT = Aws::String>
72 void SetPrincipalArn(PrincipalArnT&& value) {
73 m_principalArnHasBeenSet = true;
74 m_principalArn = std::forward<PrincipalArnT>(value);
75 }
76 template <typename PrincipalArnT = Aws::String>
78 SetPrincipalArn(std::forward<PrincipalArnT>(value));
79 return *this;
80 }
82
84
106 inline const Aws::Vector<Aws::String>& GetKubernetesGroups() const { return m_kubernetesGroups; }
107 inline bool KubernetesGroupsHasBeenSet() const { return m_kubernetesGroupsHasBeenSet; }
108 template <typename KubernetesGroupsT = Aws::Vector<Aws::String>>
109 void SetKubernetesGroups(KubernetesGroupsT&& value) {
110 m_kubernetesGroupsHasBeenSet = true;
111 m_kubernetesGroups = std::forward<KubernetesGroupsT>(value);
112 }
113 template <typename KubernetesGroupsT = Aws::Vector<Aws::String>>
114 CreateAccessEntryRequest& WithKubernetesGroups(KubernetesGroupsT&& value) {
115 SetKubernetesGroups(std::forward<KubernetesGroupsT>(value));
116 return *this;
117 }
118 template <typename KubernetesGroupsT = Aws::String>
119 CreateAccessEntryRequest& AddKubernetesGroups(KubernetesGroupsT&& value) {
120 m_kubernetesGroupsHasBeenSet = true;
121 m_kubernetesGroups.emplace_back(std::forward<KubernetesGroupsT>(value));
122 return *this;
123 }
125
127
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 CreateAccessEntryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
158 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
159 template <typename ClientRequestTokenT = Aws::String>
160 void SetClientRequestToken(ClientRequestTokenT&& value) {
161 m_clientRequestTokenHasBeenSet = true;
162 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
163 }
164 template <typename ClientRequestTokenT = Aws::String>
165 CreateAccessEntryRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
166 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
167 return *this;
168 }
170
172
180 inline const Aws::String& GetUsername() const { return m_username; }
181 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
182 template <typename UsernameT = Aws::String>
183 void SetUsername(UsernameT&& value) {
184 m_usernameHasBeenSet = true;
185 m_username = std::forward<UsernameT>(value);
186 }
187 template <typename UsernameT = Aws::String>
189 SetUsername(std::forward<UsernameT>(value));
190 return *this;
191 }
193
195
214 inline const Aws::String& GetType() const { return m_type; }
215 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
216 template <typename TypeT = Aws::String>
217 void SetType(TypeT&& value) {
218 m_typeHasBeenSet = true;
219 m_type = std::forward<TypeT>(value);
220 }
221 template <typename TypeT = Aws::String>
223 SetType(std::forward<TypeT>(value));
224 return *this;
225 }
227 private:
228 Aws::String m_clusterName;
229
230 Aws::String m_principalArn;
231
232 Aws::Vector<Aws::String> m_kubernetesGroups;
233
235
236 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
237
238 Aws::String m_username;
239
240 Aws::String m_type;
241 bool m_clusterNameHasBeenSet = false;
242 bool m_principalArnHasBeenSet = false;
243 bool m_kubernetesGroupsHasBeenSet = false;
244 bool m_tagsHasBeenSet = false;
245 bool m_clientRequestTokenHasBeenSet = true;
246 bool m_usernameHasBeenSet = false;
247 bool m_typeHasBeenSet = false;
248};
249
250} // namespace Model
251} // namespace EKS
252} // namespace Aws
CreateAccessEntryRequest & AddKubernetesGroups(KubernetesGroupsT &&value)
bool ClusterNameHasBeenSet() const
const Aws::String & GetClusterName() const
virtual const char * GetServiceRequestName() const override
CreateAccessEntryRequest & WithPrincipalArn(PrincipalArnT &&value)
void SetTags(TagsT &&value)
const Aws::String & GetClientRequestToken() const
AWS_EKS_API CreateAccessEntryRequest()=default
const Aws::String & GetType() const
CreateAccessEntryRequest & WithClusterName(ClusterNameT &&value)
bool TypeHasBeenSet() const
void SetClusterName(ClusterNameT &&value)
CreateAccessEntryRequest & WithUsername(UsernameT &&value)
void SetPrincipalArn(PrincipalArnT &&value)
void SetType(TypeT &&value)
const Aws::String & GetPrincipalArn() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAccessEntryRequest & WithTags(TagsT &&value)
CreateAccessEntryRequest & WithKubernetesGroups(KubernetesGroupsT &&value)
bool KubernetesGroupsHasBeenSet() const
void SetKubernetesGroups(KubernetesGroupsT &&value)
bool PrincipalArnHasBeenSet() const
void SetClientRequestToken(ClientRequestTokenT &&value)
const Aws::String & GetUsername() const
const Aws::Vector< Aws::String > & GetKubernetesGroups() const
bool UsernameHasBeenSet() const
bool TagsHasBeenSet() const
CreateAccessEntryRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool ClientRequestTokenHasBeenSet() const
CreateAccessEntryRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateAccessEntryRequest & WithType(TypeT &&value)
void SetUsername(UsernameT &&value)
AWS_EKS_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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