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