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

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

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

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

import kotlin.collections.List

/**
 * If the sample range metadata in your input video is accurate, or if you don't know about sample range, keep the default value, Follow, for this setting. When you do, the service automatically detects your input sample range. If your input video has metadata indicating the wrong sample range, specify the accurate sample range here. When you do, MediaConvert ignores any sample range information in the input metadata. Regardless of whether MediaConvert uses the input sample range or the sample range that you specify, MediaConvert uses the sample range for transcoding and also writes it to the output metadata.
 */
public sealed class InputSampleRange {
    public abstract val value: kotlin.String

    public object Follow : aws.sdk.kotlin.services.mediaconvert.model.InputSampleRange() {
        override val value: kotlin.String = "FOLLOW"
        override fun toString(): kotlin.String = "Follow"
    }

    public object FullRange : aws.sdk.kotlin.services.mediaconvert.model.InputSampleRange() {
        override val value: kotlin.String = "FULL_RANGE"
        override fun toString(): kotlin.String = "FullRange"
    }

    public object LimitedRange : aws.sdk.kotlin.services.mediaconvert.model.InputSampleRange() {
        override val value: kotlin.String = "LIMITED_RANGE"
        override fun toString(): kotlin.String = "LimitedRange"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.InputSampleRange() {
        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.InputSampleRange = when (value) {
            "FOLLOW" -> Follow
            "FULL_RANGE" -> FullRange
            "LIMITED_RANGE" -> LimitedRange
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Follow,
            FullRange,
            LimitedRange,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy