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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.CharLengthSemantics.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.databasemigrationservice.model

import kotlin.collections.List

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

    public object Byte : aws.sdk.kotlin.services.databasemigrationservice.model.CharLengthSemantics() {
        override val value: kotlin.String = "byte"
        override fun toString(): kotlin.String = "Byte"
    }

    public object Char : aws.sdk.kotlin.services.databasemigrationservice.model.CharLengthSemantics() {
        override val value: kotlin.String = "char"
        override fun toString(): kotlin.String = "Char"
    }

    public object Default : aws.sdk.kotlin.services.databasemigrationservice.model.CharLengthSemantics() {
        override val value: kotlin.String = "default"
        override fun toString(): kotlin.String = "Default"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.databasemigrationservice.model.CharLengthSemantics() {
        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.databasemigrationservice.model.CharLengthSemantics = when (value) {
            "byte" -> Byte
            "char" -> Char
            "default" -> Default
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Byte,
            Char,
            Default,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy