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