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

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

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

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

import kotlin.collections.List

/**
 * When set to LEGACY, the segment target duration is always rounded up to the nearest integer value above its current value in seconds. When set to SPEC\\_COMPLIANT, the segment target duration is rounded up to the nearest integer value if fraction seconds are greater than or equal to 0.5 (>= 0.5) and rounded down if less than 0.5 (< 0.5). You may need to use LEGACY if your client needs to ensure that the target duration is always longer than the actual duration of the segment. Some older players may experience interrupted playback when the actual duration of a track in a segment is longer than the target duration.
 */
public sealed class HlsTargetDurationCompatibilityMode {

    public abstract val value: kotlin.String

    public object Legacy : aws.sdk.kotlin.services.mediaconvert.model.HlsTargetDurationCompatibilityMode() {
        override val value: kotlin.String = "LEGACY"
        override fun toString(): kotlin.String = value
    }

    public object SpecCompliant : aws.sdk.kotlin.services.mediaconvert.model.HlsTargetDurationCompatibilityMode() {
        override val value: kotlin.String = "SPEC_COMPLIANT"
        override fun toString(): kotlin.String = value
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.HlsTargetDurationCompatibilityMode() {
        override fun toString(): kotlin.String = value
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.mediaconvert.model.HlsTargetDurationCompatibilityMode = when(str) {
            "LEGACY" -> Legacy
            "SPEC_COMPLIANT" -> SpecCompliant
            else -> SdkUnknown(str)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy