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

commonMain.aws.sdk.kotlin.services.cleanrooms.model.TableReference.kt Maven / Gradle / Ivy

There is a newer version: 1.3.31
Show newest version
// 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy