
commonMain.aws.sdk.kotlin.services.qconnect.model.QueryCondition.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qconnect.model
/**
* Information about how to query content.
*/
public sealed class QueryCondition {
/**
* The condition for the query.
*/
public data class Single(val value: aws.sdk.kotlin.services.qconnect.model.QueryConditionItem) : aws.sdk.kotlin.services.qconnect.model.QueryCondition() {
}
public object SdkUnknown : aws.sdk.kotlin.services.qconnect.model.QueryCondition() {
}
/**
* Casts this [QueryCondition] as a [Single] and retrieves its [aws.sdk.kotlin.services.qconnect.model.QueryConditionItem] value. Throws an exception if the [QueryCondition] is not a
* [Single].
*/
public fun asSingle(): aws.sdk.kotlin.services.qconnect.model.QueryConditionItem = (this as QueryCondition.Single).value
/**
* Casts this [QueryCondition] as a [Single] and retrieves its [aws.sdk.kotlin.services.qconnect.model.QueryConditionItem] value. Returns null if the [QueryCondition] is not a [Single].
*/
public fun asSingleOrNull(): aws.sdk.kotlin.services.qconnect.model.QueryConditionItem? = (this as? QueryCondition.Single)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy