AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateAccessEntryRequest.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 <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace EKS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EKS_API UpdateAccessEntryRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateAccessEntry"; }
33
34 AWS_EKS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetClusterName() const { return m_clusterName; }
42 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
43 template<typename ClusterNameT = Aws::String>
44 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
45 template<typename ClusterNameT = Aws::String>
46 UpdateAccessEntryRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
54 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
55 template<typename PrincipalArnT = Aws::String>
56 void SetPrincipalArn(PrincipalArnT&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::forward<PrincipalArnT>(value); }
57 template<typename PrincipalArnT = Aws::String>
58 UpdateAccessEntryRequest& WithPrincipalArn(PrincipalArnT&& value) { SetPrincipalArn(std::forward<PrincipalArnT>(value)); return *this;}
60
62
84 inline const Aws::Vector<Aws::String>& GetKubernetesGroups() const { return m_kubernetesGroups; }
85 inline bool KubernetesGroupsHasBeenSet() const { return m_kubernetesGroupsHasBeenSet; }
86 template<typename KubernetesGroupsT = Aws::Vector<Aws::String>>
87 void SetKubernetesGroups(KubernetesGroupsT&& value) { m_kubernetesGroupsHasBeenSet = true; m_kubernetesGroups = std::forward<KubernetesGroupsT>(value); }
88 template<typename KubernetesGroupsT = Aws::Vector<Aws::String>>
89 UpdateAccessEntryRequest& WithKubernetesGroups(KubernetesGroupsT&& value) { SetKubernetesGroups(std::forward<KubernetesGroupsT>(value)); return *this;}
90 template<typename KubernetesGroupsT = Aws::String>
91 UpdateAccessEntryRequest& AddKubernetesGroups(KubernetesGroupsT&& value) { m_kubernetesGroupsHasBeenSet = true; m_kubernetesGroups.emplace_back(std::forward<KubernetesGroupsT>(value)); return *this; }
93
95
99 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
100 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
101 template<typename ClientRequestTokenT = Aws::String>
102 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
103 template<typename ClientRequestTokenT = Aws::String>
104 UpdateAccessEntryRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
106
108
116 inline const Aws::String& GetUsername() const { return m_username; }
117 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
118 template<typename UsernameT = Aws::String>
119 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
120 template<typename UsernameT = Aws::String>
121 UpdateAccessEntryRequest& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
123 private:
124
125 Aws::String m_clusterName;
126 bool m_clusterNameHasBeenSet = false;
127
128 Aws::String m_principalArn;
129 bool m_principalArnHasBeenSet = false;
130
131 Aws::Vector<Aws::String> m_kubernetesGroups;
132 bool m_kubernetesGroupsHasBeenSet = false;
133
134 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
135 bool m_clientRequestTokenHasBeenSet = true;
136
137 Aws::String m_username;
138 bool m_usernameHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace EKS
143} // 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