commonMain.aws.sdk.kotlin.services.redshift.model.LakeFormationScopeUnion.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jvm Show documentation
Show all versions of redshift-jvm Show documentation
The AWS SDK for Kotlin client for Redshift
// 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
}