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

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

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

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

import kotlin.collections.List

/**
 * The status code.
 */
public sealed class StudioStatusCode {
    public abstract val value: kotlin.String

    public object AwsSsoAccessDenied : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "AWS_SSO_ACCESS_DENIED"
        override fun toString(): kotlin.String = "AwsSsoAccessDenied"
    }

    public object AwsSsoConfigurationRepaired : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "AWS_SSO_CONFIGURATION_REPAIRED"
        override fun toString(): kotlin.String = "AwsSsoConfigurationRepaired"
    }

    public object AwsSsoConfigurationRepairInProgress : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "AWS_SSO_CONFIGURATION_REPAIR_IN_PROGRESS"
        override fun toString(): kotlin.String = "AwsSsoConfigurationRepairInProgress"
    }

    public object AwsSsoNotEnabled : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "AWS_SSO_NOT_ENABLED"
        override fun toString(): kotlin.String = "AwsSsoNotEnabled"
    }

    public object AwsStsRegionDisabled : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "AWS_STS_REGION_DISABLED"
        override fun toString(): kotlin.String = "AwsStsRegionDisabled"
    }

    public object EncryptionKeyAccessDenied : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "ENCRYPTION_KEY_ACCESS_DENIED"
        override fun toString(): kotlin.String = "EncryptionKeyAccessDenied"
    }

    public object EncryptionKeyNotFound : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "ENCRYPTION_KEY_NOT_FOUND"
        override fun toString(): kotlin.String = "EncryptionKeyNotFound"
    }

    public object InternalError : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "INTERNAL_ERROR"
        override fun toString(): kotlin.String = "InternalError"
    }

    public object RoleCouldNotBeAssumed : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "ROLE_COULD_NOT_BE_ASSUMED"
        override fun toString(): kotlin.String = "RoleCouldNotBeAssumed"
    }

    public object RoleNotOwnedByStudioOwner : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "ROLE_NOT_OWNED_BY_STUDIO_OWNER"
        override fun toString(): kotlin.String = "RoleNotOwnedByStudioOwner"
    }

    public object StudioCreated : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "STUDIO_CREATED"
        override fun toString(): kotlin.String = "StudioCreated"
    }

    public object StudioCreateInProgress : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "STUDIO_CREATE_IN_PROGRESS"
        override fun toString(): kotlin.String = "StudioCreateInProgress"
    }

    public object StudioDeleted : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "STUDIO_DELETED"
        override fun toString(): kotlin.String = "StudioDeleted"
    }

    public object StudioDeleteInProgress : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "STUDIO_DELETE_IN_PROGRESS"
        override fun toString(): kotlin.String = "StudioDeleteInProgress"
    }

    public object StudioUpdated : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "STUDIO_UPDATED"
        override fun toString(): kotlin.String = "StudioUpdated"
    }

    public object StudioUpdateInProgress : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "STUDIO_UPDATE_IN_PROGRESS"
        override fun toString(): kotlin.String = "StudioUpdateInProgress"
    }

    public object StudioWithLaunchProfilesNotDeleted : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "STUDIO_WITH_LAUNCH_PROFILES_NOT_DELETED"
        override fun toString(): kotlin.String = "StudioWithLaunchProfilesNotDeleted"
    }

    public object StudioWithStreamingImagesNotDeleted : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "STUDIO_WITH_STREAMING_IMAGES_NOT_DELETED"
        override fun toString(): kotlin.String = "StudioWithStreamingImagesNotDeleted"
    }

    public object StudioWithStudioComponentsNotDeleted : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        override val value: kotlin.String = "STUDIO_WITH_STUDIO_COMPONENTS_NOT_DELETED"
        override fun toString(): kotlin.String = "StudioWithStudioComponentsNotDeleted"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.nimble.model.StudioStatusCode() {
        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.StudioStatusCode = when (value) {
            "AWS_SSO_ACCESS_DENIED" -> AwsSsoAccessDenied
            "AWS_SSO_CONFIGURATION_REPAIRED" -> AwsSsoConfigurationRepaired
            "AWS_SSO_CONFIGURATION_REPAIR_IN_PROGRESS" -> AwsSsoConfigurationRepairInProgress
            "AWS_SSO_NOT_ENABLED" -> AwsSsoNotEnabled
            "AWS_STS_REGION_DISABLED" -> AwsStsRegionDisabled
            "ENCRYPTION_KEY_ACCESS_DENIED" -> EncryptionKeyAccessDenied
            "ENCRYPTION_KEY_NOT_FOUND" -> EncryptionKeyNotFound
            "INTERNAL_ERROR" -> InternalError
            "ROLE_COULD_NOT_BE_ASSUMED" -> RoleCouldNotBeAssumed
            "ROLE_NOT_OWNED_BY_STUDIO_OWNER" -> RoleNotOwnedByStudioOwner
            "STUDIO_CREATED" -> StudioCreated
            "STUDIO_CREATE_IN_PROGRESS" -> StudioCreateInProgress
            "STUDIO_DELETED" -> StudioDeleted
            "STUDIO_DELETE_IN_PROGRESS" -> StudioDeleteInProgress
            "STUDIO_UPDATED" -> StudioUpdated
            "STUDIO_UPDATE_IN_PROGRESS" -> StudioUpdateInProgress
            "STUDIO_WITH_LAUNCH_PROFILES_NOT_DELETED" -> StudioWithLaunchProfilesNotDeleted
            "STUDIO_WITH_STREAMING_IMAGES_NOT_DELETED" -> StudioWithStreamingImagesNotDeleted
            "STUDIO_WITH_STUDIO_COMPONENTS_NOT_DELETED" -> StudioWithStudioComponentsNotDeleted
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            AwsSsoAccessDenied,
            AwsSsoConfigurationRepaired,
            AwsSsoConfigurationRepairInProgress,
            AwsSsoNotEnabled,
            AwsStsRegionDisabled,
            EncryptionKeyAccessDenied,
            EncryptionKeyNotFound,
            InternalError,
            RoleCouldNotBeAssumed,
            RoleNotOwnedByStudioOwner,
            StudioCreated,
            StudioCreateInProgress,
            StudioDeleted,
            StudioDeleteInProgress,
            StudioUpdated,
            StudioUpdateInProgress,
            StudioWithLaunchProfilesNotDeleted,
            StudioWithStreamingImagesNotDeleted,
            StudioWithStudioComponentsNotDeleted,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy