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

commonMain.aws.sdk.kotlin.services.devopsguru.model.Locale.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.devopsguru.model

import kotlin.collections.List

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

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

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

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

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

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

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

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

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

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

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

    public object ZhTw : aws.sdk.kotlin.services.devopsguru.model.Locale() {
        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.devopsguru.model.Locale() {
        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.devopsguru.model.Locale = when (value) {
            "DE_DE" -> DeDe
            "EN_GB" -> EnGb
            "EN_US" -> EnUs
            "ES_ES" -> EsEs
            "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,
            EsEs,
            FrFr,
            ItIt,
            JaJp,
            KoKr,
            PtBr,
            ZhCn,
            ZhTw,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy