AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateAccessPolicyRequest.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/eks/model/AccessScope.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EKS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EKS_API AssociateAccessPolicyRequest() = 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 "AssociateAccessPolicy"; }
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 AssociateAccessPolicyRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
47
49
53 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
54 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
55 template<typename PrincipalArnT = Aws::String>
56 void SetPrincipalArn(PrincipalArnT&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::forward<PrincipalArnT>(value); }
57 template<typename PrincipalArnT = Aws::String>
58 AssociateAccessPolicyRequest& WithPrincipalArn(PrincipalArnT&& value) { SetPrincipalArn(std::forward<PrincipalArnT>(value)); return *this;}
60
62
66 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
67 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
68 template<typename PolicyArnT = Aws::String>
69 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
70 template<typename PolicyArnT = Aws::String>
71 AssociateAccessPolicyRequest& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
73
75
79 inline const AccessScope& GetAccessScope() const { return m_accessScope; }
80 inline bool AccessScopeHasBeenSet() const { return m_accessScopeHasBeenSet; }
81 template<typename AccessScopeT = AccessScope>
82 void SetAccessScope(AccessScopeT&& value) { m_accessScopeHasBeenSet = true; m_accessScope = std::forward<AccessScopeT>(value); }
83 template<typename AccessScopeT = AccessScope>
84 AssociateAccessPolicyRequest& WithAccessScope(AccessScopeT&& value) { SetAccessScope(std::forward<AccessScopeT>(value)); return *this;}
86 private:
87
88 Aws::String m_clusterName;
89 bool m_clusterNameHasBeenSet = false;
90
91 Aws::String m_principalArn;
92 bool m_principalArnHasBeenSet = false;
93
94 Aws::String m_policyArn;
95 bool m_policyArnHasBeenSet = false;
96
97 AccessScope m_accessScope;
98 bool m_accessScopeHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace EKS
103} // 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