commonMain.aws.sdk.kotlin.services.wisdom.model.AssistantAssociationInputData.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 input into Wisdom as a result of the assistant association.
*/
public sealed class AssistantAssociationInputData {
/**
* The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it.
*/
public data class KnowledgeBaseId(val value: kotlin.String) : aws.sdk.kotlin.services.wisdom.model.AssistantAssociationInputData() {
}
public object SdkUnknown : aws.sdk.kotlin.services.wisdom.model.AssistantAssociationInputData() {
}
/**
* Casts this [AssistantAssociationInputData] as a [KnowledgeBaseId] and retrieves its [kotlin.String] value. Throws an exception if the [AssistantAssociationInputData] is not a
* [KnowledgeBaseId].
*/
public fun asKnowledgeBaseId(): kotlin.String = (this as AssistantAssociationInputData.KnowledgeBaseId).value
/**
* Casts this [AssistantAssociationInputData] as a [KnowledgeBaseId] and retrieves its [kotlin.String] value. Returns null if the [AssistantAssociationInputData] is not a [KnowledgeBaseId].
*/
public fun asKnowledgeBaseIdOrNull(): kotlin.String? = (this as? AssistantAssociationInputData.KnowledgeBaseId)?.value
}