AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssociateAccessPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eks/EKSRequest.h>
9#include <aws/eks/EKS_EXPORTS.h>
10#include <aws/eks/model/AccessScope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EKS {
16namespace Model {
17
21 public:
22 AWS_EKS_API AssociateAccessPolicyRequest() = 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 "AssociateAccessPolicy"; }
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
55 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
56 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
57 template <typename PrincipalArnT = Aws::String>
58 void SetPrincipalArn(PrincipalArnT&& value) {
59 m_principalArnHasBeenSet = true;
60 m_principalArn = std::forward<PrincipalArnT>(value);
61 }
62 template <typename PrincipalArnT = Aws::String>
64 SetPrincipalArn(std::forward<PrincipalArnT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
75 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
76 template <typename PolicyArnT = Aws::String>
77 void SetPolicyArn(PolicyArnT&& value) {
78 m_policyArnHasBeenSet = true;
79 m_policyArn = std::forward<PolicyArnT>(value);
80 }
81 template <typename PolicyArnT = Aws::String>
83 SetPolicyArn(std::forward<PolicyArnT>(value));
84 return *this;
85 }
87
89
93 inline const AccessScope& GetAccessScope() const { return m_accessScope; }
94 inline bool AccessScopeHasBeenSet() const { return m_accessScopeHasBeenSet; }
95 template <typename AccessScopeT = AccessScope>
96 void SetAccessScope(AccessScopeT&& value) {
97 m_accessScopeHasBeenSet = true;
98 m_accessScope = std::forward<AccessScopeT>(value);
99 }
100 template <typename AccessScopeT = AccessScope>
102 SetAccessScope(std::forward<AccessScopeT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_clusterName;
108
109 Aws::String m_principalArn;
110
111 Aws::String m_policyArn;
112
113 AccessScope m_accessScope;
114 bool m_clusterNameHasBeenSet = false;
115 bool m_principalArnHasBeenSet = false;
116 bool m_policyArnHasBeenSet = false;
117 bool m_accessScopeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace EKS
122} // namespace Aws
virtual const char * GetServiceRequestName() const override
AssociateAccessPolicyRequest & WithPrincipalArn(PrincipalArnT &&value)
AWS_EKS_API Aws::String SerializePayload() const override
AssociateAccessPolicyRequest & WithAccessScope(AccessScopeT &&value)
AssociateAccessPolicyRequest & WithClusterName(ClusterNameT &&value)
AWS_EKS_API AssociateAccessPolicyRequest()=default
AssociateAccessPolicyRequest & WithPolicyArn(PolicyArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String