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