AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdatePodIdentityAssociationRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace EKS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EKS_API UpdatePodIdentityAssociationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdatePodIdentityAssociation"; }
32
33 AWS_EKS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetClusterName() const { return m_clusterName; }
41 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
42 template<typename ClusterNameT = Aws::String>
43 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
44 template<typename ClusterNameT = Aws::String>
45 UpdatePodIdentityAssociationRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
47
49
52 inline const Aws::String& GetAssociationId() const { return m_associationId; }
53 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
54 template<typename AssociationIdT = Aws::String>
55 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
56 template<typename AssociationIdT = Aws::String>
57 UpdatePodIdentityAssociationRequest& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
65 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
66 template<typename RoleArnT = Aws::String>
67 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
68 template<typename RoleArnT = Aws::String>
69 UpdatePodIdentityAssociationRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
71
73
77 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
78 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
79 template<typename ClientRequestTokenT = Aws::String>
80 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
81 template<typename ClientRequestTokenT = Aws::String>
82 UpdatePodIdentityAssociationRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
84
86
102 inline bool GetDisableSessionTags() const { return m_disableSessionTags; }
103 inline bool DisableSessionTagsHasBeenSet() const { return m_disableSessionTagsHasBeenSet; }
104 inline void SetDisableSessionTags(bool value) { m_disableSessionTagsHasBeenSet = true; m_disableSessionTags = value; }
107
109
126 inline const Aws::String& GetTargetRoleArn() const { return m_targetRoleArn; }
127 inline bool TargetRoleArnHasBeenSet() const { return m_targetRoleArnHasBeenSet; }
128 template<typename TargetRoleArnT = Aws::String>
129 void SetTargetRoleArn(TargetRoleArnT&& value) { m_targetRoleArnHasBeenSet = true; m_targetRoleArn = std::forward<TargetRoleArnT>(value); }
130 template<typename TargetRoleArnT = Aws::String>
131 UpdatePodIdentityAssociationRequest& WithTargetRoleArn(TargetRoleArnT&& value) { SetTargetRoleArn(std::forward<TargetRoleArnT>(value)); return *this;}
133 private:
134
135 Aws::String m_clusterName;
136 bool m_clusterNameHasBeenSet = false;
137
138 Aws::String m_associationId;
139 bool m_associationIdHasBeenSet = false;
140
141 Aws::String m_roleArn;
142 bool m_roleArnHasBeenSet = false;
143
144 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
145 bool m_clientRequestTokenHasBeenSet = true;
146
147 bool m_disableSessionTags{false};
148 bool m_disableSessionTagsHasBeenSet = false;
149
150 Aws::String m_targetRoleArn;
151 bool m_targetRoleArnHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace EKS
156} // 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