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

commonMain.aws.sdk.kotlin.services.kinesis.model.SubscribeToShardEventStream.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.kinesis.model



/**
 * This is a tagged union for all of the types of events an enhanced fan-out consumer can receive over HTTP/2 after a call to SubscribeToShard.
 */
public sealed class SubscribeToShardEventStream {
    /**
     * After you call SubscribeToShard, Kinesis Data Streams sends events of this type to your consumer. For an example of how to handle these events, see [Enhanced Fan-Out Using the Kinesis Data Streams API](/streams/latest/dev/building-enhanced-consumers-api.html).
     */
    public data class SubscribeToShardEvent(val value: aws.sdk.kotlin.services.kinesis.model.SubscribeToShardEvent) : aws.sdk.kotlin.services.kinesis.model.SubscribeToShardEventStream() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.kinesis.model.SubscribeToShardEventStream() {
    }

    /**
     * Casts this [SubscribeToShardEventStream] as a [SubscribeToShardEvent] and retrieves its [aws.sdk.kotlin.services.kinesis.model.SubscribeToShardEvent] value. Throws an exception if the [SubscribeToShardEventStream] is not a
     * [SubscribeToShardEvent].
     */
    public fun asSubscribeToShardEvent(): aws.sdk.kotlin.services.kinesis.model.SubscribeToShardEvent = (this as SubscribeToShardEventStream.SubscribeToShardEvent).value

    /**
     * Casts this [SubscribeToShardEventStream] as a [SubscribeToShardEvent] and retrieves its [aws.sdk.kotlin.services.kinesis.model.SubscribeToShardEvent] value. Returns null if the [SubscribeToShardEventStream] is not a [SubscribeToShardEvent].
     */
    public fun asSubscribeToShardEventOrNull(): aws.sdk.kotlin.services.kinesis.model.SubscribeToShardEvent? = (this as? SubscribeToShardEventStream.SubscribeToShardEvent)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy