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

commonMain.aws.sdk.kotlin.services.grafana.model.WorkspaceStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.grafana.model

import kotlin.collections.List

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

    /**
     * Workspace is active.
     */
    public object Active : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "ACTIVE"
        override fun toString(): kotlin.String = "Active"
    }

    /**
     * Workspace is being created.
     */
    public object Creating : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "CREATING"
        override fun toString(): kotlin.String = "Creating"
    }

    /**
     * Workspace creation failed.
     */
    public object CreationFailed : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "CREATION_FAILED"
        override fun toString(): kotlin.String = "CreationFailed"
    }

    /**
     * Workspace is being deleted.
     */
    public object Deleting : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "DELETING"
        override fun toString(): kotlin.String = "Deleting"
    }

    /**
     * Workspace deletion failed.
     */
    public object DeletionFailed : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "DELETION_FAILED"
        override fun toString(): kotlin.String = "DeletionFailed"
    }

    /**
     * Workspace is in an invalid state, it can only and should be deleted.
     */
    public object Failed : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "FAILED"
        override fun toString(): kotlin.String = "Failed"
    }

    /**
     * Failed to remove enterprise license from workspace.
     */
    public object LicenseRemovalFailed : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "LICENSE_REMOVAL_FAILED"
        override fun toString(): kotlin.String = "LicenseRemovalFailed"
    }

    /**
     * Workspace update failed.
     */
    public object UpdateFailed : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "UPDATE_FAILED"
        override fun toString(): kotlin.String = "UpdateFailed"
    }

    /**
     * Workspace is being updated.
     */
    public object Updating : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "UPDATING"
        override fun toString(): kotlin.String = "Updating"
    }

    /**
     * Workspace upgrade failed.
     */
    public object UpgradeFailed : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "UPGRADE_FAILED"
        override fun toString(): kotlin.String = "UpgradeFailed"
    }

    /**
     * Workspace is being upgraded to enterprise.
     */
    public object Upgrading : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "UPGRADING"
        override fun toString(): kotlin.String = "Upgrading"
    }

    /**
     * Workspace version update failed.
     */
    public object VersionUpdateFailed : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "VERSION_UPDATE_FAILED"
        override fun toString(): kotlin.String = "VersionUpdateFailed"
    }

    /**
     * Workspace version is being updated.
     */
    public object VersionUpdating : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        override val value: kotlin.String = "VERSION_UPDATING"
        override fun toString(): kotlin.String = "VersionUpdating"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.grafana.model.WorkspaceStatus() {
        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.grafana.model.WorkspaceStatus = when (value) {
            "ACTIVE" -> Active
            "CREATING" -> Creating
            "CREATION_FAILED" -> CreationFailed
            "DELETING" -> Deleting
            "DELETION_FAILED" -> DeletionFailed
            "FAILED" -> Failed
            "LICENSE_REMOVAL_FAILED" -> LicenseRemovalFailed
            "UPDATE_FAILED" -> UpdateFailed
            "UPDATING" -> Updating
            "UPGRADE_FAILED" -> UpgradeFailed
            "UPGRADING" -> Upgrading
            "VERSION_UPDATE_FAILED" -> VersionUpdateFailed
            "VERSION_UPDATING" -> VersionUpdating
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Active,
            Creating,
            CreationFailed,
            Deleting,
            DeletionFailed,
            Failed,
            LicenseRemovalFailed,
            UpdateFailed,
            Updating,
            UpgradeFailed,
            Upgrading,
            VersionUpdateFailed,
            VersionUpdating,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy