commonMain.aws.sdk.kotlin.services.wisdom.model.RecommendationTriggerData.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
/**
* A union type containing information related to the trigger.
*/
public sealed class RecommendationTriggerData {
/**
* Data associated with the QUERY RecommendationTriggerType.
*/
public data class Query(val value: aws.sdk.kotlin.services.wisdom.model.QueryRecommendationTriggerData) : aws.sdk.kotlin.services.wisdom.model.RecommendationTriggerData() {
}
public object SdkUnknown : aws.sdk.kotlin.services.wisdom.model.RecommendationTriggerData() {
}
/**
* Casts this [RecommendationTriggerData] as a [Query] and retrieves its [aws.sdk.kotlin.services.wisdom.model.QueryRecommendationTriggerData] value. Throws an exception if the [RecommendationTriggerData] is not a
* [Query].
*/
public fun asQuery(): aws.sdk.kotlin.services.wisdom.model.QueryRecommendationTriggerData = (this as RecommendationTriggerData.Query).value
/**
* Casts this [RecommendationTriggerData] as a [Query] and retrieves its [aws.sdk.kotlin.services.wisdom.model.QueryRecommendationTriggerData] value. Returns null if the [RecommendationTriggerData] is not a [Query].
*/
public fun asQueryOrNull(): aws.sdk.kotlin.services.wisdom.model.QueryRecommendationTriggerData? = (this as? RecommendationTriggerData.Query)?.value
}