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

commonMain.aws.sdk.kotlin.services.datazone.model.RedshiftStorage.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 Amazon Redshift storage as part of the configuration of an Amazon Redshift data source run.
 */
public sealed class RedshiftStorage {
    /**
     * The details of the Amazon Redshift cluster source.
     */
    public data class RedshiftClusterSource(val value: aws.sdk.kotlin.services.datazone.model.RedshiftClusterStorage) : aws.sdk.kotlin.services.datazone.model.RedshiftStorage() {
    }

    /**
     * The details of the Amazon Redshift Serverless workgroup source.
     */
    public data class RedshiftServerlessSource(val value: aws.sdk.kotlin.services.datazone.model.RedshiftServerlessStorage) : aws.sdk.kotlin.services.datazone.model.RedshiftStorage() {
    }

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy