
commonMain.aws.sdk.kotlin.services.mediaconvert.model.M2tsPcrControl.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 is effective only when the PCR PID is the same as the video or audio elementary stream.
*/
public sealed class M2tsPcrControl {
public abstract val value: kotlin.String
public object ConfiguredPcrPeriod : aws.sdk.kotlin.services.mediaconvert.model.M2tsPcrControl() {
override val value: kotlin.String = "CONFIGURED_PCR_PERIOD"
override fun toString(): kotlin.String = "ConfiguredPcrPeriod"
}
public object PcrEveryPesPacket : aws.sdk.kotlin.services.mediaconvert.model.M2tsPcrControl() {
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.M2tsPcrControl() {
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.M2tsPcrControl = 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