commonMain.aws.sdk.kotlin.services.wisdom.model.QuickResponseContentProvider.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 container quick response content.
*/
public sealed class QuickResponseContentProvider {
/**
* The content of the quick response.
*/
public data class Content(val value: kotlin.String) : aws.sdk.kotlin.services.wisdom.model.QuickResponseContentProvider() {
}
public object SdkUnknown : aws.sdk.kotlin.services.wisdom.model.QuickResponseContentProvider() {
}
/**
* Casts this [QuickResponseContentProvider] as a [Content] and retrieves its [kotlin.String] value. Throws an exception if the [QuickResponseContentProvider] is not a
* [Content].
*/
public fun asContent(): kotlin.String = (this as QuickResponseContentProvider.Content).value
/**
* Casts this [QuickResponseContentProvider] as a [Content] and retrieves its [kotlin.String] value. Returns null if the [QuickResponseContentProvider] is not a [Content].
*/
public fun asContentOrNull(): kotlin.String? = (this as? QuickResponseContentProvider.Content)?.value
}