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

commonMain.aws.sdk.kotlin.services.mediaconvert.model.BurninSubtitleAlignment.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 alignment of your captions. If no explicit x_position is provided, setting alignment to centered will placethe captions at the bottom center of the output. Similarly, setting a left alignment willalign captions to the bottom left of the output. If x and y positions are given in conjunction with the alignment parameter, the font will be justified (either left or centered) relative to those coordinates.
 */
public sealed class BurninSubtitleAlignment {
    public abstract val value: kotlin.String

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

    public object Centered : aws.sdk.kotlin.services.mediaconvert.model.BurninSubtitleAlignment() {
        override val value: kotlin.String = "CENTERED"
        override fun toString(): kotlin.String = "Centered"
    }

    public object Left : aws.sdk.kotlin.services.mediaconvert.model.BurninSubtitleAlignment() {
        override val value: kotlin.String = "LEFT"
        override fun toString(): kotlin.String = "Left"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.BurninSubtitleAlignment() {
        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.BurninSubtitleAlignment = when (value) {
            "AUTO" -> Auto
            "CENTERED" -> Centered
            "LEFT" -> Left
            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,
            Centered,
            Left,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy