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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy