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

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

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

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

import kotlin.collections.List

/**
 * Set Caption segment length control to Match video to create caption segments that align with the video segments from the first video output in this output group. For example, if the video segments are 2 seconds long, your WebVTT segments will also be 2 seconds long. Keep the default setting, Large segments to create caption segments that are 300 seconds long.
 */
public sealed class HlsCaptionSegmentLengthControl {
    public abstract val value: kotlin.String

    public object LargeSegments : aws.sdk.kotlin.services.mediaconvert.model.HlsCaptionSegmentLengthControl() {
        override val value: kotlin.String = "LARGE_SEGMENTS"
        override fun toString(): kotlin.String = "LargeSegments"
    }

    public object MatchVideo : aws.sdk.kotlin.services.mediaconvert.model.HlsCaptionSegmentLengthControl() {
        override val value: kotlin.String = "MATCH_VIDEO"
        override fun toString(): kotlin.String = "MatchVideo"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.HlsCaptionSegmentLengthControl() {
        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.HlsCaptionSegmentLengthControl = when (value) {
            "LARGE_SEGMENTS" -> LargeSegments
            "MATCH_VIDEO" -> MatchVideo
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            LargeSegments,
            MatchVideo,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy