commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexmodelbuildingservice.model
import kotlin.collections.List
public sealed class Locale {
public abstract val value: kotlin.String
public object DeDe : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "de-DE"
override fun toString(): kotlin.String = "DeDe"
}
public object EnAu : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "en-AU"
override fun toString(): kotlin.String = "EnAu"
}
public object EnGb : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "en-GB"
override fun toString(): kotlin.String = "EnGb"
}
public object EnIn : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "en-IN"
override fun toString(): kotlin.String = "EnIn"
}
public object EnUs : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "en-US"
override fun toString(): kotlin.String = "EnUs"
}
public object Es419 : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "es-419"
override fun toString(): kotlin.String = "Es419"
}
public object EsEs : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "es-ES"
override fun toString(): kotlin.String = "EsEs"
}
public object EsUs : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "es-US"
override fun toString(): kotlin.String = "EsUs"
}
public object FrCa : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "fr-CA"
override fun toString(): kotlin.String = "FrCa"
}
public object FrFr : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "fr-FR"
override fun toString(): kotlin.String = "FrFr"
}
public object ItIt : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "it-IT"
override fun toString(): kotlin.String = "ItIt"
}
public object JaJp : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "ja-JP"
override fun toString(): kotlin.String = "JaJp"
}
public object KoKr : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Locale() {
override val value: kotlin.String = "ko-KR"
override fun toString(): kotlin.String = "KoKr"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.lexmodelbuildingservice.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.lexmodelbuildingservice.model.Locale = when (value) {
"de-DE" -> DeDe
"en-AU" -> EnAu
"en-GB" -> EnGb
"en-IN" -> EnIn
"en-US" -> EnUs
"es-419" -> Es419
"es-ES" -> EsEs
"es-US" -> EsUs
"fr-CA" -> FrCa
"fr-FR" -> FrFr
"it-IT" -> ItIt
"ja-JP" -> JaJp
"ko-KR" -> KoKr
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,
EnAu,
EnGb,
EnIn,
EnUs,
Es419,
EsEs,
EsUs,
FrCa,
FrFr,
ItIt,
JaJp,
KoKr,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy