
commonMain.aws.sdk.kotlin.services.medialive.model.Scte35SegmentationCancelIndicator.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
import kotlin.collections.List
/**
* Corresponds to SCTE-35 segmentation_event_cancel_indicator. SEGMENTATION_EVENT_NOT_CANCELED corresponds to 0 in the SCTE-35 specification and indicates that this is an insertion request. SEGMENTATION_EVENT_CANCELED corresponds to 1 in the SCTE-35 specification and indicates that this is a cancelation request, in which case complete this field and the existing event ID to cancel.
*/
public sealed class Scte35SegmentationCancelIndicator {
public abstract val value: kotlin.String
public object SegmentationEventCanceled : aws.sdk.kotlin.services.medialive.model.Scte35SegmentationCancelIndicator() {
override val value: kotlin.String = "SEGMENTATION_EVENT_CANCELED"
override fun toString(): kotlin.String = "SegmentationEventCanceled"
}
public object SegmentationEventNotCanceled : aws.sdk.kotlin.services.medialive.model.Scte35SegmentationCancelIndicator() {
override val value: kotlin.String = "SEGMENTATION_EVENT_NOT_CANCELED"
override fun toString(): kotlin.String = "SegmentationEventNotCanceled"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.medialive.model.Scte35SegmentationCancelIndicator() {
override fun toString(): kotlin.String = "SdkUnknown($value)"
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.medialive.model.Scte35SegmentationCancelIndicator = when (value) {
"SEGMENTATION_EVENT_CANCELED" -> SegmentationEventCanceled
"SEGMENTATION_EVENT_NOT_CANCELED" -> SegmentationEventNotCanceled
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
SegmentationEventCanceled,
SegmentationEventNotCanceled,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy