AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreatePodIdentityAssociationRequest.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/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 CreatePodIdentityAssociationRequest() = 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 "CreatePodIdentityAssociation"; }
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
57 inline const Aws::String& GetNamespace() const { return m_namespace; }
58 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
59 template <typename NamespaceT = Aws::String>
60 void SetNamespace(NamespaceT&& value) {
61 m_namespaceHasBeenSet = true;
62 m_namespace = std::forward<NamespaceT>(value);
63 }
64 template <typename NamespaceT = Aws::String>
66 SetNamespace(std::forward<NamespaceT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetServiceAccount() const { return m_serviceAccount; }
77 inline bool ServiceAccountHasBeenSet() const { return m_serviceAccountHasBeenSet; }
78 template <typename ServiceAccountT = Aws::String>
79 void SetServiceAccount(ServiceAccountT&& value) {
80 m_serviceAccountHasBeenSet = true;
81 m_serviceAccount = std::forward<ServiceAccountT>(value);
82 }
83 template <typename ServiceAccountT = Aws::String>
85 SetServiceAccount(std::forward<ServiceAccountT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
97 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
98 template <typename RoleArnT = Aws::String>
99 void SetRoleArn(RoleArnT&& value) {
100 m_roleArnHasBeenSet = true;
101 m_roleArn = std::forward<RoleArnT>(value);
102 }
103 template <typename RoleArnT = Aws::String>
105 SetRoleArn(std::forward<RoleArnT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
116 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
117 template <typename ClientRequestTokenT = Aws::String>
118 void SetClientRequestToken(ClientRequestTokenT&& value) {
119 m_clientRequestTokenHasBeenSet = true;
120 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
121 }
122 template <typename ClientRequestTokenT = Aws::String>
124 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
125 return *this;
126 }
128
130
149 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 void SetTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags = std::forward<TagsT>(value);
155 }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 SetTags(std::forward<TagsT>(value));
159 return *this;
160 }
161 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
162 CreatePodIdentityAssociationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
165 return *this;
166 }
168
170
186 inline bool GetDisableSessionTags() const { return m_disableSessionTags; }
187 inline bool DisableSessionTagsHasBeenSet() const { return m_disableSessionTagsHasBeenSet; }
188 inline void SetDisableSessionTags(bool value) {
189 m_disableSessionTagsHasBeenSet = true;
190 m_disableSessionTags = value;
191 }
194 return *this;
195 }
197
199
216 inline const Aws::String& GetTargetRoleArn() const { return m_targetRoleArn; }
217 inline bool TargetRoleArnHasBeenSet() const { return m_targetRoleArnHasBeenSet; }
218 template <typename TargetRoleArnT = Aws::String>
219 void SetTargetRoleArn(TargetRoleArnT&& value) {
220 m_targetRoleArnHasBeenSet = true;
221 m_targetRoleArn = std::forward<TargetRoleArnT>(value);
222 }
223 template <typename TargetRoleArnT = Aws::String>
225 SetTargetRoleArn(std::forward<TargetRoleArnT>(value));
226 return *this;
227 }
229 private:
230 Aws::String m_clusterName;
231
232 Aws::String m_namespace;
233
234 Aws::String m_serviceAccount;
235
236 Aws::String m_roleArn;
237
238 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
239
241
242 bool m_disableSessionTags{false};
243
244 Aws::String m_targetRoleArn;
245 bool m_clusterNameHasBeenSet = false;
246 bool m_namespaceHasBeenSet = false;
247 bool m_serviceAccountHasBeenSet = false;
248 bool m_roleArnHasBeenSet = false;
249 bool m_clientRequestTokenHasBeenSet = true;
250 bool m_tagsHasBeenSet = false;
251 bool m_disableSessionTagsHasBeenSet = false;
252 bool m_targetRoleArnHasBeenSet = false;
253};
254
255} // namespace Model
256} // namespace EKS
257} // namespace Aws
CreatePodIdentityAssociationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreatePodIdentityAssociationRequest & WithClusterName(ClusterNameT &&value)
CreatePodIdentityAssociationRequest & WithNamespace(NamespaceT &&value)
CreatePodIdentityAssociationRequest & WithDisableSessionTags(bool value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_EKS_API Aws::String SerializePayload() const override
CreatePodIdentityAssociationRequest & WithRoleArn(RoleArnT &&value)
CreatePodIdentityAssociationRequest & WithServiceAccount(ServiceAccountT &&value)
CreatePodIdentityAssociationRequest & WithTags(TagsT &&value)
CreatePodIdentityAssociationRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreatePodIdentityAssociationRequest & WithTargetRoleArn(TargetRoleArnT &&value)
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