AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateAccessEntryRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/eks/EKSRequest.h>
11#include <aws/eks/EKS_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EKS {
17namespace Model {
18
22 public:
23 AWS_EKS_API UpdateAccessEntryRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateAccessEntry"; }
30
31 AWS_EKS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetClusterName() const { return m_clusterName; }
38 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
39 template <typename ClusterNameT = Aws::String>
40 void SetClusterName(ClusterNameT&& value) {
41 m_clusterNameHasBeenSet = true;
42 m_clusterName = std::forward<ClusterNameT>(value);
43 }
44 template <typename ClusterNameT = Aws::String>
46 SetClusterName(std::forward<ClusterNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
56 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
57 template <typename PrincipalArnT = Aws::String>
58 void SetPrincipalArn(PrincipalArnT&& value) {
59 m_principalArnHasBeenSet = true;
60 m_principalArn = std::forward<PrincipalArnT>(value);
61 }
62 template <typename PrincipalArnT = Aws::String>
64 SetPrincipalArn(std::forward<PrincipalArnT>(value));
65 return *this;
66 }
68
70
92 inline const Aws::Vector<Aws::String>& GetKubernetesGroups() const { return m_kubernetesGroups; }
93 inline bool KubernetesGroupsHasBeenSet() const { return m_kubernetesGroupsHasBeenSet; }
94 template <typename KubernetesGroupsT = Aws::Vector<Aws::String>>
95 void SetKubernetesGroups(KubernetesGroupsT&& value) {
96 m_kubernetesGroupsHasBeenSet = true;
97 m_kubernetesGroups = std::forward<KubernetesGroupsT>(value);
98 }
99 template <typename KubernetesGroupsT = Aws::Vector<Aws::String>>
100 UpdateAccessEntryRequest& WithKubernetesGroups(KubernetesGroupsT&& value) {
101 SetKubernetesGroups(std::forward<KubernetesGroupsT>(value));
102 return *this;
103 }
104 template <typename KubernetesGroupsT = Aws::String>
105 UpdateAccessEntryRequest& AddKubernetesGroups(KubernetesGroupsT&& value) {
106 m_kubernetesGroupsHasBeenSet = true;
107 m_kubernetesGroups.emplace_back(std::forward<KubernetesGroupsT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
118 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
119 template <typename ClientRequestTokenT = Aws::String>
120 void SetClientRequestToken(ClientRequestTokenT&& value) {
121 m_clientRequestTokenHasBeenSet = true;
122 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
123 }
124 template <typename ClientRequestTokenT = Aws::String>
125 UpdateAccessEntryRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
126 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
127 return *this;
128 }
130
132
140 inline const Aws::String& GetUsername() const { return m_username; }
141 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
142 template <typename UsernameT = Aws::String>
143 void SetUsername(UsernameT&& value) {
144 m_usernameHasBeenSet = true;
145 m_username = std::forward<UsernameT>(value);
146 }
147 template <typename UsernameT = Aws::String>
149 SetUsername(std::forward<UsernameT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_clusterName;
155
156 Aws::String m_principalArn;
157
158 Aws::Vector<Aws::String> m_kubernetesGroups;
159
160 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
161
162 Aws::String m_username;
163 bool m_clusterNameHasBeenSet = false;
164 bool m_principalArnHasBeenSet = false;
165 bool m_kubernetesGroupsHasBeenSet = false;
166 bool m_clientRequestTokenHasBeenSet = true;
167 bool m_usernameHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace EKS
172} // namespace Aws
UpdateAccessEntryRequest & WithPrincipalArn(PrincipalArnT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetClientRequestToken() const
const Aws::String & GetUsername() const
AWS_EKS_API Aws::String SerializePayload() const override
AWS_EKS_API UpdateAccessEntryRequest()=default
UpdateAccessEntryRequest & AddKubernetesGroups(KubernetesGroupsT &&value)
bool PrincipalArnHasBeenSet() const
const Aws::Vector< Aws::String > & GetKubernetesGroups() const
void SetClusterName(ClusterNameT &&value)
UpdateAccessEntryRequest & WithKubernetesGroups(KubernetesGroupsT &&value)
UpdateAccessEntryRequest & WithUsername(UsernameT &&value)
void SetUsername(UsernameT &&value)
bool KubernetesGroupsHasBeenSet() const
bool UsernameHasBeenSet() const
UpdateAccessEntryRequest & WithClientRequestToken(ClientRequestTokenT &&value)
UpdateAccessEntryRequest & WithClusterName(ClusterNameT &&value)
void SetPrincipalArn(PrincipalArnT &&value)
void SetKubernetesGroups(KubernetesGroupsT &&value)
bool ClusterNameHasBeenSet() const
void SetClientRequestToken(ClientRequestTokenT &&value)
bool ClientRequestTokenHasBeenSet() const
const Aws::String & GetPrincipalArn() const
const Aws::String & GetClusterName() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector