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

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

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import kotlin.collections.List

/**
 * Applies only to 608 Embedded output captions. Insert: Include CLOSED-CAPTIONS lines in the manifest. Specify at least one language in the CC1 Language Code field. One CLOSED-CAPTION line is added for each Language Code you specify. Make sure to specify the languages in the order in which they appear in the original source (if the source is embedded format) or the order of the caption selectors (if the source is other than embedded). Otherwise, languages in the manifest will not match up properly with the output captions. None: Include CLOSED-CAPTIONS=NONE line in the manifest. Omit: Omit any CLOSED-CAPTIONS line from the manifest.
 */
public sealed class HlsCaptionLanguageSetting {

    public abstract val value: kotlin.String

    public object Insert : aws.sdk.kotlin.services.mediaconvert.model.HlsCaptionLanguageSetting() {
        override val value: kotlin.String = "INSERT"
        override fun toString(): kotlin.String = value
    }

    public object None : aws.sdk.kotlin.services.mediaconvert.model.HlsCaptionLanguageSetting() {
        override val value: kotlin.String = "NONE"
        override fun toString(): kotlin.String = value
    }

    public object Omit : aws.sdk.kotlin.services.mediaconvert.model.HlsCaptionLanguageSetting() {
        override val value: kotlin.String = "OMIT"
        override fun toString(): kotlin.String = value
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.HlsCaptionLanguageSetting() {
        override fun toString(): kotlin.String = value
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.mediaconvert.model.HlsCaptionLanguageSetting = when(str) {
            "INSERT" -> Insert
            "NONE" -> None
            "OMIT" -> Omit
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = listOf(
            Insert,
            None,
            Omit
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy