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

commonMain.aws.sdk.kotlin.services.wisdom.model.SourceConfiguration.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



/**
 * Configuration information about the external data source.
 */
public sealed class SourceConfiguration {
    /**
     * Configuration information for Amazon AppIntegrations to automatically ingest content.
     */
    public data class AppIntegrations(val value: aws.sdk.kotlin.services.wisdom.model.AppIntegrationsConfiguration) : aws.sdk.kotlin.services.wisdom.model.SourceConfiguration() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.wisdom.model.SourceConfiguration() {
    }

    /**
     * Casts this [SourceConfiguration] as a [AppIntegrations] and retrieves its [aws.sdk.kotlin.services.wisdom.model.AppIntegrationsConfiguration] value. Throws an exception if the [SourceConfiguration] is not a
     * [AppIntegrations].
     */
    public fun asAppIntegrations(): aws.sdk.kotlin.services.wisdom.model.AppIntegrationsConfiguration = (this as SourceConfiguration.AppIntegrations).value

    /**
     * Casts this [SourceConfiguration] as a [AppIntegrations] and retrieves its [aws.sdk.kotlin.services.wisdom.model.AppIntegrationsConfiguration] value. Returns null if the [SourceConfiguration] is not a [AppIntegrations].
     */
    public fun asAppIntegrationsOrNull(): aws.sdk.kotlin.services.wisdom.model.AppIntegrationsConfiguration? = (this as? SourceConfiguration.AppIntegrations)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy