commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.StartLiveTailResponseStream.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatchlogs-jvm Show documentation
Show all versions of cloudwatchlogs-jvm Show documentation
The AWS SDK for Kotlin client for CloudWatch Logs
// 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
}