commonMain.aws.sdk.kotlin.services.mediaconvert.model.HlsSegmentLengthControl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediaconvert-jvm Show documentation
Show all versions of mediaconvert-jvm Show documentation
The AWS SDK for Kotlin client for MediaConvert
// 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,
)
}
}