commonMain.aws.sdk.kotlin.services.wisdom.model.AssistantAssociationOutputData.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 data that is output as a result of the assistant association.
*/
public sealed class AssistantAssociationOutputData {
/**
* The knowledge base where output data is sent.
*/
public data class KnowledgeBaseAssociation(val value: aws.sdk.kotlin.services.wisdom.model.KnowledgeBaseAssociationData) : aws.sdk.kotlin.services.wisdom.model.AssistantAssociationOutputData() {
}
public object SdkUnknown : aws.sdk.kotlin.services.wisdom.model.AssistantAssociationOutputData() {
}
/**
* Casts this [AssistantAssociationOutputData] as a [KnowledgeBaseAssociation] and retrieves its [aws.sdk.kotlin.services.wisdom.model.KnowledgeBaseAssociationData] value. Throws an exception if the [AssistantAssociationOutputData] is not a
* [KnowledgeBaseAssociation].
*/
public fun asKnowledgeBaseAssociation(): aws.sdk.kotlin.services.wisdom.model.KnowledgeBaseAssociationData = (this as AssistantAssociationOutputData.KnowledgeBaseAssociation).value
/**
* Casts this [AssistantAssociationOutputData] as a [KnowledgeBaseAssociation] and retrieves its [aws.sdk.kotlin.services.wisdom.model.KnowledgeBaseAssociationData] value. Returns null if the [AssistantAssociationOutputData] is not a [KnowledgeBaseAssociation].
*/
public fun asKnowledgeBaseAssociationOrNull(): aws.sdk.kotlin.services.wisdom.model.KnowledgeBaseAssociationData? = (this as? AssistantAssociationOutputData.KnowledgeBaseAssociation)?.value
}