AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreatePodIdentityAssociationRequest.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/AWSMap.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 CreatePodIdentityAssociationRequest() = 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 "CreatePodIdentityAssociation"; }
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 CreatePodIdentityAssociationRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
48
50
55 inline const Aws::String& GetNamespace() const { return m_namespace; }
56 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
57 template<typename NamespaceT = Aws::String>
58 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
59 template<typename NamespaceT = Aws::String>
60 CreatePodIdentityAssociationRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
62
64
68 inline const Aws::String& GetServiceAccount() const { return m_serviceAccount; }
69 inline bool ServiceAccountHasBeenSet() const { return m_serviceAccountHasBeenSet; }
70 template<typename ServiceAccountT = Aws::String>
71 void SetServiceAccount(ServiceAccountT&& value) { m_serviceAccountHasBeenSet = true; m_serviceAccount = std::forward<ServiceAccountT>(value); }
72 template<typename ServiceAccountT = Aws::String>
73 CreatePodIdentityAssociationRequest& WithServiceAccount(ServiceAccountT&& value) { SetServiceAccount(std::forward<ServiceAccountT>(value)); return *this;}
75
77
82 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
83 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
84 template<typename RoleArnT = Aws::String>
85 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
86 template<typename RoleArnT = Aws::String>
87 CreatePodIdentityAssociationRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
89
91
95 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
96 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
97 template<typename ClientRequestTokenT = Aws::String>
98 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
99 template<typename ClientRequestTokenT = Aws::String>
100 CreatePodIdentityAssociationRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
102
104
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
127 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 CreatePodIdentityAssociationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
129 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
130 CreatePodIdentityAssociationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
131 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
132 }
134
136
152 inline bool GetDisableSessionTags() const { return m_disableSessionTags; }
153 inline bool DisableSessionTagsHasBeenSet() const { return m_disableSessionTagsHasBeenSet; }
154 inline void SetDisableSessionTags(bool value) { m_disableSessionTagsHasBeenSet = true; m_disableSessionTags = value; }
157
159
176 inline const Aws::String& GetTargetRoleArn() const { return m_targetRoleArn; }
177 inline bool TargetRoleArnHasBeenSet() const { return m_targetRoleArnHasBeenSet; }
178 template<typename TargetRoleArnT = Aws::String>
179 void SetTargetRoleArn(TargetRoleArnT&& value) { m_targetRoleArnHasBeenSet = true; m_targetRoleArn = std::forward<TargetRoleArnT>(value); }
180 template<typename TargetRoleArnT = Aws::String>
181 CreatePodIdentityAssociationRequest& WithTargetRoleArn(TargetRoleArnT&& value) { SetTargetRoleArn(std::forward<TargetRoleArnT>(value)); return *this;}
183 private:
184
185 Aws::String m_clusterName;
186 bool m_clusterNameHasBeenSet = false;
187
188 Aws::String m_namespace;
189 bool m_namespaceHasBeenSet = false;
190
191 Aws::String m_serviceAccount;
192 bool m_serviceAccountHasBeenSet = false;
193
194 Aws::String m_roleArn;
195 bool m_roleArnHasBeenSet = false;
196
197 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
198 bool m_clientRequestTokenHasBeenSet = true;
199
201 bool m_tagsHasBeenSet = false;
202
203 bool m_disableSessionTags{false};
204 bool m_disableSessionTagsHasBeenSet = false;
205
206 Aws::String m_targetRoleArn;
207 bool m_targetRoleArnHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace EKS
212} // 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