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

commonMain.aws.sdk.kotlin.services.glue.model.QuoteChar.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.glue.model

import kotlin.collections.List

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

    public object Disabled : aws.sdk.kotlin.services.glue.model.QuoteChar() {
        override val value: kotlin.String = "disabled"
        override fun toString(): kotlin.String = "Disabled"
    }

    public object Quillemet : aws.sdk.kotlin.services.glue.model.QuoteChar() {
        override val value: kotlin.String = "quillemet"
        override fun toString(): kotlin.String = "Quillemet"
    }

    public object Quote : aws.sdk.kotlin.services.glue.model.QuoteChar() {
        override val value: kotlin.String = "quote"
        override fun toString(): kotlin.String = "Quote"
    }

    public object SingleQuote : aws.sdk.kotlin.services.glue.model.QuoteChar() {
        override val value: kotlin.String = "single_quote"
        override fun toString(): kotlin.String = "SingleQuote"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glue.model.QuoteChar() {
        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.glue.model.QuoteChar = when (value) {
            "disabled" -> Disabled
            "quillemet" -> Quillemet
            "quote" -> Quote
            "single_quote" -> SingleQuote
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Disabled,
            Quillemet,
            Quote,
            SingleQuote,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy