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

commonMain.aws.sdk.kotlin.services.redshift.model.ServiceIntegrationsUnion.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 service integrations.
 */
public sealed class ServiceIntegrationsUnion {
    /**
     * A list of scopes set up for Lake Formation integration.
     */
    public data class LakeFormation(val value: List) : aws.sdk.kotlin.services.redshift.model.ServiceIntegrationsUnion() {
    }

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

    /**
     * Casts this [ServiceIntegrationsUnion] as a [LakeFormation] and retrieves its [List] value. Throws an exception if the [ServiceIntegrationsUnion] is not a
     * [LakeFormation].
     */
    public fun asLakeFormation(): List = (this as ServiceIntegrationsUnion.LakeFormation).value

    /**
     * Casts this [ServiceIntegrationsUnion] as a [LakeFormation] and retrieves its [List] value. Returns null if the [ServiceIntegrationsUnion] is not a [LakeFormation].
     */
    public fun asLakeFormationOrNull(): List? = (this as? ServiceIntegrationsUnion.LakeFormation)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy