AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
RemovePolicyGrantRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/DataZoneRequest.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/ManagedPolicyType.h>
12#include <aws/datazone/model/PolicyGrantPrincipal.h>
13#include <aws/datazone/model/TargetEntityType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace DataZone {
19namespace Model {
20
24 public:
25 AWS_DATAZONE_API RemovePolicyGrantRequest() = 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 "RemovePolicyGrant"; }
32
33 AWS_DATAZONE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
40 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
41 template <typename DomainIdentifierT = Aws::String>
42 void SetDomainIdentifier(DomainIdentifierT&& value) {
43 m_domainIdentifierHasBeenSet = true;
44 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
45 }
46 template <typename DomainIdentifierT = Aws::String>
47 RemovePolicyGrantRequest& WithDomainIdentifier(DomainIdentifierT&& value) {
48 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
49 return *this;
50 }
52
54
57 inline TargetEntityType GetEntityType() const { return m_entityType; }
58 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
59 inline void SetEntityType(TargetEntityType value) {
60 m_entityTypeHasBeenSet = true;
61 m_entityType = value;
62 }
64 SetEntityType(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetEntityIdentifier() const { return m_entityIdentifier; }
74 inline bool EntityIdentifierHasBeenSet() const { return m_entityIdentifierHasBeenSet; }
75 template <typename EntityIdentifierT = Aws::String>
76 void SetEntityIdentifier(EntityIdentifierT&& value) {
77 m_entityIdentifierHasBeenSet = true;
78 m_entityIdentifier = std::forward<EntityIdentifierT>(value);
79 }
80 template <typename EntityIdentifierT = Aws::String>
81 RemovePolicyGrantRequest& WithEntityIdentifier(EntityIdentifierT&& value) {
82 SetEntityIdentifier(std::forward<EntityIdentifierT>(value));
83 return *this;
84 }
86
88
91 inline ManagedPolicyType GetPolicyType() const { return m_policyType; }
92 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
93 inline void SetPolicyType(ManagedPolicyType value) {
94 m_policyTypeHasBeenSet = true;
95 m_policyType = value;
96 }
98 SetPolicyType(value);
99 return *this;
100 }
102
104
107 inline const PolicyGrantPrincipal& GetPrincipal() const { return m_principal; }
108 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
109 template <typename PrincipalT = PolicyGrantPrincipal>
110 void SetPrincipal(PrincipalT&& value) {
111 m_principalHasBeenSet = true;
112 m_principal = std::forward<PrincipalT>(value);
113 }
114 template <typename PrincipalT = PolicyGrantPrincipal>
116 SetPrincipal(std::forward<PrincipalT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetGrantIdentifier() const { return m_grantIdentifier; }
126 inline bool GrantIdentifierHasBeenSet() const { return m_grantIdentifierHasBeenSet; }
127 template <typename GrantIdentifierT = Aws::String>
128 void SetGrantIdentifier(GrantIdentifierT&& value) {
129 m_grantIdentifierHasBeenSet = true;
130 m_grantIdentifier = std::forward<GrantIdentifierT>(value);
131 }
132 template <typename GrantIdentifierT = Aws::String>
134 SetGrantIdentifier(std::forward<GrantIdentifierT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::String& GetClientToken() const { return m_clientToken; }
145 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
146 template <typename ClientTokenT = Aws::String>
147 void SetClientToken(ClientTokenT&& value) {
148 m_clientTokenHasBeenSet = true;
149 m_clientToken = std::forward<ClientTokenT>(value);
150 }
151 template <typename ClientTokenT = Aws::String>
153 SetClientToken(std::forward<ClientTokenT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_domainIdentifier;
159
161
162 Aws::String m_entityIdentifier;
163
165
166 PolicyGrantPrincipal m_principal;
167
168 Aws::String m_grantIdentifier;
169
171 bool m_domainIdentifierHasBeenSet = false;
172 bool m_entityTypeHasBeenSet = false;
173 bool m_entityIdentifierHasBeenSet = false;
174 bool m_policyTypeHasBeenSet = false;
175 bool m_principalHasBeenSet = false;
176 bool m_grantIdentifierHasBeenSet = false;
177 bool m_clientTokenHasBeenSet = true;
178};
179
180} // namespace Model
181} // namespace DataZone
182} // namespace Aws
RemovePolicyGrantRequest & WithClientToken(ClientTokenT &&value)
RemovePolicyGrantRequest & WithEntityType(TargetEntityType value)
RemovePolicyGrantRequest & WithEntityIdentifier(EntityIdentifierT &&value)
RemovePolicyGrantRequest & WithPolicyType(ManagedPolicyType value)
RemovePolicyGrantRequest & WithGrantIdentifier(GrantIdentifierT &&value)
RemovePolicyGrantRequest & WithDomainIdentifier(DomainIdentifierT &&value)
const PolicyGrantPrincipal & GetPrincipal() const
AWS_DATAZONE_API RemovePolicyGrantRequest()=default
RemovePolicyGrantRequest & WithPrincipal(PrincipalT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DATAZONE_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String