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

commonMain.aws.sdk.kotlin.services.nimble.model.StudioComponentState.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.nimble.model

import kotlin.collections.List

/**
 * The current state of the studio component resource.
 *
 * While a studio component is being created, modified, or deleted, its state will be `CREATE_IN_PROGRESS`, `UPDATE_IN_PROGRESS`, or `DELETE_IN_PROGRESS`.
 *
 * These are called *transition states*.
 *
 * No modifications may be made to the studio component while it is in a transition state.
 *
 * If creation of the resource fails, the state will change to `CREATE_FAILED`. The resource `StatusCode` and `StatusMessage` will provide more information of why creation failed. The resource in this state will automatically be deleted from your account after a period of time.
 *
 * If updating the resource fails, the state will change to `UPDATE_FAILED`. The resource `StatusCode` and `StatusMessage` will provide more information of why the update failed. The resource will be returned to the state it was in when the update request was invoked.
 *
 * If deleting the resource fails, the state will change to `DELETE_FAILED`. The resource `StatusCode` and `StatusMessage` will provide more information of why the update failed. The resource will be returned to the state it was in when the update request was invoked. After the resource is deleted successfully, it will change to the `DELETED` state. The resource will no longer count against service quotas and cannot be used or acted upon any futher. It will be removed from your account after a period of time.
 */
public sealed class StudioComponentState {
    public abstract val value: kotlin.String

    public object CreateFailed : aws.sdk.kotlin.services.nimble.model.StudioComponentState() {
        override val value: kotlin.String = "CREATE_FAILED"
        override fun toString(): kotlin.String = "CreateFailed"
    }

    public object CreateInProgress : aws.sdk.kotlin.services.nimble.model.StudioComponentState() {
        override val value: kotlin.String = "CREATE_IN_PROGRESS"
        override fun toString(): kotlin.String = "CreateInProgress"
    }

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

    public object DeleteFailed : aws.sdk.kotlin.services.nimble.model.StudioComponentState() {
        override val value: kotlin.String = "DELETE_FAILED"
        override fun toString(): kotlin.String = "DeleteFailed"
    }

    public object DeleteInProgress : aws.sdk.kotlin.services.nimble.model.StudioComponentState() {
        override val value: kotlin.String = "DELETE_IN_PROGRESS"
        override fun toString(): kotlin.String = "DeleteInProgress"
    }

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

    public object UpdateFailed : aws.sdk.kotlin.services.nimble.model.StudioComponentState() {
        override val value: kotlin.String = "UPDATE_FAILED"
        override fun toString(): kotlin.String = "UpdateFailed"
    }

    public object UpdateInProgress : aws.sdk.kotlin.services.nimble.model.StudioComponentState() {
        override val value: kotlin.String = "UPDATE_IN_PROGRESS"
        override fun toString(): kotlin.String = "UpdateInProgress"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.nimble.model.StudioComponentState() {
        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.nimble.model.StudioComponentState = when (value) {
            "CREATE_FAILED" -> CreateFailed
            "CREATE_IN_PROGRESS" -> CreateInProgress
            "DELETED" -> Deleted
            "DELETE_FAILED" -> DeleteFailed
            "DELETE_IN_PROGRESS" -> DeleteInProgress
            "READY" -> Ready
            "UPDATE_FAILED" -> UpdateFailed
            "UPDATE_IN_PROGRESS" -> UpdateInProgress
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            CreateFailed,
            CreateInProgress,
            Deleted,
            DeleteFailed,
            DeleteInProgress,
            Ready,
            UpdateFailed,
            UpdateInProgress,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy