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

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

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

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

import kotlin.collections.List

/**
 * Specify the video Scaling behavior when your output has a different resolution than your input. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/video-scaling.html
 */
public sealed class ScalingBehavior {
    public abstract val value: kotlin.String

    public object Default : aws.sdk.kotlin.services.mediaconvert.model.ScalingBehavior() {
        override val value: kotlin.String = "DEFAULT"
        override fun toString(): kotlin.String = "Default"
    }

    public object Fill : aws.sdk.kotlin.services.mediaconvert.model.ScalingBehavior() {
        override val value: kotlin.String = "FILL"
        override fun toString(): kotlin.String = "Fill"
    }

    public object Fit : aws.sdk.kotlin.services.mediaconvert.model.ScalingBehavior() {
        override val value: kotlin.String = "FIT"
        override fun toString(): kotlin.String = "Fit"
    }

    public object FitNoUpscale : aws.sdk.kotlin.services.mediaconvert.model.ScalingBehavior() {
        override val value: kotlin.String = "FIT_NO_UPSCALE"
        override fun toString(): kotlin.String = "FitNoUpscale"
    }

    public object StretchToOutput : aws.sdk.kotlin.services.mediaconvert.model.ScalingBehavior() {
        override val value: kotlin.String = "STRETCH_TO_OUTPUT"
        override fun toString(): kotlin.String = "StretchToOutput"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.ScalingBehavior() {
        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.ScalingBehavior = when (value) {
            "DEFAULT" -> Default
            "FILL" -> Fill
            "FIT" -> Fit
            "FIT_NO_UPSCALE" -> FitNoUpscale
            "STRETCH_TO_OUTPUT" -> StretchToOutput
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Default,
            Fill,
            Fit,
            FitNoUpscale,
            StretchToOutput,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy