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

commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.pinpointsmsvoicev2.model

import kotlin.collections.List

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

    public object DeDe : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "DE_DE"
        override fun toString(): kotlin.String = "DeDe"
    }

    public object EnGb : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "EN_GB"
        override fun toString(): kotlin.String = "EnGb"
    }

    public object EnUs : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "EN_US"
        override fun toString(): kotlin.String = "EnUs"
    }

    public object Es419 : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "ES_419"
        override fun toString(): kotlin.String = "Es419"
    }

    public object EsEs : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "ES_ES"
        override fun toString(): kotlin.String = "EsEs"
    }

    public object FrCa : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "FR_CA"
        override fun toString(): kotlin.String = "FrCa"
    }

    public object FrFr : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "FR_FR"
        override fun toString(): kotlin.String = "FrFr"
    }

    public object ItIt : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "IT_IT"
        override fun toString(): kotlin.String = "ItIt"
    }

    public object JaJp : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "JA_JP"
        override fun toString(): kotlin.String = "JaJp"
    }

    public object KoKr : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "KO_KR"
        override fun toString(): kotlin.String = "KoKr"
    }

    public object PtBr : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "PT_BR"
        override fun toString(): kotlin.String = "PtBr"
    }

    public object ZhCn : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "ZH_CN"
        override fun toString(): kotlin.String = "ZhCn"
    }

    public object ZhTw : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        override val value: kotlin.String = "ZH_TW"
        override fun toString(): kotlin.String = "ZhTw"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.pinpointsmsvoicev2.model.LanguageCode() {
        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.pinpointsmsvoicev2.model.LanguageCode = when (value) {
            "DE_DE" -> DeDe
            "EN_GB" -> EnGb
            "EN_US" -> EnUs
            "ES_419" -> Es419
            "ES_ES" -> EsEs
            "FR_CA" -> FrCa
            "FR_FR" -> FrFr
            "IT_IT" -> ItIt
            "JA_JP" -> JaJp
            "KO_KR" -> KoKr
            "PT_BR" -> PtBr
            "ZH_CN" -> ZhCn
            "ZH_TW" -> ZhTw
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            DeDe,
            EnGb,
            EnUs,
            Es419,
            EsEs,
            FrCa,
            FrFr,
            ItIt,
            JaJp,
            KoKr,
            PtBr,
            ZhCn,
            ZhTw,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy