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

commonMain.aws.sdk.kotlin.services.wisdom.model.Configuration.kt Maven / Gradle / Ivy

There is a newer version: 1.3.80
Show newest version
// 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy