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

commonMain.aws.sdk.kotlin.services.finspace.model.EnvironmentStatus.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.finspace.model

import kotlin.collections.List

public sealed class EnvironmentStatus {

    public abstract val value: kotlin.String

    public object Created : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
        override val value: kotlin.String = "CREATED"
        override fun toString(): kotlin.String = value
    }

    public object CreateRequested : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
        override val value: kotlin.String = "CREATE_REQUESTED"
        override fun toString(): kotlin.String = value
    }

    public object Creating : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
        override val value: kotlin.String = "CREATING"
        override fun toString(): kotlin.String = value
    }

    public object Deleted : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
        override val value: kotlin.String = "DELETED"
        override fun toString(): kotlin.String = value
    }

    public object DeleteRequested : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
        override val value: kotlin.String = "DELETE_REQUESTED"
        override fun toString(): kotlin.String = value
    }

    public object Deleting : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
        override val value: kotlin.String = "DELETING"
        override fun toString(): kotlin.String = value
    }

    public object FailedCreation : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
        override val value: kotlin.String = "FAILED_CREATION"
        override fun toString(): kotlin.String = value
    }

    public object FailedDeletion : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
        override val value: kotlin.String = "FAILED_DELETION"
        override fun toString(): kotlin.String = value
    }

    public object RetryDeletion : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
        override val value: kotlin.String = "RETRY_DELETION"
        override fun toString(): kotlin.String = value
    }

    public object Suspended : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
        override val value: kotlin.String = "SUSPENDED"
        override fun toString(): kotlin.String = value
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
        override fun toString(): kotlin.String = value
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.finspace.model.EnvironmentStatus = when(str) {
            "CREATED" -> Created
            "CREATE_REQUESTED" -> CreateRequested
            "CREATING" -> Creating
            "DELETED" -> Deleted
            "DELETE_REQUESTED" -> DeleteRequested
            "DELETING" -> Deleting
            "FAILED_CREATION" -> FailedCreation
            "FAILED_DELETION" -> FailedDeletion
            "RETRY_DELETION" -> RetryDeletion
            "SUSPENDED" -> Suspended
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = listOf(
            Created,
            CreateRequested,
            Creating,
            Deleted,
            DeleteRequested,
            Deleting,
            FailedCreation,
            FailedDeletion,
            RetryDeletion,
            Suspended
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy