commonMain.aws.sdk.kotlin.services.cleanrooms.model.TableReference.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanrooms-jvm Show documentation
Show all versions of cleanrooms-jvm Show documentation
The AWS SDK for Kotlin client for CleanRooms
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanrooms.model
/**
* A pointer to the dataset that underlies this table. Currently, this can only be an Glue table.
*/
public sealed class TableReference {
/**
* If present, a reference to the Glue table referred to by this table reference.
*/
public data class Glue(val value: aws.sdk.kotlin.services.cleanrooms.model.GlueTableReference) : aws.sdk.kotlin.services.cleanrooms.model.TableReference() {
}
public object SdkUnknown : aws.sdk.kotlin.services.cleanrooms.model.TableReference() {
}
/**
* Casts this [TableReference] as a [Glue] and retrieves its [aws.sdk.kotlin.services.cleanrooms.model.GlueTableReference] value. Throws an exception if the [TableReference] is not a
* [Glue].
*/
public fun asGlue(): aws.sdk.kotlin.services.cleanrooms.model.GlueTableReference = (this as TableReference.Glue).value
/**
* Casts this [TableReference] as a [Glue] and retrieves its [aws.sdk.kotlin.services.cleanrooms.model.GlueTableReference] value. Returns null if the [TableReference] is not a [Glue].
*/
public fun asGlueOrNull(): aws.sdk.kotlin.services.cleanrooms.model.GlueTableReference? = (this as? TableReference.Glue)?.value
}