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

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

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

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

import kotlin.collections.List

/**
 * Use Profile to set the MPEG-2 profile for the video output.
 */
public sealed class Mpeg2CodecProfile {
    public abstract val value: kotlin.String

    public object Main : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2CodecProfile() {
        override val value: kotlin.String = "MAIN"
        override fun toString(): kotlin.String = "Main"
    }

    public object Profile422 : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2CodecProfile() {
        override val value: kotlin.String = "PROFILE_422"
        override fun toString(): kotlin.String = "Profile422"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2CodecProfile() {
        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.Mpeg2CodecProfile = when (value) {
            "MAIN" -> Main
            "PROFILE_422" -> Profile422
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Main,
            Profile422,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy