AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PolicyGrantDetail.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/AddToProjectMemberPoolPolicyGrantDetail.h>
9#include <aws/datazone/model/CreateAssetTypePolicyGrantDetail.h>
10#include <aws/datazone/model/CreateDomainUnitPolicyGrantDetail.h>
11#include <aws/datazone/model/CreateEnvironmentProfilePolicyGrantDetail.h>
12#include <aws/datazone/model/CreateFormTypePolicyGrantDetail.h>
13#include <aws/datazone/model/CreateGlossaryPolicyGrantDetail.h>
14#include <aws/datazone/model/CreateProjectFromProjectProfilePolicyGrantDetail.h>
15#include <aws/datazone/model/CreateProjectPolicyGrantDetail.h>
16#include <aws/datazone/model/OverrideDomainUnitOwnersPolicyGrantDetail.h>
17#include <aws/datazone/model/OverrideProjectOwnersPolicyGrantDetail.h>
18#include <aws/datazone/model/Unit.h>
19#include <aws/datazone/model/UseAssetTypePolicyGrantDetail.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace DataZone {
31namespace Model {
32
39 public:
40 AWS_DATAZONE_API PolicyGrantDetail() = default;
41 AWS_DATAZONE_API PolicyGrantDetail(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const CreateDomainUnitPolicyGrantDetail& GetCreateDomainUnit() const { return m_createDomainUnit; }
50 inline bool CreateDomainUnitHasBeenSet() const { return m_createDomainUnitHasBeenSet; }
51 template <typename CreateDomainUnitT = CreateDomainUnitPolicyGrantDetail>
52 void SetCreateDomainUnit(CreateDomainUnitT&& value) {
53 m_createDomainUnitHasBeenSet = true;
54 m_createDomainUnit = std::forward<CreateDomainUnitT>(value);
55 }
56 template <typename CreateDomainUnitT = CreateDomainUnitPolicyGrantDetail>
57 PolicyGrantDetail& WithCreateDomainUnit(CreateDomainUnitT&& value) {
58 SetCreateDomainUnit(std::forward<CreateDomainUnitT>(value));
59 return *this;
60 }
62
64
67 inline const OverrideDomainUnitOwnersPolicyGrantDetail& GetOverrideDomainUnitOwners() const { return m_overrideDomainUnitOwners; }
68 inline bool OverrideDomainUnitOwnersHasBeenSet() const { return m_overrideDomainUnitOwnersHasBeenSet; }
69 template <typename OverrideDomainUnitOwnersT = OverrideDomainUnitOwnersPolicyGrantDetail>
70 void SetOverrideDomainUnitOwners(OverrideDomainUnitOwnersT&& value) {
71 m_overrideDomainUnitOwnersHasBeenSet = true;
72 m_overrideDomainUnitOwners = std::forward<OverrideDomainUnitOwnersT>(value);
73 }
74 template <typename OverrideDomainUnitOwnersT = OverrideDomainUnitOwnersPolicyGrantDetail>
75 PolicyGrantDetail& WithOverrideDomainUnitOwners(OverrideDomainUnitOwnersT&& value) {
76 SetOverrideDomainUnitOwners(std::forward<OverrideDomainUnitOwnersT>(value));
77 return *this;
78 }
80
82
86 inline const AddToProjectMemberPoolPolicyGrantDetail& GetAddToProjectMemberPool() const { return m_addToProjectMemberPool; }
87 inline bool AddToProjectMemberPoolHasBeenSet() const { return m_addToProjectMemberPoolHasBeenSet; }
88 template <typename AddToProjectMemberPoolT = AddToProjectMemberPoolPolicyGrantDetail>
89 void SetAddToProjectMemberPool(AddToProjectMemberPoolT&& value) {
90 m_addToProjectMemberPoolHasBeenSet = true;
91 m_addToProjectMemberPool = std::forward<AddToProjectMemberPoolT>(value);
92 }
93 template <typename AddToProjectMemberPoolT = AddToProjectMemberPoolPolicyGrantDetail>
94 PolicyGrantDetail& WithAddToProjectMemberPool(AddToProjectMemberPoolT&& value) {
95 SetAddToProjectMemberPool(std::forward<AddToProjectMemberPoolT>(value));
96 return *this;
97 }
99
101
104 inline const OverrideProjectOwnersPolicyGrantDetail& GetOverrideProjectOwners() const { return m_overrideProjectOwners; }
105 inline bool OverrideProjectOwnersHasBeenSet() const { return m_overrideProjectOwnersHasBeenSet; }
106 template <typename OverrideProjectOwnersT = OverrideProjectOwnersPolicyGrantDetail>
107 void SetOverrideProjectOwners(OverrideProjectOwnersT&& value) {
108 m_overrideProjectOwnersHasBeenSet = true;
109 m_overrideProjectOwners = std::forward<OverrideProjectOwnersT>(value);
110 }
111 template <typename OverrideProjectOwnersT = OverrideProjectOwnersPolicyGrantDetail>
112 PolicyGrantDetail& WithOverrideProjectOwners(OverrideProjectOwnersT&& value) {
113 SetOverrideProjectOwners(std::forward<OverrideProjectOwnersT>(value));
114 return *this;
115 }
117
119
122 inline const CreateGlossaryPolicyGrantDetail& GetCreateGlossary() const { return m_createGlossary; }
123 inline bool CreateGlossaryHasBeenSet() const { return m_createGlossaryHasBeenSet; }
124 template <typename CreateGlossaryT = CreateGlossaryPolicyGrantDetail>
125 void SetCreateGlossary(CreateGlossaryT&& value) {
126 m_createGlossaryHasBeenSet = true;
127 m_createGlossary = std::forward<CreateGlossaryT>(value);
128 }
129 template <typename CreateGlossaryT = CreateGlossaryPolicyGrantDetail>
130 PolicyGrantDetail& WithCreateGlossary(CreateGlossaryT&& value) {
131 SetCreateGlossary(std::forward<CreateGlossaryT>(value));
132 return *this;
133 }
135
137
140 inline const CreateFormTypePolicyGrantDetail& GetCreateFormType() const { return m_createFormType; }
141 inline bool CreateFormTypeHasBeenSet() const { return m_createFormTypeHasBeenSet; }
142 template <typename CreateFormTypeT = CreateFormTypePolicyGrantDetail>
143 void SetCreateFormType(CreateFormTypeT&& value) {
144 m_createFormTypeHasBeenSet = true;
145 m_createFormType = std::forward<CreateFormTypeT>(value);
146 }
147 template <typename CreateFormTypeT = CreateFormTypePolicyGrantDetail>
148 PolicyGrantDetail& WithCreateFormType(CreateFormTypeT&& value) {
149 SetCreateFormType(std::forward<CreateFormTypeT>(value));
150 return *this;
151 }
153
155
158 inline const CreateAssetTypePolicyGrantDetail& GetCreateAssetType() const { return m_createAssetType; }
159 inline bool CreateAssetTypeHasBeenSet() const { return m_createAssetTypeHasBeenSet; }
160 template <typename CreateAssetTypeT = CreateAssetTypePolicyGrantDetail>
161 void SetCreateAssetType(CreateAssetTypeT&& value) {
162 m_createAssetTypeHasBeenSet = true;
163 m_createAssetType = std::forward<CreateAssetTypeT>(value);
164 }
165 template <typename CreateAssetTypeT = CreateAssetTypePolicyGrantDetail>
166 PolicyGrantDetail& WithCreateAssetType(CreateAssetTypeT&& value) {
167 SetCreateAssetType(std::forward<CreateAssetTypeT>(value));
168 return *this;
169 }
171
173
176 inline const CreateProjectPolicyGrantDetail& GetCreateProject() const { return m_createProject; }
177 inline bool CreateProjectHasBeenSet() const { return m_createProjectHasBeenSet; }
178 template <typename CreateProjectT = CreateProjectPolicyGrantDetail>
179 void SetCreateProject(CreateProjectT&& value) {
180 m_createProjectHasBeenSet = true;
181 m_createProject = std::forward<CreateProjectT>(value);
182 }
183 template <typename CreateProjectT = CreateProjectPolicyGrantDetail>
184 PolicyGrantDetail& WithCreateProject(CreateProjectT&& value) {
185 SetCreateProject(std::forward<CreateProjectT>(value));
186 return *this;
187 }
189
191
194 inline const CreateEnvironmentProfilePolicyGrantDetail& GetCreateEnvironmentProfile() const { return m_createEnvironmentProfile; }
195 inline bool CreateEnvironmentProfileHasBeenSet() const { return m_createEnvironmentProfileHasBeenSet; }
196 template <typename CreateEnvironmentProfileT = CreateEnvironmentProfilePolicyGrantDetail>
197 void SetCreateEnvironmentProfile(CreateEnvironmentProfileT&& value) {
198 m_createEnvironmentProfileHasBeenSet = true;
199 m_createEnvironmentProfile = std::forward<CreateEnvironmentProfileT>(value);
200 }
201 template <typename CreateEnvironmentProfileT = CreateEnvironmentProfilePolicyGrantDetail>
202 PolicyGrantDetail& WithCreateEnvironmentProfile(CreateEnvironmentProfileT&& value) {
203 SetCreateEnvironmentProfile(std::forward<CreateEnvironmentProfileT>(value));
204 return *this;
205 }
207
209
213 inline const Unit& GetDelegateCreateEnvironmentProfile() const { return m_delegateCreateEnvironmentProfile; }
214 inline bool DelegateCreateEnvironmentProfileHasBeenSet() const { return m_delegateCreateEnvironmentProfileHasBeenSet; }
215 template <typename DelegateCreateEnvironmentProfileT = Unit>
216 void SetDelegateCreateEnvironmentProfile(DelegateCreateEnvironmentProfileT&& value) {
217 m_delegateCreateEnvironmentProfileHasBeenSet = true;
218 m_delegateCreateEnvironmentProfile = std::forward<DelegateCreateEnvironmentProfileT>(value);
219 }
220 template <typename DelegateCreateEnvironmentProfileT = Unit>
221 PolicyGrantDetail& WithDelegateCreateEnvironmentProfile(DelegateCreateEnvironmentProfileT&& value) {
222 SetDelegateCreateEnvironmentProfile(std::forward<DelegateCreateEnvironmentProfileT>(value));
223 return *this;
224 }
226
228
231 inline const Unit& GetCreateEnvironment() const { return m_createEnvironment; }
232 inline bool CreateEnvironmentHasBeenSet() const { return m_createEnvironmentHasBeenSet; }
233 template <typename CreateEnvironmentT = Unit>
234 void SetCreateEnvironment(CreateEnvironmentT&& value) {
235 m_createEnvironmentHasBeenSet = true;
236 m_createEnvironment = std::forward<CreateEnvironmentT>(value);
237 }
238 template <typename CreateEnvironmentT = Unit>
239 PolicyGrantDetail& WithCreateEnvironment(CreateEnvironmentT&& value) {
240 SetCreateEnvironment(std::forward<CreateEnvironmentT>(value));
241 return *this;
242 }
244
246
247 inline const Unit& GetCreateEnvironmentFromBlueprint() const { return m_createEnvironmentFromBlueprint; }
248 inline bool CreateEnvironmentFromBlueprintHasBeenSet() const { return m_createEnvironmentFromBlueprintHasBeenSet; }
249 template <typename CreateEnvironmentFromBlueprintT = Unit>
250 void SetCreateEnvironmentFromBlueprint(CreateEnvironmentFromBlueprintT&& value) {
251 m_createEnvironmentFromBlueprintHasBeenSet = true;
252 m_createEnvironmentFromBlueprint = std::forward<CreateEnvironmentFromBlueprintT>(value);
253 }
254 template <typename CreateEnvironmentFromBlueprintT = Unit>
255 PolicyGrantDetail& WithCreateEnvironmentFromBlueprint(CreateEnvironmentFromBlueprintT&& value) {
256 SetCreateEnvironmentFromBlueprint(std::forward<CreateEnvironmentFromBlueprintT>(value));
257 return *this;
258 }
260
262
266 return m_createProjectFromProjectProfile;
267 }
268 inline bool CreateProjectFromProjectProfileHasBeenSet() const { return m_createProjectFromProjectProfileHasBeenSet; }
269 template <typename CreateProjectFromProjectProfileT = CreateProjectFromProjectProfilePolicyGrantDetail>
270 void SetCreateProjectFromProjectProfile(CreateProjectFromProjectProfileT&& value) {
271 m_createProjectFromProjectProfileHasBeenSet = true;
272 m_createProjectFromProjectProfile = std::forward<CreateProjectFromProjectProfileT>(value);
273 }
274 template <typename CreateProjectFromProjectProfileT = CreateProjectFromProjectProfilePolicyGrantDetail>
275 PolicyGrantDetail& WithCreateProjectFromProjectProfile(CreateProjectFromProjectProfileT&& value) {
276 SetCreateProjectFromProjectProfile(std::forward<CreateProjectFromProjectProfileT>(value));
277 return *this;
278 }
280
282
286 inline const UseAssetTypePolicyGrantDetail& GetUseAssetType() const { return m_useAssetType; }
287 inline bool UseAssetTypeHasBeenSet() const { return m_useAssetTypeHasBeenSet; }
288 template <typename UseAssetTypeT = UseAssetTypePolicyGrantDetail>
289 void SetUseAssetType(UseAssetTypeT&& value) {
290 m_useAssetTypeHasBeenSet = true;
291 m_useAssetType = std::forward<UseAssetTypeT>(value);
292 }
293 template <typename UseAssetTypeT = UseAssetTypePolicyGrantDetail>
294 PolicyGrantDetail& WithUseAssetType(UseAssetTypeT&& value) {
295 SetUseAssetType(std::forward<UseAssetTypeT>(value));
296 return *this;
297 }
299 private:
300 CreateDomainUnitPolicyGrantDetail m_createDomainUnit;
301
302 OverrideDomainUnitOwnersPolicyGrantDetail m_overrideDomainUnitOwners;
303
304 AddToProjectMemberPoolPolicyGrantDetail m_addToProjectMemberPool;
305
306 OverrideProjectOwnersPolicyGrantDetail m_overrideProjectOwners;
307
308 CreateGlossaryPolicyGrantDetail m_createGlossary;
309
310 CreateFormTypePolicyGrantDetail m_createFormType;
311
312 CreateAssetTypePolicyGrantDetail m_createAssetType;
313
314 CreateProjectPolicyGrantDetail m_createProject;
315
316 CreateEnvironmentProfilePolicyGrantDetail m_createEnvironmentProfile;
317
318 Unit m_delegateCreateEnvironmentProfile;
319
320 Unit m_createEnvironment;
321
322 Unit m_createEnvironmentFromBlueprint;
323
324 CreateProjectFromProjectProfilePolicyGrantDetail m_createProjectFromProjectProfile;
325
326 UseAssetTypePolicyGrantDetail m_useAssetType;
327 bool m_createDomainUnitHasBeenSet = false;
328 bool m_overrideDomainUnitOwnersHasBeenSet = false;
329 bool m_addToProjectMemberPoolHasBeenSet = false;
330 bool m_overrideProjectOwnersHasBeenSet = false;
331 bool m_createGlossaryHasBeenSet = false;
332 bool m_createFormTypeHasBeenSet = false;
333 bool m_createAssetTypeHasBeenSet = false;
334 bool m_createProjectHasBeenSet = false;
335 bool m_createEnvironmentProfileHasBeenSet = false;
336 bool m_delegateCreateEnvironmentProfileHasBeenSet = false;
337 bool m_createEnvironmentHasBeenSet = false;
338 bool m_createEnvironmentFromBlueprintHasBeenSet = false;
339 bool m_createProjectFromProjectProfileHasBeenSet = false;
340 bool m_useAssetTypeHasBeenSet = false;
341};
342
343} // namespace Model
344} // namespace DataZone
345} // namespace Aws
PolicyGrantDetail & WithCreateEnvironment(CreateEnvironmentT &&value)
const UseAssetTypePolicyGrantDetail & GetUseAssetType() const
PolicyGrantDetail & WithDelegateCreateEnvironmentProfile(DelegateCreateEnvironmentProfileT &&value)
PolicyGrantDetail & WithCreateProject(CreateProjectT &&value)
PolicyGrantDetail & WithUseAssetType(UseAssetTypeT &&value)
const AddToProjectMemberPoolPolicyGrantDetail & GetAddToProjectMemberPool() const
PolicyGrantDetail & WithCreateDomainUnit(CreateDomainUnitT &&value)
PolicyGrantDetail & WithAddToProjectMemberPool(AddToProjectMemberPoolT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const CreateFormTypePolicyGrantDetail & GetCreateFormType() const
PolicyGrantDetail & WithCreateEnvironmentProfile(CreateEnvironmentProfileT &&value)
void SetCreateProjectFromProjectProfile(CreateProjectFromProjectProfileT &&value)
void SetDelegateCreateEnvironmentProfile(DelegateCreateEnvironmentProfileT &&value)
void SetCreateEnvironmentFromBlueprint(CreateEnvironmentFromBlueprintT &&value)
const CreateAssetTypePolicyGrantDetail & GetCreateAssetType() const
void SetCreateFormType(CreateFormTypeT &&value)
AWS_DATAZONE_API PolicyGrantDetail()=default
const CreateGlossaryPolicyGrantDetail & GetCreateGlossary() const
void SetAddToProjectMemberPool(AddToProjectMemberPoolT &&value)
void SetOverrideDomainUnitOwners(OverrideDomainUnitOwnersT &&value)
const Unit & GetDelegateCreateEnvironmentProfile() const
const CreateProjectFromProjectProfilePolicyGrantDetail & GetCreateProjectFromProjectProfile() const
AWS_DATAZONE_API PolicyGrantDetail(Aws::Utils::Json::JsonView jsonValue)
PolicyGrantDetail & WithCreateEnvironmentFromBlueprint(CreateEnvironmentFromBlueprintT &&value)
const OverrideDomainUnitOwnersPolicyGrantDetail & GetOverrideDomainUnitOwners() const
const CreateDomainUnitPolicyGrantDetail & GetCreateDomainUnit() const
const OverrideProjectOwnersPolicyGrantDetail & GetOverrideProjectOwners() const
void SetCreateDomainUnit(CreateDomainUnitT &&value)
void SetUseAssetType(UseAssetTypeT &&value)
PolicyGrantDetail & WithCreateFormType(CreateFormTypeT &&value)
PolicyGrantDetail & WithCreateAssetType(CreateAssetTypeT &&value)
PolicyGrantDetail & WithCreateGlossary(CreateGlossaryT &&value)
void SetCreateAssetType(CreateAssetTypeT &&value)
void SetCreateGlossary(CreateGlossaryT &&value)
const CreateProjectPolicyGrantDetail & GetCreateProject() const
PolicyGrantDetail & WithCreateProjectFromProjectProfile(CreateProjectFromProjectProfileT &&value)
PolicyGrantDetail & WithOverrideDomainUnitOwners(OverrideDomainUnitOwnersT &&value)
void SetCreateEnvironment(CreateEnvironmentT &&value)
void SetCreateEnvironmentProfile(CreateEnvironmentProfileT &&value)
const CreateEnvironmentProfilePolicyGrantDetail & GetCreateEnvironmentProfile() const
void SetCreateProject(CreateProjectT &&value)
void SetOverrideProjectOwners(OverrideProjectOwnersT &&value)
AWS_DATAZONE_API PolicyGrantDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyGrantDetail & WithOverrideProjectOwners(OverrideProjectOwnersT &&value)
const Unit & GetCreateEnvironmentFromBlueprint() const
Aws::Utils::Json::JsonValue JsonValue