AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DisassociateAccessPolicyRequest.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
11#include <utility>
12
13namespace Aws {
14namespace EKS {
15namespace Model {
16
20 public:
21 AWS_EKS_API DisassociateAccessPolicyRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DisassociateAccessPolicy"; }
28
29 AWS_EKS_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetClusterName() const { return m_clusterName; }
36 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
37 template <typename ClusterNameT = Aws::String>
38 void SetClusterName(ClusterNameT&& value) {
39 m_clusterNameHasBeenSet = true;
40 m_clusterName = std::forward<ClusterNameT>(value);
41 }
42 template <typename ClusterNameT = Aws::String>
44 SetClusterName(std::forward<ClusterNameT>(value));
45 return *this;
46 }
48
50
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) {
57 m_principalArnHasBeenSet = true;
58 m_principalArn = std::forward<PrincipalArnT>(value);
59 }
60 template <typename PrincipalArnT = Aws::String>
62 SetPrincipalArn(std::forward<PrincipalArnT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
73 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
74 template <typename PolicyArnT = Aws::String>
75 void SetPolicyArn(PolicyArnT&& value) {
76 m_policyArnHasBeenSet = true;
77 m_policyArn = std::forward<PolicyArnT>(value);
78 }
79 template <typename PolicyArnT = Aws::String>
81 SetPolicyArn(std::forward<PolicyArnT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_clusterName;
87
88 Aws::String m_principalArn;
89
90 Aws::String m_policyArn;
91 bool m_clusterNameHasBeenSet = false;
92 bool m_principalArnHasBeenSet = false;
93 bool m_policyArnHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace EKS
98} // namespace Aws
AWS_EKS_API Aws::String SerializePayload() const override
DisassociateAccessPolicyRequest & WithPolicyArn(PolicyArnT &&value)
DisassociateAccessPolicyRequest & WithClusterName(ClusterNameT &&value)
DisassociateAccessPolicyRequest & WithPrincipalArn(PrincipalArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String