AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdatePodIdentityAssociationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/EKSRequest.h>
10#include <aws/eks/EKS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EKS {
16namespace Model {
17
21 public:
22 AWS_EKS_API UpdatePodIdentityAssociationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdatePodIdentityAssociation"; }
29
30 AWS_EKS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetClusterName() const { return m_clusterName; }
37 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
38 template <typename ClusterNameT = Aws::String>
39 void SetClusterName(ClusterNameT&& value) {
40 m_clusterNameHasBeenSet = true;
41 m_clusterName = std::forward<ClusterNameT>(value);
42 }
43 template <typename ClusterNameT = Aws::String>
45 SetClusterName(std::forward<ClusterNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetAssociationId() const { return m_associationId; }
55 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
56 template <typename AssociationIdT = Aws::String>
57 void SetAssociationId(AssociationIdT&& value) {
58 m_associationIdHasBeenSet = true;
59 m_associationId = std::forward<AssociationIdT>(value);
60 }
61 template <typename AssociationIdT = Aws::String>
63 SetAssociationId(std::forward<AssociationIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
73 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
74 template <typename RoleArnT = Aws::String>
75 void SetRoleArn(RoleArnT&& value) {
76 m_roleArnHasBeenSet = true;
77 m_roleArn = std::forward<RoleArnT>(value);
78 }
79 template <typename RoleArnT = Aws::String>
81 SetRoleArn(std::forward<RoleArnT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
92 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
93 template <typename ClientRequestTokenT = Aws::String>
94 void SetClientRequestToken(ClientRequestTokenT&& value) {
95 m_clientRequestTokenHasBeenSet = true;
96 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
97 }
98 template <typename ClientRequestTokenT = Aws::String>
100 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
101 return *this;
102 }
104
106
122 inline bool GetDisableSessionTags() const { return m_disableSessionTags; }
123 inline bool DisableSessionTagsHasBeenSet() const { return m_disableSessionTagsHasBeenSet; }
124 inline void SetDisableSessionTags(bool value) {
125 m_disableSessionTagsHasBeenSet = true;
126 m_disableSessionTags = value;
127 }
130 return *this;
131 }
133
135
152 inline const Aws::String& GetTargetRoleArn() const { return m_targetRoleArn; }
153 inline bool TargetRoleArnHasBeenSet() const { return m_targetRoleArnHasBeenSet; }
154 template <typename TargetRoleArnT = Aws::String>
155 void SetTargetRoleArn(TargetRoleArnT&& value) {
156 m_targetRoleArnHasBeenSet = true;
157 m_targetRoleArn = std::forward<TargetRoleArnT>(value);
158 }
159 template <typename TargetRoleArnT = Aws::String>
161 SetTargetRoleArn(std::forward<TargetRoleArnT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_clusterName;
167
168 Aws::String m_associationId;
169
170 Aws::String m_roleArn;
171
172 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
173
174 bool m_disableSessionTags{false};
175
176 Aws::String m_targetRoleArn;
177 bool m_clusterNameHasBeenSet = false;
178 bool m_associationIdHasBeenSet = false;
179 bool m_roleArnHasBeenSet = false;
180 bool m_clientRequestTokenHasBeenSet = true;
181 bool m_disableSessionTagsHasBeenSet = false;
182 bool m_targetRoleArnHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace EKS
187} // namespace Aws
AWS_EKS_API Aws::String SerializePayload() const override
UpdatePodIdentityAssociationRequest & WithClusterName(ClusterNameT &&value)
UpdatePodIdentityAssociationRequest & WithAssociationId(AssociationIdT &&value)
UpdatePodIdentityAssociationRequest & WithClientRequestToken(ClientRequestTokenT &&value)
UpdatePodIdentityAssociationRequest & WithDisableSessionTags(bool value)
UpdatePodIdentityAssociationRequest & WithRoleArn(RoleArnT &&value)
UpdatePodIdentityAssociationRequest & WithTargetRoleArn(TargetRoleArnT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String