commonMain.aws.sdk.kotlin.services.mediaconvert.model.Mpeg2FramerateControl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediaconvert-jvm Show documentation
Show all versions of mediaconvert-jvm Show documentation
The AWS SDK for Kotlin client for MediaConvert
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.model
import kotlin.collections.List
/**
* If you are using the console, use the Framerate setting to specify the frame rate for this output. If you want to keep the same frame rate as the input video, choose Follow source. If you want to do frame rate conversion, choose a frame rate from the dropdown list or choose Custom. The framerates shown in the dropdown list are decimal approximations of fractions. If you choose Custom, specify your frame rate as a fraction.
*/
public sealed class Mpeg2FramerateControl {
public abstract val value: kotlin.String
public object InitializeFromSource : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2FramerateControl() {
override val value: kotlin.String = "INITIALIZE_FROM_SOURCE"
override fun toString(): kotlin.String = "InitializeFromSource"
}
public object Specified : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2FramerateControl() {
override val value: kotlin.String = "SPECIFIED"
override fun toString(): kotlin.String = "Specified"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2FramerateControl() {
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.Mpeg2FramerateControl = when (value) {
"INITIALIZE_FROM_SOURCE" -> InitializeFromSource
"SPECIFIED" -> Specified
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
InitializeFromSource,
Specified,
)
}
}