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

commonMain.aws.sdk.kotlin.services.translate.model.DisplayLanguageCode.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.translate.model

import kotlin.collections.List

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

    public object De : aws.sdk.kotlin.services.translate.model.DisplayLanguageCode() {
        override val value: kotlin.String = "de"
        override fun toString(): kotlin.String = "De"
    }

    public object En : aws.sdk.kotlin.services.translate.model.DisplayLanguageCode() {
        override val value: kotlin.String = "en"
        override fun toString(): kotlin.String = "En"
    }

    public object Es : aws.sdk.kotlin.services.translate.model.DisplayLanguageCode() {
        override val value: kotlin.String = "es"
        override fun toString(): kotlin.String = "Es"
    }

    public object Fr : aws.sdk.kotlin.services.translate.model.DisplayLanguageCode() {
        override val value: kotlin.String = "fr"
        override fun toString(): kotlin.String = "Fr"
    }

    public object It : aws.sdk.kotlin.services.translate.model.DisplayLanguageCode() {
        override val value: kotlin.String = "it"
        override fun toString(): kotlin.String = "It"
    }

    public object Ja : aws.sdk.kotlin.services.translate.model.DisplayLanguageCode() {
        override val value: kotlin.String = "ja"
        override fun toString(): kotlin.String = "Ja"
    }

    public object Ko : aws.sdk.kotlin.services.translate.model.DisplayLanguageCode() {
        override val value: kotlin.String = "ko"
        override fun toString(): kotlin.String = "Ko"
    }

    public object Pt : aws.sdk.kotlin.services.translate.model.DisplayLanguageCode() {
        override val value: kotlin.String = "pt"
        override fun toString(): kotlin.String = "Pt"
    }

    public object Zh : aws.sdk.kotlin.services.translate.model.DisplayLanguageCode() {
        override val value: kotlin.String = "zh"
        override fun toString(): kotlin.String = "Zh"
    }

    public object ZhTw : aws.sdk.kotlin.services.translate.model.DisplayLanguageCode() {
        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.translate.model.DisplayLanguageCode() {
        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.translate.model.DisplayLanguageCode = when (value) {
            "de" -> De
            "en" -> En
            "es" -> Es
            "fr" -> Fr
            "it" -> It
            "ja" -> Ja
            "ko" -> Ko
            "pt" -> Pt
            "zh" -> Zh
            "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(
            De,
            En,
            Es,
            Fr,
            It,
            Ja,
            Ko,
            Pt,
            Zh,
            ZhTw,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy