AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/Unit.h>
12#include <aws/datazone/model/CreateEnvironmentProfilePolicyGrantDetail.h>
13#include <aws/datazone/model/CreateFormTypePolicyGrantDetail.h>
14#include <aws/datazone/model/CreateGlossaryPolicyGrantDetail.h>
15#include <aws/datazone/model/CreateProjectPolicyGrantDetail.h>
16#include <aws/datazone/model/CreateProjectFromProjectProfilePolicyGrantDetail.h>
17#include <aws/datazone/model/OverrideDomainUnitOwnersPolicyGrantDetail.h>
18#include <aws/datazone/model/OverrideProjectOwnersPolicyGrantDetail.h>
19#include <aws/datazone/model/UseAssetTypePolicyGrantDetail.h>
20#include <utility>
21
22namespace Aws
23{
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29 class JsonView;
30} // namespace Json
31} // namespace Utils
32namespace DataZone
33{
34namespace Model
35{
36
43 {
44 public:
45 AWS_DATAZONE_API PolicyGrantDetail() = default;
46 AWS_DATAZONE_API PolicyGrantDetail(Aws::Utils::Json::JsonView jsonValue);
48 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const AddToProjectMemberPoolPolicyGrantDetail& GetAddToProjectMemberPool() const { return m_addToProjectMemberPool; }
57 inline bool AddToProjectMemberPoolHasBeenSet() const { return m_addToProjectMemberPoolHasBeenSet; }
58 template<typename AddToProjectMemberPoolT = AddToProjectMemberPoolPolicyGrantDetail>
59 void SetAddToProjectMemberPool(AddToProjectMemberPoolT&& value) { m_addToProjectMemberPoolHasBeenSet = true; m_addToProjectMemberPool = std::forward<AddToProjectMemberPoolT>(value); }
60 template<typename AddToProjectMemberPoolT = AddToProjectMemberPoolPolicyGrantDetail>
61 PolicyGrantDetail& WithAddToProjectMemberPool(AddToProjectMemberPoolT&& value) { SetAddToProjectMemberPool(std::forward<AddToProjectMemberPoolT>(value)); return *this;}
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) { m_createAssetTypeHasBeenSet = true; m_createAssetType = std::forward<CreateAssetTypeT>(value); }
72 template<typename CreateAssetTypeT = CreateAssetTypePolicyGrantDetail>
73 PolicyGrantDetail& WithCreateAssetType(CreateAssetTypeT&& value) { SetCreateAssetType(std::forward<CreateAssetTypeT>(value)); return *this;}
75
77
80 inline const CreateDomainUnitPolicyGrantDetail& GetCreateDomainUnit() const { return m_createDomainUnit; }
81 inline bool CreateDomainUnitHasBeenSet() const { return m_createDomainUnitHasBeenSet; }
82 template<typename CreateDomainUnitT = CreateDomainUnitPolicyGrantDetail>
83 void SetCreateDomainUnit(CreateDomainUnitT&& value) { m_createDomainUnitHasBeenSet = true; m_createDomainUnit = std::forward<CreateDomainUnitT>(value); }
84 template<typename CreateDomainUnitT = CreateDomainUnitPolicyGrantDetail>
85 PolicyGrantDetail& WithCreateDomainUnit(CreateDomainUnitT&& value) { SetCreateDomainUnit(std::forward<CreateDomainUnitT>(value)); return *this;}
87
89
92 inline const Unit& GetCreateEnvironment() const { return m_createEnvironment; }
93 inline bool CreateEnvironmentHasBeenSet() const { return m_createEnvironmentHasBeenSet; }
94 template<typename CreateEnvironmentT = Unit>
95 void SetCreateEnvironment(CreateEnvironmentT&& value) { m_createEnvironmentHasBeenSet = true; m_createEnvironment = std::forward<CreateEnvironmentT>(value); }
96 template<typename CreateEnvironmentT = Unit>
97 PolicyGrantDetail& WithCreateEnvironment(CreateEnvironmentT&& value) { SetCreateEnvironment(std::forward<CreateEnvironmentT>(value)); return *this;}
99
101
102 inline const Unit& GetCreateEnvironmentFromBlueprint() const { return m_createEnvironmentFromBlueprint; }
103 inline bool CreateEnvironmentFromBlueprintHasBeenSet() const { return m_createEnvironmentFromBlueprintHasBeenSet; }
104 template<typename CreateEnvironmentFromBlueprintT = Unit>
105 void SetCreateEnvironmentFromBlueprint(CreateEnvironmentFromBlueprintT&& value) { m_createEnvironmentFromBlueprintHasBeenSet = true; m_createEnvironmentFromBlueprint = std::forward<CreateEnvironmentFromBlueprintT>(value); }
106 template<typename CreateEnvironmentFromBlueprintT = Unit>
107 PolicyGrantDetail& WithCreateEnvironmentFromBlueprint(CreateEnvironmentFromBlueprintT&& value) { SetCreateEnvironmentFromBlueprint(std::forward<CreateEnvironmentFromBlueprintT>(value)); return *this;}
109
111
114 inline const CreateEnvironmentProfilePolicyGrantDetail& GetCreateEnvironmentProfile() const { return m_createEnvironmentProfile; }
115 inline bool CreateEnvironmentProfileHasBeenSet() const { return m_createEnvironmentProfileHasBeenSet; }
116 template<typename CreateEnvironmentProfileT = CreateEnvironmentProfilePolicyGrantDetail>
117 void SetCreateEnvironmentProfile(CreateEnvironmentProfileT&& value) { m_createEnvironmentProfileHasBeenSet = true; m_createEnvironmentProfile = std::forward<CreateEnvironmentProfileT>(value); }
118 template<typename CreateEnvironmentProfileT = CreateEnvironmentProfilePolicyGrantDetail>
119 PolicyGrantDetail& WithCreateEnvironmentProfile(CreateEnvironmentProfileT&& value) { SetCreateEnvironmentProfile(std::forward<CreateEnvironmentProfileT>(value)); return *this;}
121
123
126 inline const CreateFormTypePolicyGrantDetail& GetCreateFormType() const { return m_createFormType; }
127 inline bool CreateFormTypeHasBeenSet() const { return m_createFormTypeHasBeenSet; }
128 template<typename CreateFormTypeT = CreateFormTypePolicyGrantDetail>
129 void SetCreateFormType(CreateFormTypeT&& value) { m_createFormTypeHasBeenSet = true; m_createFormType = std::forward<CreateFormTypeT>(value); }
130 template<typename CreateFormTypeT = CreateFormTypePolicyGrantDetail>
131 PolicyGrantDetail& WithCreateFormType(CreateFormTypeT&& value) { SetCreateFormType(std::forward<CreateFormTypeT>(value)); return *this;}
133
135
138 inline const CreateGlossaryPolicyGrantDetail& GetCreateGlossary() const { return m_createGlossary; }
139 inline bool CreateGlossaryHasBeenSet() const { return m_createGlossaryHasBeenSet; }
140 template<typename CreateGlossaryT = CreateGlossaryPolicyGrantDetail>
141 void SetCreateGlossary(CreateGlossaryT&& value) { m_createGlossaryHasBeenSet = true; m_createGlossary = std::forward<CreateGlossaryT>(value); }
142 template<typename CreateGlossaryT = CreateGlossaryPolicyGrantDetail>
143 PolicyGrantDetail& WithCreateGlossary(CreateGlossaryT&& value) { SetCreateGlossary(std::forward<CreateGlossaryT>(value)); return *this;}
145
147
150 inline const CreateProjectPolicyGrantDetail& GetCreateProject() const { return m_createProject; }
151 inline bool CreateProjectHasBeenSet() const { return m_createProjectHasBeenSet; }
152 template<typename CreateProjectT = CreateProjectPolicyGrantDetail>
153 void SetCreateProject(CreateProjectT&& value) { m_createProjectHasBeenSet = true; m_createProject = std::forward<CreateProjectT>(value); }
154 template<typename CreateProjectT = CreateProjectPolicyGrantDetail>
155 PolicyGrantDetail& WithCreateProject(CreateProjectT&& value) { SetCreateProject(std::forward<CreateProjectT>(value)); return *this;}
157
159
162 inline const CreateProjectFromProjectProfilePolicyGrantDetail& GetCreateProjectFromProjectProfile() const { return m_createProjectFromProjectProfile; }
163 inline bool CreateProjectFromProjectProfileHasBeenSet() const { return m_createProjectFromProjectProfileHasBeenSet; }
164 template<typename CreateProjectFromProjectProfileT = CreateProjectFromProjectProfilePolicyGrantDetail>
165 void SetCreateProjectFromProjectProfile(CreateProjectFromProjectProfileT&& value) { m_createProjectFromProjectProfileHasBeenSet = true; m_createProjectFromProjectProfile = std::forward<CreateProjectFromProjectProfileT>(value); }
166 template<typename CreateProjectFromProjectProfileT = CreateProjectFromProjectProfilePolicyGrantDetail>
167 PolicyGrantDetail& WithCreateProjectFromProjectProfile(CreateProjectFromProjectProfileT&& value) { SetCreateProjectFromProjectProfile(std::forward<CreateProjectFromProjectProfileT>(value)); return *this;}
169
171
175 inline const Unit& GetDelegateCreateEnvironmentProfile() const { return m_delegateCreateEnvironmentProfile; }
176 inline bool DelegateCreateEnvironmentProfileHasBeenSet() const { return m_delegateCreateEnvironmentProfileHasBeenSet; }
177 template<typename DelegateCreateEnvironmentProfileT = Unit>
178 void SetDelegateCreateEnvironmentProfile(DelegateCreateEnvironmentProfileT&& value) { m_delegateCreateEnvironmentProfileHasBeenSet = true; m_delegateCreateEnvironmentProfile = std::forward<DelegateCreateEnvironmentProfileT>(value); }
179 template<typename DelegateCreateEnvironmentProfileT = Unit>
180 PolicyGrantDetail& WithDelegateCreateEnvironmentProfile(DelegateCreateEnvironmentProfileT&& value) { SetDelegateCreateEnvironmentProfile(std::forward<DelegateCreateEnvironmentProfileT>(value)); return *this;}
182
184
187 inline const OverrideDomainUnitOwnersPolicyGrantDetail& GetOverrideDomainUnitOwners() const { return m_overrideDomainUnitOwners; }
188 inline bool OverrideDomainUnitOwnersHasBeenSet() const { return m_overrideDomainUnitOwnersHasBeenSet; }
189 template<typename OverrideDomainUnitOwnersT = OverrideDomainUnitOwnersPolicyGrantDetail>
190 void SetOverrideDomainUnitOwners(OverrideDomainUnitOwnersT&& value) { m_overrideDomainUnitOwnersHasBeenSet = true; m_overrideDomainUnitOwners = std::forward<OverrideDomainUnitOwnersT>(value); }
191 template<typename OverrideDomainUnitOwnersT = OverrideDomainUnitOwnersPolicyGrantDetail>
192 PolicyGrantDetail& WithOverrideDomainUnitOwners(OverrideDomainUnitOwnersT&& value) { SetOverrideDomainUnitOwners(std::forward<OverrideDomainUnitOwnersT>(value)); return *this;}
194
196
199 inline const OverrideProjectOwnersPolicyGrantDetail& GetOverrideProjectOwners() const { return m_overrideProjectOwners; }
200 inline bool OverrideProjectOwnersHasBeenSet() const { return m_overrideProjectOwnersHasBeenSet; }
201 template<typename OverrideProjectOwnersT = OverrideProjectOwnersPolicyGrantDetail>
202 void SetOverrideProjectOwners(OverrideProjectOwnersT&& value) { m_overrideProjectOwnersHasBeenSet = true; m_overrideProjectOwners = std::forward<OverrideProjectOwnersT>(value); }
203 template<typename OverrideProjectOwnersT = OverrideProjectOwnersPolicyGrantDetail>
204 PolicyGrantDetail& WithOverrideProjectOwners(OverrideProjectOwnersT&& value) { SetOverrideProjectOwners(std::forward<OverrideProjectOwnersT>(value)); return *this;}
206
208
212 inline const UseAssetTypePolicyGrantDetail& GetUseAssetType() const { return m_useAssetType; }
213 inline bool UseAssetTypeHasBeenSet() const { return m_useAssetTypeHasBeenSet; }
214 template<typename UseAssetTypeT = UseAssetTypePolicyGrantDetail>
215 void SetUseAssetType(UseAssetTypeT&& value) { m_useAssetTypeHasBeenSet = true; m_useAssetType = std::forward<UseAssetTypeT>(value); }
216 template<typename UseAssetTypeT = UseAssetTypePolicyGrantDetail>
217 PolicyGrantDetail& WithUseAssetType(UseAssetTypeT&& value) { SetUseAssetType(std::forward<UseAssetTypeT>(value)); return *this;}
219 private:
220
221 AddToProjectMemberPoolPolicyGrantDetail m_addToProjectMemberPool;
222 bool m_addToProjectMemberPoolHasBeenSet = false;
223
224 CreateAssetTypePolicyGrantDetail m_createAssetType;
225 bool m_createAssetTypeHasBeenSet = false;
226
227 CreateDomainUnitPolicyGrantDetail m_createDomainUnit;
228 bool m_createDomainUnitHasBeenSet = false;
229
230 Unit m_createEnvironment;
231 bool m_createEnvironmentHasBeenSet = false;
232
233 Unit m_createEnvironmentFromBlueprint;
234 bool m_createEnvironmentFromBlueprintHasBeenSet = false;
235
236 CreateEnvironmentProfilePolicyGrantDetail m_createEnvironmentProfile;
237 bool m_createEnvironmentProfileHasBeenSet = false;
238
239 CreateFormTypePolicyGrantDetail m_createFormType;
240 bool m_createFormTypeHasBeenSet = false;
241
242 CreateGlossaryPolicyGrantDetail m_createGlossary;
243 bool m_createGlossaryHasBeenSet = false;
244
245 CreateProjectPolicyGrantDetail m_createProject;
246 bool m_createProjectHasBeenSet = false;
247
248 CreateProjectFromProjectProfilePolicyGrantDetail m_createProjectFromProjectProfile;
249 bool m_createProjectFromProjectProfileHasBeenSet = false;
250
251 Unit m_delegateCreateEnvironmentProfile;
252 bool m_delegateCreateEnvironmentProfileHasBeenSet = false;
253
254 OverrideDomainUnitOwnersPolicyGrantDetail m_overrideDomainUnitOwners;
255 bool m_overrideDomainUnitOwnersHasBeenSet = false;
256
257 OverrideProjectOwnersPolicyGrantDetail m_overrideProjectOwners;
258 bool m_overrideProjectOwnersHasBeenSet = false;
259
260 UseAssetTypePolicyGrantDetail m_useAssetType;
261 bool m_useAssetTypeHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace DataZone
266} // 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