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

commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.Status.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lexmodelbuildingservice.model

import kotlin.collections.List

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

    public object Building : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Status() {
        override val value: kotlin.String = "BUILDING"
        override fun toString(): kotlin.String = "Building"
    }

    public object Failed : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Status() {
        override val value: kotlin.String = "FAILED"
        override fun toString(): kotlin.String = "Failed"
    }

    public object NotBuilt : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Status() {
        override val value: kotlin.String = "NOT_BUILT"
        override fun toString(): kotlin.String = "NotBuilt"
    }

    public object Ready : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Status() {
        override val value: kotlin.String = "READY"
        override fun toString(): kotlin.String = "Ready"
    }

    public object ReadyBasicTesting : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Status() {
        override val value: kotlin.String = "READY_BASIC_TESTING"
        override fun toString(): kotlin.String = "ReadyBasicTesting"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.lexmodelbuildingservice.model.Status() {
        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.Status = when (value) {
            "BUILDING" -> Building
            "FAILED" -> Failed
            "NOT_BUILT" -> NotBuilt
            "READY" -> Ready
            "READY_BASIC_TESTING" -> ReadyBasicTesting
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Building,
            Failed,
            NotBuilt,
            Ready,
            ReadyBasicTesting,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy