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:
  • Method Details

    • 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.
    • createEnvironmentFromBlueprint

      public final Unit createEnvironmentFromBlueprint()
      Returns the value of the CreateEnvironmentFromBlueprint property for this object.
      Returns:
      The value of the CreateEnvironmentFromBlueprint property for this object.
    • 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.
    • createProjectFromProjectProfile

      public final CreateProjectFromProjectProfilePolicyGrantDetail createProjectFromProjectProfile()

      Specifies whether to create a project from project profile.

      Returns:
      Specifies whether to create a project from project profile.
    • 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.
    • useAssetType

      public final UseAssetTypePolicyGrantDetail useAssetType()

      Specifies the domain unit(s) whose projects can use this asset type while creating asset or asset revisions.

      Returns:
      Specifies the domain unit(s) whose projects can use this asset type while creating asset or asset revisions.
    • toBuilder

      public PolicyGrantDetail.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<PolicyGrantDetail.Builder,PolicyGrantDetail>
      Returns:
      a builder for type T
    • builder

      public static PolicyGrantDetail.Builder builder()
    • serializableBuilderClass

      public static Class<? extends PolicyGrantDetail.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • fromAddToProjectMemberPool

      public static PolicyGrantDetail fromAddToProjectMemberPool(AddToProjectMemberPoolPolicyGrantDetail addToProjectMemberPool)
      Create an instance of this class with addToProjectMemberPool() 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 with addToProjectMemberPool() 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 with createAssetType() 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 with createAssetType() 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 with createDomainUnit() 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 with createDomainUnit() 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 with createEnvironment() 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 with createEnvironment() initialized to the given value.

      Specifies that this is a create environment policy.

      Parameters:
      createEnvironment - Specifies that this is a create environment policy.
    • fromCreateEnvironmentFromBlueprint

      public static PolicyGrantDetail fromCreateEnvironmentFromBlueprint(Unit createEnvironmentFromBlueprint)
      Create an instance of this class with createEnvironmentFromBlueprint() initialized to the given value. Sets the value of the CreateEnvironmentFromBlueprint property for this object.
      Parameters:
      createEnvironmentFromBlueprint - The new value for the CreateEnvironmentFromBlueprint property for this object.
    • fromCreateEnvironmentFromBlueprint

      public static PolicyGrantDetail fromCreateEnvironmentFromBlueprint(Consumer<Unit.Builder> createEnvironmentFromBlueprint)
      Create an instance of this class with createEnvironmentFromBlueprint() initialized to the given value. Sets the value of the CreateEnvironmentFromBlueprint property for this object.
      Parameters:
      createEnvironmentFromBlueprint - The new value for the CreateEnvironmentFromBlueprint property for this object.
    • fromCreateEnvironmentProfile

      public static PolicyGrantDetail fromCreateEnvironmentProfile(CreateEnvironmentProfilePolicyGrantDetail createEnvironmentProfile)
      Create an instance of this class with createEnvironmentProfile() 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 with createEnvironmentProfile() 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 with createFormType() 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 with createFormType() 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 with createGlossary() 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 with createGlossary() 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 with createProject() 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 with createProject() initialized to the given value.

      Specifies that this is a create project policy.

      Parameters:
      createProject - Specifies that this is a create project policy.
    • fromCreateProjectFromProjectProfile

      public static PolicyGrantDetail fromCreateProjectFromProjectProfile(CreateProjectFromProjectProfilePolicyGrantDetail createProjectFromProjectProfile)
      Create an instance of this class with createProjectFromProjectProfile() initialized to the given value.

      Specifies whether to create a project from project profile.

      Parameters:
      createProjectFromProjectProfile - Specifies whether to create a project from project profile.
    • fromCreateProjectFromProjectProfile

      public static PolicyGrantDetail fromCreateProjectFromProjectProfile(Consumer<CreateProjectFromProjectProfilePolicyGrantDetail.Builder> createProjectFromProjectProfile)
      Create an instance of this class with createProjectFromProjectProfile() initialized to the given value.

      Specifies whether to create a project from project profile.

      Parameters:
      createProjectFromProjectProfile - Specifies whether to create a project from project profile.
    • fromDelegateCreateEnvironmentProfile

      public static PolicyGrantDetail fromDelegateCreateEnvironmentProfile(Unit delegateCreateEnvironmentProfile)
      Create an instance of this class with delegateCreateEnvironmentProfile() 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 with delegateCreateEnvironmentProfile() 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 with overrideDomainUnitOwners() 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 with overrideDomainUnitOwners() 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 with overrideProjectOwners() 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 with overrideProjectOwners() initialized to the given value.

      Specifies whether to override project owners.

      Parameters:
      overrideProjectOwners - Specifies whether to override project owners.
    • fromUseAssetType

      public static PolicyGrantDetail fromUseAssetType(UseAssetTypePolicyGrantDetail useAssetType)
      Create an instance of this class with useAssetType() initialized to the given value.

      Specifies the domain unit(s) whose projects can use this asset type while creating asset or asset revisions.

      Parameters:
      useAssetType - Specifies the domain unit(s) whose projects can use this asset type while creating asset or asset revisions.
    • fromUseAssetType

      public static PolicyGrantDetail fromUseAssetType(Consumer<UseAssetTypePolicyGrantDetail.Builder> useAssetType)
      Create an instance of this class with useAssetType() initialized to the given value.

      Specifies the domain unit(s) whose projects can use this asset type while creating asset or asset revisions.

      Parameters:
      useAssetType - Specifies the domain unit(s) whose projects can use this asset type while creating asset or asset revisions.
    • 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 be PolicyGrantDetail.Type.UNKNOWN_TO_SDK_VERSION if 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 be PolicyGrantDetail.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.