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

commonMain.aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode.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

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

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

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

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

    public object InvalidInstanceTypesProvided : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "INVALID_INSTANCE_TYPES_PROVIDED"
        override fun toString(): kotlin.String = "InvalidInstanceTypesProvided"
    }

    public object InvalidSubnetsCombination : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "INVALID_SUBNETS_COMBINATION"
        override fun toString(): kotlin.String = "InvalidSubnetsCombination"
    }

    public object InvalidSubnetsProvided : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "INVALID_SUBNETS_PROVIDED"
        override fun toString(): kotlin.String = "InvalidSubnetsProvided"
    }

    public object LaunchProfileCreated : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "LAUNCH_PROFILE_CREATED"
        override fun toString(): kotlin.String = "LaunchProfileCreated"
    }

    public object LaunchProfileCreateInProgress : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "LAUNCH_PROFILE_CREATE_IN_PROGRESS"
        override fun toString(): kotlin.String = "LaunchProfileCreateInProgress"
    }

    public object LaunchProfileDeleted : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "LAUNCH_PROFILE_DELETED"
        override fun toString(): kotlin.String = "LaunchProfileDeleted"
    }

    public object LaunchProfileDeleteInProgress : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "LAUNCH_PROFILE_DELETE_IN_PROGRESS"
        override fun toString(): kotlin.String = "LaunchProfileDeleteInProgress"
    }

    public object LaunchProfileUpdated : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "LAUNCH_PROFILE_UPDATED"
        override fun toString(): kotlin.String = "LaunchProfileUpdated"
    }

    public object LaunchProfileUpdateInProgress : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "LAUNCH_PROFILE_UPDATE_IN_PROGRESS"
        override fun toString(): kotlin.String = "LaunchProfileUpdateInProgress"
    }

    public object LaunchProfileWithStreamSessionsNotDeleted : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "LAUNCH_PROFILE_WITH_STREAM_SESSIONS_NOT_DELETED"
        override fun toString(): kotlin.String = "LaunchProfileWithStreamSessionsNotDeleted"
    }

    public object StreamingImageNotFound : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "STREAMING_IMAGE_NOT_FOUND"
        override fun toString(): kotlin.String = "StreamingImageNotFound"
    }

    public object StreamingImageNotReady : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        override val value: kotlin.String = "STREAMING_IMAGE_NOT_READY"
        override fun toString(): kotlin.String = "StreamingImageNotReady"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.nimble.model.LaunchProfileStatusCode() {
        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.LaunchProfileStatusCode = when (value) {
            "ENCRYPTION_KEY_ACCESS_DENIED" -> EncryptionKeyAccessDenied
            "ENCRYPTION_KEY_NOT_FOUND" -> EncryptionKeyNotFound
            "INTERNAL_ERROR" -> InternalError
            "INVALID_INSTANCE_TYPES_PROVIDED" -> InvalidInstanceTypesProvided
            "INVALID_SUBNETS_COMBINATION" -> InvalidSubnetsCombination
            "INVALID_SUBNETS_PROVIDED" -> InvalidSubnetsProvided
            "LAUNCH_PROFILE_CREATED" -> LaunchProfileCreated
            "LAUNCH_PROFILE_CREATE_IN_PROGRESS" -> LaunchProfileCreateInProgress
            "LAUNCH_PROFILE_DELETED" -> LaunchProfileDeleted
            "LAUNCH_PROFILE_DELETE_IN_PROGRESS" -> LaunchProfileDeleteInProgress
            "LAUNCH_PROFILE_UPDATED" -> LaunchProfileUpdated
            "LAUNCH_PROFILE_UPDATE_IN_PROGRESS" -> LaunchProfileUpdateInProgress
            "LAUNCH_PROFILE_WITH_STREAM_SESSIONS_NOT_DELETED" -> LaunchProfileWithStreamSessionsNotDeleted
            "STREAMING_IMAGE_NOT_FOUND" -> StreamingImageNotFound
            "STREAMING_IMAGE_NOT_READY" -> StreamingImageNotReady
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            EncryptionKeyAccessDenied,
            EncryptionKeyNotFound,
            InternalError,
            InvalidInstanceTypesProvided,
            InvalidSubnetsCombination,
            InvalidSubnetsProvided,
            LaunchProfileCreated,
            LaunchProfileCreateInProgress,
            LaunchProfileDeleted,
            LaunchProfileDeleteInProgress,
            LaunchProfileUpdated,
            LaunchProfileUpdateInProgress,
            LaunchProfileWithStreamSessionsNotDeleted,
            StreamingImageNotFound,
            StreamingImageNotReady,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy