AWS SDK for C++

AWS SDK for C++ Version 1.11.695

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
50 inline const AddToProjectMemberPoolPolicyGrantDetail& GetAddToProjectMemberPool() const { return m_addToProjectMemberPool; }
51 inline bool AddToProjectMemberPoolHasBeenSet() const { return m_addToProjectMemberPoolHasBeenSet; }
52 template <typename AddToProjectMemberPoolT = AddToProjectMemberPoolPolicyGrantDetail>
53 void SetAddToProjectMemberPool(AddToProjectMemberPoolT&& value) {
54 m_addToProjectMemberPoolHasBeenSet = true;
55 m_addToProjectMemberPool = std::forward<AddToProjectMemberPoolT>(value);
56 }
57 template <typename AddToProjectMemberPoolT = AddToProjectMemberPoolPolicyGrantDetail>
58 PolicyGrantDetail& WithAddToProjectMemberPool(AddToProjectMemberPoolT&& value) {
59 SetAddToProjectMemberPool(std::forward<AddToProjectMemberPoolT>(value));
60 return *this;
61 }
63
65
68 inline const CreateAssetTypePolicyGrantDetail& GetCreateAssetType() const { return m_createAssetType; }
69 inline bool CreateAssetTypeHasBeenSet() const { return m_createAssetTypeHasBeenSet; }
70 template <typename CreateAssetTypeT = CreateAssetTypePolicyGrantDetail>
71 void SetCreateAssetType(CreateAssetTypeT&& value) {
72 m_createAssetTypeHasBeenSet = true;
73 m_createAssetType = std::forward<CreateAssetTypeT>(value);
74 }
75 template <typename CreateAssetTypeT = CreateAssetTypePolicyGrantDetail>
76 PolicyGrantDetail& WithCreateAssetType(CreateAssetTypeT&& value) {
77 SetCreateAssetType(std::forward<CreateAssetTypeT>(value));
78 return *this;
79 }
81
83
86 inline const CreateDomainUnitPolicyGrantDetail& GetCreateDomainUnit() const { return m_createDomainUnit; }
87 inline bool CreateDomainUnitHasBeenSet() const { return m_createDomainUnitHasBeenSet; }
88 template <typename CreateDomainUnitT = CreateDomainUnitPolicyGrantDetail>
89 void SetCreateDomainUnit(CreateDomainUnitT&& value) {
90 m_createDomainUnitHasBeenSet = true;
91 m_createDomainUnit = std::forward<CreateDomainUnitT>(value);
92 }
93 template <typename CreateDomainUnitT = CreateDomainUnitPolicyGrantDetail>
94 PolicyGrantDetail& WithCreateDomainUnit(CreateDomainUnitT&& value) {
95 SetCreateDomainUnit(std::forward<CreateDomainUnitT>(value));
96 return *this;
97 }
99
101
104 inline const Unit& GetCreateEnvironment() const { return m_createEnvironment; }
105 inline bool CreateEnvironmentHasBeenSet() const { return m_createEnvironmentHasBeenSet; }
106 template <typename CreateEnvironmentT = Unit>
107 void SetCreateEnvironment(CreateEnvironmentT&& value) {
108 m_createEnvironmentHasBeenSet = true;
109 m_createEnvironment = std::forward<CreateEnvironmentT>(value);
110 }
111 template <typename CreateEnvironmentT = Unit>
112 PolicyGrantDetail& WithCreateEnvironment(CreateEnvironmentT&& value) {
113 SetCreateEnvironment(std::forward<CreateEnvironmentT>(value));
114 return *this;
115 }
117
119
120 inline const Unit& GetCreateEnvironmentFromBlueprint() const { return m_createEnvironmentFromBlueprint; }
121 inline bool CreateEnvironmentFromBlueprintHasBeenSet() const { return m_createEnvironmentFromBlueprintHasBeenSet; }
122 template <typename CreateEnvironmentFromBlueprintT = Unit>
123 void SetCreateEnvironmentFromBlueprint(CreateEnvironmentFromBlueprintT&& value) {
124 m_createEnvironmentFromBlueprintHasBeenSet = true;
125 m_createEnvironmentFromBlueprint = std::forward<CreateEnvironmentFromBlueprintT>(value);
126 }
127 template <typename CreateEnvironmentFromBlueprintT = Unit>
128 PolicyGrantDetail& WithCreateEnvironmentFromBlueprint(CreateEnvironmentFromBlueprintT&& value) {
129 SetCreateEnvironmentFromBlueprint(std::forward<CreateEnvironmentFromBlueprintT>(value));
130 return *this;
131 }
133
135
138 inline const CreateEnvironmentProfilePolicyGrantDetail& GetCreateEnvironmentProfile() const { return m_createEnvironmentProfile; }
139 inline bool CreateEnvironmentProfileHasBeenSet() const { return m_createEnvironmentProfileHasBeenSet; }
140 template <typename CreateEnvironmentProfileT = CreateEnvironmentProfilePolicyGrantDetail>
141 void SetCreateEnvironmentProfile(CreateEnvironmentProfileT&& value) {
142 m_createEnvironmentProfileHasBeenSet = true;
143 m_createEnvironmentProfile = std::forward<CreateEnvironmentProfileT>(value);
144 }
145 template <typename CreateEnvironmentProfileT = CreateEnvironmentProfilePolicyGrantDetail>
146 PolicyGrantDetail& WithCreateEnvironmentProfile(CreateEnvironmentProfileT&& value) {
147 SetCreateEnvironmentProfile(std::forward<CreateEnvironmentProfileT>(value));
148 return *this;
149 }
151
153
156 inline const CreateFormTypePolicyGrantDetail& GetCreateFormType() const { return m_createFormType; }
157 inline bool CreateFormTypeHasBeenSet() const { return m_createFormTypeHasBeenSet; }
158 template <typename CreateFormTypeT = CreateFormTypePolicyGrantDetail>
159 void SetCreateFormType(CreateFormTypeT&& value) {
160 m_createFormTypeHasBeenSet = true;
161 m_createFormType = std::forward<CreateFormTypeT>(value);
162 }
163 template <typename CreateFormTypeT = CreateFormTypePolicyGrantDetail>
164 PolicyGrantDetail& WithCreateFormType(CreateFormTypeT&& value) {
165 SetCreateFormType(std::forward<CreateFormTypeT>(value));
166 return *this;
167 }
169
171
174 inline const CreateGlossaryPolicyGrantDetail& GetCreateGlossary() const { return m_createGlossary; }
175 inline bool CreateGlossaryHasBeenSet() const { return m_createGlossaryHasBeenSet; }
176 template <typename CreateGlossaryT = CreateGlossaryPolicyGrantDetail>
177 void SetCreateGlossary(CreateGlossaryT&& value) {
178 m_createGlossaryHasBeenSet = true;
179 m_createGlossary = std::forward<CreateGlossaryT>(value);
180 }
181 template <typename CreateGlossaryT = CreateGlossaryPolicyGrantDetail>
182 PolicyGrantDetail& WithCreateGlossary(CreateGlossaryT&& value) {
183 SetCreateGlossary(std::forward<CreateGlossaryT>(value));
184 return *this;
185 }
187
189
192 inline const CreateProjectPolicyGrantDetail& GetCreateProject() const { return m_createProject; }
193 inline bool CreateProjectHasBeenSet() const { return m_createProjectHasBeenSet; }
194 template <typename CreateProjectT = CreateProjectPolicyGrantDetail>
195 void SetCreateProject(CreateProjectT&& value) {
196 m_createProjectHasBeenSet = true;
197 m_createProject = std::forward<CreateProjectT>(value);
198 }
199 template <typename CreateProjectT = CreateProjectPolicyGrantDetail>
200 PolicyGrantDetail& WithCreateProject(CreateProjectT&& value) {
201 SetCreateProject(std::forward<CreateProjectT>(value));
202 return *this;
203 }
205
207
211 return m_createProjectFromProjectProfile;
212 }
213 inline bool CreateProjectFromProjectProfileHasBeenSet() const { return m_createProjectFromProjectProfileHasBeenSet; }
214 template <typename CreateProjectFromProjectProfileT = CreateProjectFromProjectProfilePolicyGrantDetail>
215 void SetCreateProjectFromProjectProfile(CreateProjectFromProjectProfileT&& value) {
216 m_createProjectFromProjectProfileHasBeenSet = true;
217 m_createProjectFromProjectProfile = std::forward<CreateProjectFromProjectProfileT>(value);
218 }
219 template <typename CreateProjectFromProjectProfileT = CreateProjectFromProjectProfilePolicyGrantDetail>
220 PolicyGrantDetail& WithCreateProjectFromProjectProfile(CreateProjectFromProjectProfileT&& value) {
221 SetCreateProjectFromProjectProfile(std::forward<CreateProjectFromProjectProfileT>(value));
222 return *this;
223 }
225
227
231 inline const Unit& GetDelegateCreateEnvironmentProfile() const { return m_delegateCreateEnvironmentProfile; }
232 inline bool DelegateCreateEnvironmentProfileHasBeenSet() const { return m_delegateCreateEnvironmentProfileHasBeenSet; }
233 template <typename DelegateCreateEnvironmentProfileT = Unit>
234 void SetDelegateCreateEnvironmentProfile(DelegateCreateEnvironmentProfileT&& value) {
235 m_delegateCreateEnvironmentProfileHasBeenSet = true;
236 m_delegateCreateEnvironmentProfile = std::forward<DelegateCreateEnvironmentProfileT>(value);
237 }
238 template <typename DelegateCreateEnvironmentProfileT = Unit>
239 PolicyGrantDetail& WithDelegateCreateEnvironmentProfile(DelegateCreateEnvironmentProfileT&& value) {
240 SetDelegateCreateEnvironmentProfile(std::forward<DelegateCreateEnvironmentProfileT>(value));
241 return *this;
242 }
244
246
249 inline const OverrideDomainUnitOwnersPolicyGrantDetail& GetOverrideDomainUnitOwners() const { return m_overrideDomainUnitOwners; }
250 inline bool OverrideDomainUnitOwnersHasBeenSet() const { return m_overrideDomainUnitOwnersHasBeenSet; }
251 template <typename OverrideDomainUnitOwnersT = OverrideDomainUnitOwnersPolicyGrantDetail>
252 void SetOverrideDomainUnitOwners(OverrideDomainUnitOwnersT&& value) {
253 m_overrideDomainUnitOwnersHasBeenSet = true;
254 m_overrideDomainUnitOwners = std::forward<OverrideDomainUnitOwnersT>(value);
255 }
256 template <typename OverrideDomainUnitOwnersT = OverrideDomainUnitOwnersPolicyGrantDetail>
257 PolicyGrantDetail& WithOverrideDomainUnitOwners(OverrideDomainUnitOwnersT&& value) {
258 SetOverrideDomainUnitOwners(std::forward<OverrideDomainUnitOwnersT>(value));
259 return *this;
260 }
262
264
267 inline const OverrideProjectOwnersPolicyGrantDetail& GetOverrideProjectOwners() const { return m_overrideProjectOwners; }
268 inline bool OverrideProjectOwnersHasBeenSet() const { return m_overrideProjectOwnersHasBeenSet; }
269 template <typename OverrideProjectOwnersT = OverrideProjectOwnersPolicyGrantDetail>
270 void SetOverrideProjectOwners(OverrideProjectOwnersT&& value) {
271 m_overrideProjectOwnersHasBeenSet = true;
272 m_overrideProjectOwners = std::forward<OverrideProjectOwnersT>(value);
273 }
274 template <typename OverrideProjectOwnersT = OverrideProjectOwnersPolicyGrantDetail>
275 PolicyGrantDetail& WithOverrideProjectOwners(OverrideProjectOwnersT&& value) {
276 SetOverrideProjectOwners(std::forward<OverrideProjectOwnersT>(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 AddToProjectMemberPoolPolicyGrantDetail m_addToProjectMemberPool;
301 bool m_addToProjectMemberPoolHasBeenSet = false;
302
303 CreateAssetTypePolicyGrantDetail m_createAssetType;
304 bool m_createAssetTypeHasBeenSet = false;
305
306 CreateDomainUnitPolicyGrantDetail m_createDomainUnit;
307 bool m_createDomainUnitHasBeenSet = false;
308
309 Unit m_createEnvironment;
310 bool m_createEnvironmentHasBeenSet = false;
311
312 Unit m_createEnvironmentFromBlueprint;
313 bool m_createEnvironmentFromBlueprintHasBeenSet = false;
314
315 CreateEnvironmentProfilePolicyGrantDetail m_createEnvironmentProfile;
316 bool m_createEnvironmentProfileHasBeenSet = false;
317
318 CreateFormTypePolicyGrantDetail m_createFormType;
319 bool m_createFormTypeHasBeenSet = false;
320
321 CreateGlossaryPolicyGrantDetail m_createGlossary;
322 bool m_createGlossaryHasBeenSet = false;
323
324 CreateProjectPolicyGrantDetail m_createProject;
325 bool m_createProjectHasBeenSet = false;
326
327 CreateProjectFromProjectProfilePolicyGrantDetail m_createProjectFromProjectProfile;
328 bool m_createProjectFromProjectProfileHasBeenSet = false;
329
330 Unit m_delegateCreateEnvironmentProfile;
331 bool m_delegateCreateEnvironmentProfileHasBeenSet = false;
332
333 OverrideDomainUnitOwnersPolicyGrantDetail m_overrideDomainUnitOwners;
334 bool m_overrideDomainUnitOwnersHasBeenSet = false;
335
336 OverrideProjectOwnersPolicyGrantDetail m_overrideProjectOwners;
337 bool m_overrideProjectOwnersHasBeenSet = false;
338
339 UseAssetTypePolicyGrantDetail m_useAssetType;
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