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

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

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

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

import kotlin.collections.List

/**
 * If you select ALIGN_TO_VIDEO, MediaConvert writes captions and data packets with Presentation Timestamp (PTS) values greater than or equal to the first video packet PTS (MediaConvert drops captions and data packets with lesser PTS values). Keep the default value to allow all PTS values.
 */
public sealed class M2tsDataPtsControl {
    public abstract val value: kotlin.String

    public object AlignToVideo : aws.sdk.kotlin.services.mediaconvert.model.M2tsDataPtsControl() {
        override val value: kotlin.String = "ALIGN_TO_VIDEO"
        override fun toString(): kotlin.String = "AlignToVideo"
    }

    public object Auto : aws.sdk.kotlin.services.mediaconvert.model.M2tsDataPtsControl() {
        override val value: kotlin.String = "AUTO"
        override fun toString(): kotlin.String = "Auto"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.M2tsDataPtsControl() {
        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.M2tsDataPtsControl = when (value) {
            "ALIGN_TO_VIDEO" -> AlignToVideo
            "AUTO" -> Auto
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            AlignToVideo,
            Auto,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy