Class PolicyGrantDetail
- java.lang.Object
-
- software.amazon.awssdk.services.datazone.model.PolicyGrantDetail
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PolicyGrantDetail.Builder,PolicyGrantDetail>
@Generated("software.amazon.awssdk:codegen") public final class PolicyGrantDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyGrantDetail.Builder,PolicyGrantDetail>
The details of the policy grant.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePolicyGrantDetail.Builderstatic classPolicyGrantDetail.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddToProjectMemberPoolPolicyGrantDetailaddToProjectMemberPool()Specifies that the policy grant is to be added to the members of the project.static PolicyGrantDetail.Builderbuilder()CreateAssetTypePolicyGrantDetailcreateAssetType()Specifies that this is a create asset type policy.CreateDomainUnitPolicyGrantDetailcreateDomainUnit()Specifies that this is a create domain unit policy.UnitcreateEnvironment()Specifies that this is a create environment policy.CreateEnvironmentProfilePolicyGrantDetailcreateEnvironmentProfile()Specifies that this is a create environment profile policy.CreateFormTypePolicyGrantDetailcreateFormType()Specifies that this is a create form type policy.CreateGlossaryPolicyGrantDetailcreateGlossary()Specifies that this is a create glossary policy.CreateProjectPolicyGrantDetailcreateProject()Specifies that this is a create project policy.UnitdelegateCreateEnvironmentProfile()Specifies that this is the delegation of the create environment profile policy.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static PolicyGrantDetailfromAddToProjectMemberPool(Consumer<AddToProjectMemberPoolPolicyGrantDetail.Builder> addToProjectMemberPool)Create an instance of this class withaddToProjectMemberPool()initialized to the given value.static PolicyGrantDetailfromAddToProjectMemberPool(AddToProjectMemberPoolPolicyGrantDetail addToProjectMemberPool)Create an instance of this class withaddToProjectMemberPool()initialized to the given value.static PolicyGrantDetailfromCreateAssetType(Consumer<CreateAssetTypePolicyGrantDetail.Builder> createAssetType)Create an instance of this class withcreateAssetType()initialized to the given value.static PolicyGrantDetailfromCreateAssetType(CreateAssetTypePolicyGrantDetail createAssetType)Create an instance of this class withcreateAssetType()initialized to the given value.static PolicyGrantDetailfromCreateDomainUnit(Consumer<CreateDomainUnitPolicyGrantDetail.Builder> createDomainUnit)Create an instance of this class withcreateDomainUnit()initialized to the given value.static PolicyGrantDetailfromCreateDomainUnit(CreateDomainUnitPolicyGrantDetail createDomainUnit)Create an instance of this class withcreateDomainUnit()initialized to the given value.static PolicyGrantDetailfromCreateEnvironment(Consumer<Unit.Builder> createEnvironment)Create an instance of this class withcreateEnvironment()initialized to the given value.static PolicyGrantDetailfromCreateEnvironment(Unit createEnvironment)Create an instance of this class withcreateEnvironment()initialized to the given value.static PolicyGrantDetailfromCreateEnvironmentProfile(Consumer<CreateEnvironmentProfilePolicyGrantDetail.Builder> createEnvironmentProfile)Create an instance of this class withcreateEnvironmentProfile()initialized to the given value.static PolicyGrantDetailfromCreateEnvironmentProfile(CreateEnvironmentProfilePolicyGrantDetail createEnvironmentProfile)Create an instance of this class withcreateEnvironmentProfile()initialized to the given value.static PolicyGrantDetailfromCreateFormType(Consumer<CreateFormTypePolicyGrantDetail.Builder> createFormType)Create an instance of this class withcreateFormType()initialized to the given value.static PolicyGrantDetailfromCreateFormType(CreateFormTypePolicyGrantDetail createFormType)Create an instance of this class withcreateFormType()initialized to the given value.static PolicyGrantDetailfromCreateGlossary(Consumer<CreateGlossaryPolicyGrantDetail.Builder> createGlossary)Create an instance of this class withcreateGlossary()initialized to the given value.static PolicyGrantDetailfromCreateGlossary(CreateGlossaryPolicyGrantDetail createGlossary)Create an instance of this class withcreateGlossary()initialized to the given value.static PolicyGrantDetailfromCreateProject(Consumer<CreateProjectPolicyGrantDetail.Builder> createProject)Create an instance of this class withcreateProject()initialized to the given value.static PolicyGrantDetailfromCreateProject(CreateProjectPolicyGrantDetail createProject)Create an instance of this class withcreateProject()initialized to the given value.static PolicyGrantDetailfromDelegateCreateEnvironmentProfile(Consumer<Unit.Builder> delegateCreateEnvironmentProfile)Create an instance of this class withdelegateCreateEnvironmentProfile()initialized to the given value.static PolicyGrantDetailfromDelegateCreateEnvironmentProfile(Unit delegateCreateEnvironmentProfile)Create an instance of this class withdelegateCreateEnvironmentProfile()initialized to the given value.static PolicyGrantDetailfromOverrideDomainUnitOwners(Consumer<OverrideDomainUnitOwnersPolicyGrantDetail.Builder> overrideDomainUnitOwners)Create an instance of this class withoverrideDomainUnitOwners()initialized to the given value.static PolicyGrantDetailfromOverrideDomainUnitOwners(OverrideDomainUnitOwnersPolicyGrantDetail overrideDomainUnitOwners)Create an instance of this class withoverrideDomainUnitOwners()initialized to the given value.static PolicyGrantDetailfromOverrideProjectOwners(Consumer<OverrideProjectOwnersPolicyGrantDetail.Builder> overrideProjectOwners)Create an instance of this class withoverrideProjectOwners()initialized to the given value.static PolicyGrantDetailfromOverrideProjectOwners(OverrideProjectOwnersPolicyGrantDetail overrideProjectOwners)Create an instance of this class withoverrideProjectOwners()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()OverrideDomainUnitOwnersPolicyGrantDetailoverrideDomainUnitOwners()Specifies whether to override domain unit owners.OverrideProjectOwnersPolicyGrantDetailoverrideProjectOwners()Specifies whether to override project owners.List<SdkField<?>>sdkFields()static Class<? extends PolicyGrantDetail.Builder>serializableBuilderClass()PolicyGrantDetail.BuildertoBuilder()StringtoString()Returns a string representation of this object.PolicyGrantDetail.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
addToProjectMemberPool
public final AddToProjectMemberPoolPolicyGrantDetail addToProjectMemberPool()
Specifies that the policy grant is to be added to the members of the project.
- Returns:
- Specifies that the policy grant is to be added to the members of the project.
-
createAssetType
public final CreateAssetTypePolicyGrantDetail createAssetType()
Specifies that this is a create asset type policy.
- Returns:
- Specifies that this is a create asset type policy.
-
createDomainUnit
public final CreateDomainUnitPolicyGrantDetail createDomainUnit()
Specifies that this is a create domain unit policy.
- Returns:
- Specifies that this is a create domain unit policy.
-
createEnvironment
public final Unit createEnvironment()
Specifies that this is a create environment policy.
- Returns:
- Specifies that this is a create environment policy.
-
createEnvironmentProfile
public final CreateEnvironmentProfilePolicyGrantDetail createEnvironmentProfile()
Specifies that this is a create environment profile policy.
- Returns:
- Specifies that this is a create environment profile policy.
-
createFormType
public final CreateFormTypePolicyGrantDetail createFormType()
Specifies that this is a create form type policy.
- Returns:
- Specifies that this is a create form type policy.
-
createGlossary
public final CreateGlossaryPolicyGrantDetail createGlossary()
Specifies that this is a create glossary policy.
- Returns:
- Specifies that this is a create glossary policy.
-
createProject
public final CreateProjectPolicyGrantDetail createProject()
Specifies that this is a create project policy.
- Returns:
- Specifies that this is a create project policy.
-
delegateCreateEnvironmentProfile
public final Unit delegateCreateEnvironmentProfile()
Specifies that this is the delegation of the create environment profile policy.
- Returns:
- Specifies that this is the delegation of the create environment profile policy.
-
overrideDomainUnitOwners
public final OverrideDomainUnitOwnersPolicyGrantDetail overrideDomainUnitOwners()
Specifies whether to override domain unit owners.
- Returns:
- Specifies whether to override domain unit owners.
-
overrideProjectOwners
public final OverrideProjectOwnersPolicyGrantDetail overrideProjectOwners()
Specifies whether to override project owners.
- Returns:
- Specifies whether to override project owners.
-
toBuilder
public PolicyGrantDetail.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PolicyGrantDetail.Builder,PolicyGrantDetail>
-
builder
public static PolicyGrantDetail.Builder builder()
-
serializableBuilderClass
public static Class<? extends PolicyGrantDetail.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromAddToProjectMemberPool
public static PolicyGrantDetail fromAddToProjectMemberPool(AddToProjectMemberPoolPolicyGrantDetail addToProjectMemberPool)
Create an instance of this class withaddToProjectMemberPool()initialized to the given value.Specifies that the policy grant is to be added to the members of the project.
- Parameters:
addToProjectMemberPool- Specifies that the policy grant is to be added to the members of the project.
-
fromAddToProjectMemberPool
public static PolicyGrantDetail fromAddToProjectMemberPool(Consumer<AddToProjectMemberPoolPolicyGrantDetail.Builder> addToProjectMemberPool)
Create an instance of this class withaddToProjectMemberPool()initialized to the given value.Specifies that the policy grant is to be added to the members of the project.
- Parameters:
addToProjectMemberPool- Specifies that the policy grant is to be added to the members of the project.
-
fromCreateAssetType
public static PolicyGrantDetail fromCreateAssetType(CreateAssetTypePolicyGrantDetail createAssetType)
Create an instance of this class withcreateAssetType()initialized to the given value.Specifies that this is a create asset type policy.
- Parameters:
createAssetType- Specifies that this is a create asset type policy.
-
fromCreateAssetType
public static PolicyGrantDetail fromCreateAssetType(Consumer<CreateAssetTypePolicyGrantDetail.Builder> createAssetType)
Create an instance of this class withcreateAssetType()initialized to the given value.Specifies that this is a create asset type policy.
- Parameters:
createAssetType- Specifies that this is a create asset type policy.
-
fromCreateDomainUnit
public static PolicyGrantDetail fromCreateDomainUnit(CreateDomainUnitPolicyGrantDetail createDomainUnit)
Create an instance of this class withcreateDomainUnit()initialized to the given value.Specifies that this is a create domain unit policy.
- Parameters:
createDomainUnit- Specifies that this is a create domain unit policy.
-
fromCreateDomainUnit
public static PolicyGrantDetail fromCreateDomainUnit(Consumer<CreateDomainUnitPolicyGrantDetail.Builder> createDomainUnit)
Create an instance of this class withcreateDomainUnit()initialized to the given value.Specifies that this is a create domain unit policy.
- Parameters:
createDomainUnit- Specifies that this is a create domain unit policy.
-
fromCreateEnvironment
public static PolicyGrantDetail fromCreateEnvironment(Unit createEnvironment)
Create an instance of this class withcreateEnvironment()initialized to the given value.Specifies that this is a create environment policy.
- Parameters:
createEnvironment- Specifies that this is a create environment policy.
-
fromCreateEnvironment
public static PolicyGrantDetail fromCreateEnvironment(Consumer<Unit.Builder> createEnvironment)
Create an instance of this class withcreateEnvironment()initialized to the given value.Specifies that this is a create environment policy.
- Parameters:
createEnvironment- Specifies that this is a create environment policy.
-
fromCreateEnvironmentProfile
public static PolicyGrantDetail fromCreateEnvironmentProfile(CreateEnvironmentProfilePolicyGrantDetail createEnvironmentProfile)
Create an instance of this class withcreateEnvironmentProfile()initialized to the given value.Specifies that this is a create environment profile policy.
- Parameters:
createEnvironmentProfile- Specifies that this is a create environment profile policy.
-
fromCreateEnvironmentProfile
public static PolicyGrantDetail fromCreateEnvironmentProfile(Consumer<CreateEnvironmentProfilePolicyGrantDetail.Builder> createEnvironmentProfile)
Create an instance of this class withcreateEnvironmentProfile()initialized to the given value.Specifies that this is a create environment profile policy.
- Parameters:
createEnvironmentProfile- Specifies that this is a create environment profile policy.
-
fromCreateFormType
public static PolicyGrantDetail fromCreateFormType(CreateFormTypePolicyGrantDetail createFormType)
Create an instance of this class withcreateFormType()initialized to the given value.Specifies that this is a create form type policy.
- Parameters:
createFormType- Specifies that this is a create form type policy.
-
fromCreateFormType
public static PolicyGrantDetail fromCreateFormType(Consumer<CreateFormTypePolicyGrantDetail.Builder> createFormType)
Create an instance of this class withcreateFormType()initialized to the given value.Specifies that this is a create form type policy.
- Parameters:
createFormType- Specifies that this is a create form type policy.
-
fromCreateGlossary
public static PolicyGrantDetail fromCreateGlossary(CreateGlossaryPolicyGrantDetail createGlossary)
Create an instance of this class withcreateGlossary()initialized to the given value.Specifies that this is a create glossary policy.
- Parameters:
createGlossary- Specifies that this is a create glossary policy.
-
fromCreateGlossary
public static PolicyGrantDetail fromCreateGlossary(Consumer<CreateGlossaryPolicyGrantDetail.Builder> createGlossary)
Create an instance of this class withcreateGlossary()initialized to the given value.Specifies that this is a create glossary policy.
- Parameters:
createGlossary- Specifies that this is a create glossary policy.
-
fromCreateProject
public static PolicyGrantDetail fromCreateProject(CreateProjectPolicyGrantDetail createProject)
Create an instance of this class withcreateProject()initialized to the given value.Specifies that this is a create project policy.
- Parameters:
createProject- Specifies that this is a create project policy.
-
fromCreateProject
public static PolicyGrantDetail fromCreateProject(Consumer<CreateProjectPolicyGrantDetail.Builder> createProject)
Create an instance of this class withcreateProject()initialized to the given value.Specifies that this is a create project policy.
- Parameters:
createProject- Specifies that this is a create project policy.
-
fromDelegateCreateEnvironmentProfile
public static PolicyGrantDetail fromDelegateCreateEnvironmentProfile(Unit delegateCreateEnvironmentProfile)
Create an instance of this class withdelegateCreateEnvironmentProfile()initialized to the given value.Specifies that this is the delegation of the create environment profile policy.
- Parameters:
delegateCreateEnvironmentProfile- Specifies that this is the delegation of the create environment profile policy.
-
fromDelegateCreateEnvironmentProfile
public static PolicyGrantDetail fromDelegateCreateEnvironmentProfile(Consumer<Unit.Builder> delegateCreateEnvironmentProfile)
Create an instance of this class withdelegateCreateEnvironmentProfile()initialized to the given value.Specifies that this is the delegation of the create environment profile policy.
- Parameters:
delegateCreateEnvironmentProfile- Specifies that this is the delegation of the create environment profile policy.
-
fromOverrideDomainUnitOwners
public static PolicyGrantDetail fromOverrideDomainUnitOwners(OverrideDomainUnitOwnersPolicyGrantDetail overrideDomainUnitOwners)
Create an instance of this class withoverrideDomainUnitOwners()initialized to the given value.Specifies whether to override domain unit owners.
- Parameters:
overrideDomainUnitOwners- Specifies whether to override domain unit owners.
-
fromOverrideDomainUnitOwners
public static PolicyGrantDetail fromOverrideDomainUnitOwners(Consumer<OverrideDomainUnitOwnersPolicyGrantDetail.Builder> overrideDomainUnitOwners)
Create an instance of this class withoverrideDomainUnitOwners()initialized to the given value.Specifies whether to override domain unit owners.
- Parameters:
overrideDomainUnitOwners- Specifies whether to override domain unit owners.
-
fromOverrideProjectOwners
public static PolicyGrantDetail fromOverrideProjectOwners(OverrideProjectOwnersPolicyGrantDetail overrideProjectOwners)
Create an instance of this class withoverrideProjectOwners()initialized to the given value.Specifies whether to override project owners.
- Parameters:
overrideProjectOwners- Specifies whether to override project owners.
-
fromOverrideProjectOwners
public static PolicyGrantDetail fromOverrideProjectOwners(Consumer<OverrideProjectOwnersPolicyGrantDetail.Builder> overrideProjectOwners)
Create an instance of this class withoverrideProjectOwners()initialized to the given value.Specifies whether to override project owners.
- Parameters:
overrideProjectOwners- Specifies whether to override project owners.
-
type
public PolicyGrantDetail.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will bePolicyGrantDetail.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will bePolicyGrantDetail.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-