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

commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.StartLiveTailResponseStream.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.cloudwatchlogs.model



/**
 * This object includes the stream returned by your [StartLiveTail](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartLiveTail.html) request.
 */
public sealed class StartLiveTailResponseStream {
    /**
     * This object contains information about this Live Tail session, including the log groups included and the log stream filters, if any.
     */
    public data class SessionStart(val value: aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionStart) : aws.sdk.kotlin.services.cloudwatchlogs.model.StartLiveTailResponseStream() {
    }

    /**
     * This object contains the log events and session metadata.
     */
    public data class SessionUpdate(val value: aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionUpdate) : aws.sdk.kotlin.services.cloudwatchlogs.model.StartLiveTailResponseStream() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.cloudwatchlogs.model.StartLiveTailResponseStream() {
    }

    /**
     * Casts this [StartLiveTailResponseStream] as a [SessionStart] and retrieves its [aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionStart] value. Throws an exception if the [StartLiveTailResponseStream] is not a
     * [SessionStart].
     */
    public fun asSessionStart(): aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionStart = (this as StartLiveTailResponseStream.SessionStart).value

    /**
     * Casts this [StartLiveTailResponseStream] as a [SessionStart] and retrieves its [aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionStart] value. Returns null if the [StartLiveTailResponseStream] is not a [SessionStart].
     */
    public fun asSessionStartOrNull(): aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionStart? = (this as? StartLiveTailResponseStream.SessionStart)?.value

    /**
     * Casts this [StartLiveTailResponseStream] as a [SessionUpdate] and retrieves its [aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionUpdate] value. Throws an exception if the [StartLiveTailResponseStream] is not a
     * [SessionUpdate].
     */
    public fun asSessionUpdate(): aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionUpdate = (this as StartLiveTailResponseStream.SessionUpdate).value

    /**
     * Casts this [StartLiveTailResponseStream] as a [SessionUpdate] and retrieves its [aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionUpdate] value. Returns null if the [StartLiveTailResponseStream] is not a [SessionUpdate].
     */
    public fun asSessionUpdateOrNull(): aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionUpdate? = (this as? StartLiveTailResponseStream.SessionUpdate)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy