commonMain.aws.sdk.kotlin.services.wisdom.model.Configuration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wisdom-jvm Show documentation
Show all versions of wisdom-jvm Show documentation
The AWS SDK for Kotlin client for Wisdom
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wisdom.model
/**
* The configuration information of the external data source.
*/
public sealed class Configuration {
/**
* The configuration information of the Amazon Connect data source.
*/
public data class ConnectConfiguration(val value: aws.sdk.kotlin.services.wisdom.model.ConnectConfiguration) : aws.sdk.kotlin.services.wisdom.model.Configuration() {
}
public object SdkUnknown : aws.sdk.kotlin.services.wisdom.model.Configuration() {
}
/**
* Casts this [Configuration] as a [ConnectConfiguration] and retrieves its [aws.sdk.kotlin.services.wisdom.model.ConnectConfiguration] value. Throws an exception if the [Configuration] is not a
* [ConnectConfiguration].
*/
public fun asConnectConfiguration(): aws.sdk.kotlin.services.wisdom.model.ConnectConfiguration = (this as Configuration.ConnectConfiguration).value
/**
* Casts this [Configuration] as a [ConnectConfiguration] and retrieves its [aws.sdk.kotlin.services.wisdom.model.ConnectConfiguration] value. Returns null if the [Configuration] is not a [ConnectConfiguration].
*/
public fun asConnectConfigurationOrNull(): aws.sdk.kotlin.services.wisdom.model.ConnectConfiguration? = (this as? Configuration.ConnectConfiguration)?.value
}