AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAccessEntryRequest.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/EKSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EKS
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EKS_API CreateAccessEntryRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAccessEntry"; }
34
35 AWS_EKS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetClusterName() const { return m_clusterName; }
43 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
44 template<typename ClusterNameT = Aws::String>
45 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
46 template<typename ClusterNameT = Aws::String>
47 CreateAccessEntryRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
49
51
67 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
68 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
69 template<typename PrincipalArnT = Aws::String>
70 void SetPrincipalArn(PrincipalArnT&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::forward<PrincipalArnT>(value); }
71 template<typename PrincipalArnT = Aws::String>
72 CreateAccessEntryRequest& WithPrincipalArn(PrincipalArnT&& value) { SetPrincipalArn(std::forward<PrincipalArnT>(value)); return *this;}
74
76
98 inline const Aws::Vector<Aws::String>& GetKubernetesGroups() const { return m_kubernetesGroups; }
99 inline bool KubernetesGroupsHasBeenSet() const { return m_kubernetesGroupsHasBeenSet; }
100 template<typename KubernetesGroupsT = Aws::Vector<Aws::String>>
101 void SetKubernetesGroups(KubernetesGroupsT&& value) { m_kubernetesGroupsHasBeenSet = true; m_kubernetesGroups = std::forward<KubernetesGroupsT>(value); }
102 template<typename KubernetesGroupsT = Aws::Vector<Aws::String>>
103 CreateAccessEntryRequest& WithKubernetesGroups(KubernetesGroupsT&& value) { SetKubernetesGroups(std::forward<KubernetesGroupsT>(value)); return *this;}
104 template<typename KubernetesGroupsT = Aws::String>
105 CreateAccessEntryRequest& AddKubernetesGroups(KubernetesGroupsT&& value) { m_kubernetesGroupsHasBeenSet = true; m_kubernetesGroups.emplace_back(std::forward<KubernetesGroupsT>(value)); return *this; }
107
109
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
118 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 CreateAccessEntryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
120 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
121 CreateAccessEntryRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
122 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
123 }
125
127
131 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
132 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
133 template<typename ClientRequestTokenT = Aws::String>
134 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
135 template<typename ClientRequestTokenT = Aws::String>
136 CreateAccessEntryRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
138
140
148 inline const Aws::String& GetUsername() const { return m_username; }
149 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
150 template<typename UsernameT = Aws::String>
151 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
152 template<typename UsernameT = Aws::String>
153 CreateAccessEntryRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
155
157
176 inline const Aws::String& GetType() const { return m_type; }
177 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
178 template<typename TypeT = Aws::String>
179 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
180 template<typename TypeT = Aws::String>
181 CreateAccessEntryRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
183 private:
184
185 Aws::String m_clusterName;
186 bool m_clusterNameHasBeenSet = false;
187
188 Aws::String m_principalArn;
189 bool m_principalArnHasBeenSet = false;
190
191 Aws::Vector<Aws::String> m_kubernetesGroups;
192 bool m_kubernetesGroupsHasBeenSet = false;
193
195 bool m_tagsHasBeenSet = false;
196
197 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
198 bool m_clientRequestTokenHasBeenSet = true;
199
200 Aws::String m_username;
201 bool m_usernameHasBeenSet = false;
202
203 Aws::String m_type;
204 bool m_typeHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace EKS
209} // 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