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

commonMain.aws.sdk.kotlin.services.mediaconvert.model.M2tsSegmentationStyle.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediaconvert.model

import kotlin.collections.List

/**
 * The segmentation style parameter controls how segmentation markers are inserted into the transport stream. With avails, it is possible that segments may be truncated, which can influence where future segmentation markers are inserted. When a segmentation style of "reset_cadence" is selected and a segment is truncated due to an avail, we will reset the segmentation cadence. This means the subsequent segment will have a duration of of $segmentation_time seconds. When a segmentation style of "maintain_cadence" is selected and a segment is truncated due to an avail, we will not reset the segmentation cadence. This means the subsequent segment will likely be truncated as well. However, all segments after that will have a duration of $segmentation_time seconds. Note that EBP lookahead is a slight exception to this rule.
 */
public sealed class M2tsSegmentationStyle {
    public abstract val value: kotlin.String

    public object MaintainCadence : aws.sdk.kotlin.services.mediaconvert.model.M2tsSegmentationStyle() {
        override val value: kotlin.String = "MAINTAIN_CADENCE"
        override fun toString(): kotlin.String = "MaintainCadence"
    }

    public object ResetCadence : aws.sdk.kotlin.services.mediaconvert.model.M2tsSegmentationStyle() {
        override val value: kotlin.String = "RESET_CADENCE"
        override fun toString(): kotlin.String = "ResetCadence"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.M2tsSegmentationStyle() {
        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.mediaconvert.model.M2tsSegmentationStyle = when (value) {
            "MAINTAIN_CADENCE" -> MaintainCadence
            "RESET_CADENCE" -> ResetCadence
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            MaintainCadence,
            ResetCadence,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy