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

commonMain.aws.sdk.kotlin.services.glue.model.Compatibility.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 Compatibility {
    public abstract val value: kotlin.String

    public object Backward : aws.sdk.kotlin.services.glue.model.Compatibility() {
        override val value: kotlin.String = "BACKWARD"
        override fun toString(): kotlin.String = "Backward"
    }

    public object BackwardAll : aws.sdk.kotlin.services.glue.model.Compatibility() {
        override val value: kotlin.String = "BACKWARD_ALL"
        override fun toString(): kotlin.String = "BackwardAll"
    }

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

    public object Forward : aws.sdk.kotlin.services.glue.model.Compatibility() {
        override val value: kotlin.String = "FORWARD"
        override fun toString(): kotlin.String = "Forward"
    }

    public object ForwardAll : aws.sdk.kotlin.services.glue.model.Compatibility() {
        override val value: kotlin.String = "FORWARD_ALL"
        override fun toString(): kotlin.String = "ForwardAll"
    }

    public object Full : aws.sdk.kotlin.services.glue.model.Compatibility() {
        override val value: kotlin.String = "FULL"
        override fun toString(): kotlin.String = "Full"
    }

    public object FullAll : aws.sdk.kotlin.services.glue.model.Compatibility() {
        override val value: kotlin.String = "FULL_ALL"
        override fun toString(): kotlin.String = "FullAll"
    }

    public object None : aws.sdk.kotlin.services.glue.model.Compatibility() {
        override val value: kotlin.String = "NONE"
        override fun toString(): kotlin.String = "None"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glue.model.Compatibility() {
        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.Compatibility = when (value) {
            "BACKWARD" -> Backward
            "BACKWARD_ALL" -> BackwardAll
            "DISABLED" -> Disabled
            "FORWARD" -> Forward
            "FORWARD_ALL" -> ForwardAll
            "FULL" -> Full
            "FULL_ALL" -> FullAll
            "NONE" -> None
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Backward,
            BackwardAll,
            Disabled,
            Forward,
            ForwardAll,
            Full,
            FullAll,
            None,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy