
commonMain.aws.sdk.kotlin.services.mediaconvert.model.AudioLanguageCodeControl.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 which source for language code takes precedence for this audio track. When you choose Follow input, the service uses the language code from the input track if it's present. If there's no languge code on the input track, the service uses the code that you specify in the setting Language code. When you choose Use configured, the service uses the language code that you specify.
*/
public sealed class AudioLanguageCodeControl {
public abstract val value: kotlin.String
public object FollowInput : aws.sdk.kotlin.services.mediaconvert.model.AudioLanguageCodeControl() {
override val value: kotlin.String = "FOLLOW_INPUT"
override fun toString(): kotlin.String = "FollowInput"
}
public object UseConfigured : aws.sdk.kotlin.services.mediaconvert.model.AudioLanguageCodeControl() {
override val value: kotlin.String = "USE_CONFIGURED"
override fun toString(): kotlin.String = "UseConfigured"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.AudioLanguageCodeControl() {
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.AudioLanguageCodeControl = when (value) {
"FOLLOW_INPUT" -> FollowInput
"USE_CONFIGURED" -> UseConfigured
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
FollowInput,
UseConfigured,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy