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

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

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

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

import kotlin.collections.List

/**
 * Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that's interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
 */
public sealed class Mpeg2InterlaceMode {
    public abstract val value: kotlin.String

    public object BottomField : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2InterlaceMode() {
        override val value: kotlin.String = "BOTTOM_FIELD"
        override fun toString(): kotlin.String = "BottomField"
    }

    public object FollowBottomField : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2InterlaceMode() {
        override val value: kotlin.String = "FOLLOW_BOTTOM_FIELD"
        override fun toString(): kotlin.String = "FollowBottomField"
    }

    public object FollowTopField : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2InterlaceMode() {
        override val value: kotlin.String = "FOLLOW_TOP_FIELD"
        override fun toString(): kotlin.String = "FollowTopField"
    }

    public object Progressive : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2InterlaceMode() {
        override val value: kotlin.String = "PROGRESSIVE"
        override fun toString(): kotlin.String = "Progressive"
    }

    public object TopField : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2InterlaceMode() {
        override val value: kotlin.String = "TOP_FIELD"
        override fun toString(): kotlin.String = "TopField"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2InterlaceMode() {
        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.Mpeg2InterlaceMode = when (value) {
            "BOTTOM_FIELD" -> BottomField
            "FOLLOW_BOTTOM_FIELD" -> FollowBottomField
            "FOLLOW_TOP_FIELD" -> FollowTopField
            "PROGRESSIVE" -> Progressive
            "TOP_FIELD" -> TopField
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            BottomField,
            FollowBottomField,
            FollowTopField,
            Progressive,
            TopField,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy