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

commonMain.aws.sdk.kotlin.services.lexruntimev2.model.PlaybackInterruptionReason.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lexruntimev2.model

import kotlin.collections.List

public sealed class PlaybackInterruptionReason {
    public abstract val value: kotlin.String

    public object DtmfStartDetected : aws.sdk.kotlin.services.lexruntimev2.model.PlaybackInterruptionReason() {
        override val value: kotlin.String = "DTMF_START_DETECTED"
        override fun toString(): kotlin.String = "DtmfStartDetected"
    }

    public object TextDetected : aws.sdk.kotlin.services.lexruntimev2.model.PlaybackInterruptionReason() {
        override val value: kotlin.String = "TEXT_DETECTED"
        override fun toString(): kotlin.String = "TextDetected"
    }

    public object VoiceStartDetected : aws.sdk.kotlin.services.lexruntimev2.model.PlaybackInterruptionReason() {
        override val value: kotlin.String = "VOICE_START_DETECTED"
        override fun toString(): kotlin.String = "VoiceStartDetected"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.lexruntimev2.model.PlaybackInterruptionReason() {
        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.lexruntimev2.model.PlaybackInterruptionReason = when (value) {
            "DTMF_START_DETECTED" -> DtmfStartDetected
            "TEXT_DETECTED" -> TextDetected
            "VOICE_START_DETECTED" -> VoiceStartDetected
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            DtmfStartDetected,
            TextDetected,
            VoiceStartDetected,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy