commonMain.aws.sdk.kotlin.services.redshift.model.ServiceIntegrationsUnion.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 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
}