commonMain.aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryOutput.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
/**
* Contains details about the protected query output.
*/
public sealed class ProtectedQueryOutput {
/**
* The list of member Amazon Web Services account(s) that received the results of the query.
*/
public data class MemberList(val value: List) : aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryOutput() {
}
/**
* If present, the output for a protected query with an `S3` output type.
*/
public data class S3(val value: aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryS3Output) : aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryOutput() {
}
public object SdkUnknown : aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryOutput() {
}
/**
* Casts this [ProtectedQueryOutput] as a [MemberList] and retrieves its [List] value. Throws an exception if the [ProtectedQueryOutput] is not a
* [MemberList].
*/
public fun asMemberList(): List = (this as ProtectedQueryOutput.MemberList).value
/**
* Casts this [ProtectedQueryOutput] as a [MemberList] and retrieves its [List] value. Returns null if the [ProtectedQueryOutput] is not a [MemberList].
*/
public fun asMemberListOrNull(): List? = (this as? ProtectedQueryOutput.MemberList)?.value
/**
* Casts this [ProtectedQueryOutput] as a [S3] and retrieves its [aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryS3Output] value. Throws an exception if the [ProtectedQueryOutput] is not a
* [S3].
*/
public fun asS3(): aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryS3Output = (this as ProtectedQueryOutput.S3).value
/**
* Casts this [ProtectedQueryOutput] as a [S3] and retrieves its [aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryS3Output] value. Returns null if the [ProtectedQueryOutput] is not a [S3].
*/
public fun asS3OrNull(): aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryS3Output? = (this as? ProtectedQueryOutput.S3)?.value
}