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

commonMain.aws.sdk.kotlin.services.transcribestreaming.model.PartialResultsStability.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.transcribestreaming.model

import kotlin.collections.List

public sealed class PartialResultsStability {

    public abstract val value: kotlin.String

    public object High : aws.sdk.kotlin.services.transcribestreaming.model.PartialResultsStability() {
        override val value: kotlin.String = "high"
        override fun toString(): kotlin.String = value
    }

    public object Low : aws.sdk.kotlin.services.transcribestreaming.model.PartialResultsStability() {
        override val value: kotlin.String = "low"
        override fun toString(): kotlin.String = value
    }

    public object Medium : aws.sdk.kotlin.services.transcribestreaming.model.PartialResultsStability() {
        override val value: kotlin.String = "medium"
        override fun toString(): kotlin.String = value
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.transcribestreaming.model.PartialResultsStability() {
        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.transcribestreaming.model.PartialResultsStability = when(str) {
            "high" -> High
            "low" -> Low
            "medium" -> Medium
            else -> SdkUnknown(str)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy