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

commonMain.aws.sdk.kotlin.services.mediaconvert.model.InputRotate.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 Rotate to specify how the service rotates your video. You can choose automatic rotation or specify a rotation. You can specify a clockwise rotation of 0, 90, 180, or 270 degrees. If your input video container is .mov or .mp4 and your input has rotation metadata, you can choose Automatic to have the service rotate your video according to the rotation specified in the metadata. The rotation must be within one degree of 90, 180, or 270 degrees. If the rotation metadata specifies any other rotation, the service will default to no rotation. By default, the service does no rotation, even if your input video has rotation metadata. The service doesn't pass through rotation metadata.
 */
public sealed class InputRotate {
    public abstract val value: kotlin.String

    public object Auto : aws.sdk.kotlin.services.mediaconvert.model.InputRotate() {
        override val value: kotlin.String = "AUTO"
        override fun toString(): kotlin.String = "Auto"
    }

    public object Degrees180 : aws.sdk.kotlin.services.mediaconvert.model.InputRotate() {
        override val value: kotlin.String = "DEGREES_180"
        override fun toString(): kotlin.String = "Degrees180"
    }

    public object Degrees270 : aws.sdk.kotlin.services.mediaconvert.model.InputRotate() {
        override val value: kotlin.String = "DEGREES_270"
        override fun toString(): kotlin.String = "Degrees270"
    }

    public object Degrees90 : aws.sdk.kotlin.services.mediaconvert.model.InputRotate() {
        override val value: kotlin.String = "DEGREES_90"
        override fun toString(): kotlin.String = "Degrees90"
    }

    public object Degree0 : aws.sdk.kotlin.services.mediaconvert.model.InputRotate() {
        override val value: kotlin.String = "DEGREE_0"
        override fun toString(): kotlin.String = "Degree0"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.InputRotate() {
        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.InputRotate = when (value) {
            "AUTO" -> Auto
            "DEGREES_180" -> Degrees180
            "DEGREES_270" -> Degrees270
            "DEGREES_90" -> Degrees90
            "DEGREE_0" -> Degree0
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Auto,
            Degrees180,
            Degrees270,
            Degrees90,
            Degree0,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy