
commonMain.aws.sdk.kotlin.services.qapps.model.PredictQAppInputOptions.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qapps.model
/**
* The input options for generating an Q App definition.
*/
public sealed class PredictQAppInputOptions {
/**
* A conversation to use as input for generating the Q App definition.
*/
public data class Conversation(val value: List) : aws.sdk.kotlin.services.qapps.model.PredictQAppInputOptions() {
}
/**
* A problem statement to use as input for generating the Q App definition.
*/
public data class ProblemStatement(val value: kotlin.String) : aws.sdk.kotlin.services.qapps.model.PredictQAppInputOptions() {
}
public object SdkUnknown : aws.sdk.kotlin.services.qapps.model.PredictQAppInputOptions() {
}
/**
* Casts this [PredictQAppInputOptions] as a [Conversation] and retrieves its [List] value. Throws an exception if the [PredictQAppInputOptions] is not a
* [Conversation].
*/
public fun asConversation(): List = (this as PredictQAppInputOptions.Conversation).value
/**
* Casts this [PredictQAppInputOptions] as a [Conversation] and retrieves its [List] value. Returns null if the [PredictQAppInputOptions] is not a [Conversation].
*/
public fun asConversationOrNull(): List? = (this as? PredictQAppInputOptions.Conversation)?.value
/**
* Casts this [PredictQAppInputOptions] as a [ProblemStatement] and retrieves its [kotlin.String] value. Throws an exception if the [PredictQAppInputOptions] is not a
* [ProblemStatement].
*/
public fun asProblemStatement(): kotlin.String = (this as PredictQAppInputOptions.ProblemStatement).value
/**
* Casts this [PredictQAppInputOptions] as a [ProblemStatement] and retrieves its [kotlin.String] value. Returns null if the [PredictQAppInputOptions] is not a [ProblemStatement].
*/
public fun asProblemStatementOrNull(): kotlin.String? = (this as? PredictQAppInputOptions.ProblemStatement)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy