commonMain.aws.sdk.kotlin.services.cleanrooms.model.AnalysisSource.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanrooms-jvm Show documentation
Show all versions of cleanrooms-jvm Show documentation
The AWS SDK for Kotlin client for CleanRooms
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanrooms.model
/**
* The structure that defines the body of the analysis template.
*/
public sealed class AnalysisSource {
/**
* The query text.
*/
public data class Text(val value: kotlin.String) : aws.sdk.kotlin.services.cleanrooms.model.AnalysisSource() {
override fun toString(): kotlin.String = "AnalysisSource(*** Sensitive Data Redacted ***)"
}
public object SdkUnknown : aws.sdk.kotlin.services.cleanrooms.model.AnalysisSource() {
override fun toString(): kotlin.String = "AnalysisSource(*** Sensitive Data Redacted ***)"
}
/**
* Casts this [AnalysisSource] as a [Text] and retrieves its [kotlin.String] value. Throws an exception if the [AnalysisSource] is not a
* [Text].
*/
public fun asText(): kotlin.String = (this as AnalysisSource.Text).value
/**
* Casts this [AnalysisSource] as a [Text] and retrieves its [kotlin.String] value. Returns null if the [AnalysisSource] is not a [Text].
*/
public fun asTextOrNull(): kotlin.String? = (this as? AnalysisSource.Text)?.value
}