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

commonMain.aws.sdk.kotlin.services.redshift.model.LakeFormationScopeUnion.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.redshift.model



/**
 * A list of scopes set up for Lake Formation integration.
 */
public sealed class LakeFormationScopeUnion {
    /**
     * The Lake Formation scope.
     */
    public data class LakeFormationQuery(val value: aws.sdk.kotlin.services.redshift.model.LakeFormationQuery) : aws.sdk.kotlin.services.redshift.model.LakeFormationScopeUnion() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.redshift.model.LakeFormationScopeUnion() {
    }

    /**
     * Casts this [LakeFormationScopeUnion] as a [LakeFormationQuery] and retrieves its [aws.sdk.kotlin.services.redshift.model.LakeFormationQuery] value. Throws an exception if the [LakeFormationScopeUnion] is not a
     * [LakeFormationQuery].
     */
    public fun asLakeFormationQuery(): aws.sdk.kotlin.services.redshift.model.LakeFormationQuery = (this as LakeFormationScopeUnion.LakeFormationQuery).value

    /**
     * Casts this [LakeFormationScopeUnion] as a [LakeFormationQuery] and retrieves its [aws.sdk.kotlin.services.redshift.model.LakeFormationQuery] value. Returns null if the [LakeFormationScopeUnion] is not a [LakeFormationQuery].
     */
    public fun asLakeFormationQueryOrNull(): aws.sdk.kotlin.services.redshift.model.LakeFormationQuery? = (this as? LakeFormationScopeUnion.LakeFormationQuery)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy