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

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

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import kotlin.collections.List

/**
 * Specify how you want MediaConvert to determine the segment length. Choose Exact to have the encoder use the exact length that you specify with the setting Segment length. This might result in extra I-frames. Choose Multiple of GOP to have the encoder round up the segment lengths to match the next GOP boundary.
 */
public sealed class HlsSegmentLengthControl {
    public abstract val value: kotlin.String

    public object Exact : aws.sdk.kotlin.services.mediaconvert.model.HlsSegmentLengthControl() {
        override val value: kotlin.String = "EXACT"
        override fun toString(): kotlin.String = "Exact"
    }

    public object GopMultiple : aws.sdk.kotlin.services.mediaconvert.model.HlsSegmentLengthControl() {
        override val value: kotlin.String = "GOP_MULTIPLE"
        override fun toString(): kotlin.String = "GopMultiple"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.HlsSegmentLengthControl() {
        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.HlsSegmentLengthControl = when (value) {
            "EXACT" -> Exact
            "GOP_MULTIPLE" -> GopMultiple
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Exact,
            GopMultiple,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy