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

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

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

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

import kotlin.collections.List

/**
 * When set to PCR_EVERY_PES_PACKET a Program Clock Reference value is inserted for every Packetized Elementary Stream (PES) header. This parameter is effective only when the PCR PID is the same as the video or audio elementary stream.
 */
public sealed class M3u8PcrControl {
    public abstract val value: kotlin.String

    public object ConfiguredPcrPeriod : aws.sdk.kotlin.services.mediaconvert.model.M3u8PcrControl() {
        override val value: kotlin.String = "CONFIGURED_PCR_PERIOD"
        override fun toString(): kotlin.String = "ConfiguredPcrPeriod"
    }

    public object PcrEveryPesPacket : aws.sdk.kotlin.services.mediaconvert.model.M3u8PcrControl() {
        override val value: kotlin.String = "PCR_EVERY_PES_PACKET"
        override fun toString(): kotlin.String = "PcrEveryPesPacket"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.M3u8PcrControl() {
        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.M3u8PcrControl = when (value) {
            "CONFIGURED_PCR_PERIOD" -> ConfiguredPcrPeriod
            "PCR_EVERY_PES_PACKET" -> PcrEveryPesPacket
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            ConfiguredPcrPeriod,
            PcrEveryPesPacket,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy