All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.cleanrooms.model.ProtectedQueryOutput.kt Maven / Gradle / Ivy

There is a newer version: 1.3.31
Show newest version
// 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy