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
The 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() {
}
/**
* A list of scopes set up for S3 Access Grants integration.
*/
public data class S3AccessGrants(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
/**
* Casts this [ServiceIntegrationsUnion] as a [S3AccessGrants] and retrieves its [List] value. Throws an exception if the [ServiceIntegrationsUnion] is not a
* [S3AccessGrants].
*/
public fun asS3AccessGrants(): List = (this as ServiceIntegrationsUnion.S3AccessGrants).value
/**
* Casts this [ServiceIntegrationsUnion] as a [S3AccessGrants] and retrieves its [List] value. Returns null if the [ServiceIntegrationsUnion] is not a [S3AccessGrants].
*/
public fun asS3AccessGrantsOrNull(): List? = (this as? ServiceIntegrationsUnion.S3AccessGrants)?.value
}