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

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

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

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

import kotlin.collections.List

/**
 * Specify the initial presentation timestamp (PTS) offset for your transport stream output. To let MediaConvert automatically determine the initial PTS offset: Keep the default value, Auto. We recommend that you choose Auto for the widest player compatibility. The initial PTS will be at least two seconds and vary depending on your output's bitrate, HRD buffer size and HRD buffer initial fill percentage. To manually specify an initial PTS offset: Choose Seconds. Then specify the number of seconds with PTS offset.
 */
public sealed class TsPtsOffset {
    public abstract val value: kotlin.String

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

    public object Seconds : aws.sdk.kotlin.services.mediaconvert.model.TsPtsOffset() {
        override val value: kotlin.String = "SECONDS"
        override fun toString(): kotlin.String = "Seconds"
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy