All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datazone.model



/**
 * The details of the policy grant.
 */
public sealed class PolicyGrantDetail {
    /**
     * Specifies that the policy grant is to be added to the members of the project.
     */
    public data class AddToProjectMemberPool(val value: aws.sdk.kotlin.services.datazone.model.AddToProjectMemberPoolPolicyGrantDetail) : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    /**
     * Specifies that this is a create asset type policy.
     */
    public data class CreateAssetType(val value: aws.sdk.kotlin.services.datazone.model.CreateAssetTypePolicyGrantDetail) : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    /**
     * Specifies that this is a create domain unit policy.
     */
    public data class CreateDomainUnit(val value: aws.sdk.kotlin.services.datazone.model.CreateDomainUnitPolicyGrantDetail) : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    /**
     * Specifies that this is a create environment policy.
     */
    public data class CreateEnvironment(val value: aws.sdk.kotlin.services.datazone.model.DataZoneUnit) : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    /**
     * Specifies that this is a create environment profile policy.
     */
    public data class CreateEnvironmentProfile(val value: aws.sdk.kotlin.services.datazone.model.CreateEnvironmentProfilePolicyGrantDetail) : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    /**
     * Specifies that this is a create form type policy.
     */
    public data class CreateFormType(val value: aws.sdk.kotlin.services.datazone.model.CreateFormTypePolicyGrantDetail) : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    /**
     * Specifies that this is a create glossary policy.
     */
    public data class CreateGlossary(val value: aws.sdk.kotlin.services.datazone.model.CreateGlossaryPolicyGrantDetail) : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    /**
     * Specifies that this is a create project policy.
     */
    public data class CreateProject(val value: aws.sdk.kotlin.services.datazone.model.CreateProjectPolicyGrantDetail) : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    /**
     * Specifies that this is the delegation of the create environment profile policy.
     */
    public data class DelegateCreateEnvironmentProfile(val value: aws.sdk.kotlin.services.datazone.model.DataZoneUnit) : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    /**
     * Specifies whether to override domain unit owners.
     */
    public data class OverrideDomainUnitOwners(val value: aws.sdk.kotlin.services.datazone.model.OverrideDomainUnitOwnersPolicyGrantDetail) : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    /**
     * Specifies whether to override project owners.
     */
    public data class OverrideProjectOwners(val value: aws.sdk.kotlin.services.datazone.model.OverrideProjectOwnersPolicyGrantDetail) : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.datazone.model.PolicyGrantDetail() {
    }

    /**
     * Casts this [PolicyGrantDetail] as a [AddToProjectMemberPool] and retrieves its [aws.sdk.kotlin.services.datazone.model.AddToProjectMemberPoolPolicyGrantDetail] value. Throws an exception if the [PolicyGrantDetail] is not a
     * [AddToProjectMemberPool].
     */
    public fun asAddToProjectMemberPool(): aws.sdk.kotlin.services.datazone.model.AddToProjectMemberPoolPolicyGrantDetail = (this as PolicyGrantDetail.AddToProjectMemberPool).value

    /**
     * Casts this [PolicyGrantDetail] as a [AddToProjectMemberPool] and retrieves its [aws.sdk.kotlin.services.datazone.model.AddToProjectMemberPoolPolicyGrantDetail] value. Returns null if the [PolicyGrantDetail] is not a [AddToProjectMemberPool].
     */
    public fun asAddToProjectMemberPoolOrNull(): aws.sdk.kotlin.services.datazone.model.AddToProjectMemberPoolPolicyGrantDetail? = (this as? PolicyGrantDetail.AddToProjectMemberPool)?.value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateAssetType] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateAssetTypePolicyGrantDetail] value. Throws an exception if the [PolicyGrantDetail] is not a
     * [CreateAssetType].
     */
    public fun asCreateAssetType(): aws.sdk.kotlin.services.datazone.model.CreateAssetTypePolicyGrantDetail = (this as PolicyGrantDetail.CreateAssetType).value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateAssetType] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateAssetTypePolicyGrantDetail] value. Returns null if the [PolicyGrantDetail] is not a [CreateAssetType].
     */
    public fun asCreateAssetTypeOrNull(): aws.sdk.kotlin.services.datazone.model.CreateAssetTypePolicyGrantDetail? = (this as? PolicyGrantDetail.CreateAssetType)?.value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateDomainUnit] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateDomainUnitPolicyGrantDetail] value. Throws an exception if the [PolicyGrantDetail] is not a
     * [CreateDomainUnit].
     */
    public fun asCreateDomainUnit(): aws.sdk.kotlin.services.datazone.model.CreateDomainUnitPolicyGrantDetail = (this as PolicyGrantDetail.CreateDomainUnit).value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateDomainUnit] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateDomainUnitPolicyGrantDetail] value. Returns null if the [PolicyGrantDetail] is not a [CreateDomainUnit].
     */
    public fun asCreateDomainUnitOrNull(): aws.sdk.kotlin.services.datazone.model.CreateDomainUnitPolicyGrantDetail? = (this as? PolicyGrantDetail.CreateDomainUnit)?.value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateEnvironment] and retrieves its [aws.sdk.kotlin.services.datazone.model.DataZoneUnit] value. Throws an exception if the [PolicyGrantDetail] is not a
     * [CreateEnvironment].
     */
    public fun asCreateEnvironment(): aws.sdk.kotlin.services.datazone.model.DataZoneUnit = (this as PolicyGrantDetail.CreateEnvironment).value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateEnvironment] and retrieves its [aws.sdk.kotlin.services.datazone.model.DataZoneUnit] value. Returns null if the [PolicyGrantDetail] is not a [CreateEnvironment].
     */
    public fun asCreateEnvironmentOrNull(): aws.sdk.kotlin.services.datazone.model.DataZoneUnit? = (this as? PolicyGrantDetail.CreateEnvironment)?.value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateEnvironmentProfile] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateEnvironmentProfilePolicyGrantDetail] value. Throws an exception if the [PolicyGrantDetail] is not a
     * [CreateEnvironmentProfile].
     */
    public fun asCreateEnvironmentProfile(): aws.sdk.kotlin.services.datazone.model.CreateEnvironmentProfilePolicyGrantDetail = (this as PolicyGrantDetail.CreateEnvironmentProfile).value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateEnvironmentProfile] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateEnvironmentProfilePolicyGrantDetail] value. Returns null if the [PolicyGrantDetail] is not a [CreateEnvironmentProfile].
     */
    public fun asCreateEnvironmentProfileOrNull(): aws.sdk.kotlin.services.datazone.model.CreateEnvironmentProfilePolicyGrantDetail? = (this as? PolicyGrantDetail.CreateEnvironmentProfile)?.value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateFormType] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateFormTypePolicyGrantDetail] value. Throws an exception if the [PolicyGrantDetail] is not a
     * [CreateFormType].
     */
    public fun asCreateFormType(): aws.sdk.kotlin.services.datazone.model.CreateFormTypePolicyGrantDetail = (this as PolicyGrantDetail.CreateFormType).value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateFormType] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateFormTypePolicyGrantDetail] value. Returns null if the [PolicyGrantDetail] is not a [CreateFormType].
     */
    public fun asCreateFormTypeOrNull(): aws.sdk.kotlin.services.datazone.model.CreateFormTypePolicyGrantDetail? = (this as? PolicyGrantDetail.CreateFormType)?.value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateGlossary] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateGlossaryPolicyGrantDetail] value. Throws an exception if the [PolicyGrantDetail] is not a
     * [CreateGlossary].
     */
    public fun asCreateGlossary(): aws.sdk.kotlin.services.datazone.model.CreateGlossaryPolicyGrantDetail = (this as PolicyGrantDetail.CreateGlossary).value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateGlossary] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateGlossaryPolicyGrantDetail] value. Returns null if the [PolicyGrantDetail] is not a [CreateGlossary].
     */
    public fun asCreateGlossaryOrNull(): aws.sdk.kotlin.services.datazone.model.CreateGlossaryPolicyGrantDetail? = (this as? PolicyGrantDetail.CreateGlossary)?.value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateProject] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateProjectPolicyGrantDetail] value. Throws an exception if the [PolicyGrantDetail] is not a
     * [CreateProject].
     */
    public fun asCreateProject(): aws.sdk.kotlin.services.datazone.model.CreateProjectPolicyGrantDetail = (this as PolicyGrantDetail.CreateProject).value

    /**
     * Casts this [PolicyGrantDetail] as a [CreateProject] and retrieves its [aws.sdk.kotlin.services.datazone.model.CreateProjectPolicyGrantDetail] value. Returns null if the [PolicyGrantDetail] is not a [CreateProject].
     */
    public fun asCreateProjectOrNull(): aws.sdk.kotlin.services.datazone.model.CreateProjectPolicyGrantDetail? = (this as? PolicyGrantDetail.CreateProject)?.value

    /**
     * Casts this [PolicyGrantDetail] as a [DelegateCreateEnvironmentProfile] and retrieves its [aws.sdk.kotlin.services.datazone.model.DataZoneUnit] value. Throws an exception if the [PolicyGrantDetail] is not a
     * [DelegateCreateEnvironmentProfile].
     */
    public fun asDelegateCreateEnvironmentProfile(): aws.sdk.kotlin.services.datazone.model.DataZoneUnit = (this as PolicyGrantDetail.DelegateCreateEnvironmentProfile).value

    /**
     * Casts this [PolicyGrantDetail] as a [DelegateCreateEnvironmentProfile] and retrieves its [aws.sdk.kotlin.services.datazone.model.DataZoneUnit] value. Returns null if the [PolicyGrantDetail] is not a [DelegateCreateEnvironmentProfile].
     */
    public fun asDelegateCreateEnvironmentProfileOrNull(): aws.sdk.kotlin.services.datazone.model.DataZoneUnit? = (this as? PolicyGrantDetail.DelegateCreateEnvironmentProfile)?.value

    /**
     * Casts this [PolicyGrantDetail] as a [OverrideDomainUnitOwners] and retrieves its [aws.sdk.kotlin.services.datazone.model.OverrideDomainUnitOwnersPolicyGrantDetail] value. Throws an exception if the [PolicyGrantDetail] is not a
     * [OverrideDomainUnitOwners].
     */
    public fun asOverrideDomainUnitOwners(): aws.sdk.kotlin.services.datazone.model.OverrideDomainUnitOwnersPolicyGrantDetail = (this as PolicyGrantDetail.OverrideDomainUnitOwners).value

    /**
     * Casts this [PolicyGrantDetail] as a [OverrideDomainUnitOwners] and retrieves its [aws.sdk.kotlin.services.datazone.model.OverrideDomainUnitOwnersPolicyGrantDetail] value. Returns null if the [PolicyGrantDetail] is not a [OverrideDomainUnitOwners].
     */
    public fun asOverrideDomainUnitOwnersOrNull(): aws.sdk.kotlin.services.datazone.model.OverrideDomainUnitOwnersPolicyGrantDetail? = (this as? PolicyGrantDetail.OverrideDomainUnitOwners)?.value

    /**
     * Casts this [PolicyGrantDetail] as a [OverrideProjectOwners] and retrieves its [aws.sdk.kotlin.services.datazone.model.OverrideProjectOwnersPolicyGrantDetail] value. Throws an exception if the [PolicyGrantDetail] is not a
     * [OverrideProjectOwners].
     */
    public fun asOverrideProjectOwners(): aws.sdk.kotlin.services.datazone.model.OverrideProjectOwnersPolicyGrantDetail = (this as PolicyGrantDetail.OverrideProjectOwners).value

    /**
     * Casts this [PolicyGrantDetail] as a [OverrideProjectOwners] and retrieves its [aws.sdk.kotlin.services.datazone.model.OverrideProjectOwnersPolicyGrantDetail] value. Returns null if the [PolicyGrantDetail] is not a [OverrideProjectOwners].
     */
    public fun asOverrideProjectOwnersOrNull(): aws.sdk.kotlin.services.datazone.model.OverrideProjectOwnersPolicyGrantDetail? = (this as? PolicyGrantDetail.OverrideProjectOwners)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy