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

commonMain.aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode.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 StreamingSessionStatusCode {
    public abstract val value: kotlin.String

    public object ActiveDirectoryDomainJoinError : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "ACTIVE_DIRECTORY_DOMAIN_JOIN_ERROR"
        override fun toString(): kotlin.String = "ActiveDirectoryDomainJoinError"
    }

    public object AmiValidationError : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "AMI_VALIDATION_ERROR"
        override fun toString(): kotlin.String = "AmiValidationError"
    }

    public object DecryptStreamingImageError : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "DECRYPT_STREAMING_IMAGE_ERROR"
        override fun toString(): kotlin.String = "DecryptStreamingImageError"
    }

    public object InitializationScriptError : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "INITIALIZATION_SCRIPT_ERROR"
        override fun toString(): kotlin.String = "InitializationScriptError"
    }

    public object InsufficientCapacity : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "INSUFFICIENT_CAPACITY"
        override fun toString(): kotlin.String = "InsufficientCapacity"
    }

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

    public object NetworkConnectionError : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "NETWORK_CONNECTION_ERROR"
        override fun toString(): kotlin.String = "NetworkConnectionError"
    }

    public object NetworkInterfaceError : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "NETWORK_INTERFACE_ERROR"
        override fun toString(): kotlin.String = "NetworkInterfaceError"
    }

    public object StreamingSessionCreateInProgress : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "STREAMING_SESSION_CREATE_IN_PROGRESS"
        override fun toString(): kotlin.String = "StreamingSessionCreateInProgress"
    }

    public object StreamingSessionDeleted : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "STREAMING_SESSION_DELETED"
        override fun toString(): kotlin.String = "StreamingSessionDeleted"
    }

    public object StreamingSessionDeleteInProgress : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "STREAMING_SESSION_DELETE_IN_PROGRESS"
        override fun toString(): kotlin.String = "StreamingSessionDeleteInProgress"
    }

    public object StreamingSessionReady : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "STREAMING_SESSION_READY"
        override fun toString(): kotlin.String = "StreamingSessionReady"
    }

    public object StreamingSessionStarted : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "STREAMING_SESSION_STARTED"
        override fun toString(): kotlin.String = "StreamingSessionStarted"
    }

    public object StreamingSessionStartInProgress : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "STREAMING_SESSION_START_IN_PROGRESS"
        override fun toString(): kotlin.String = "StreamingSessionStartInProgress"
    }

    public object StreamingSessionStopped : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "STREAMING_SESSION_STOPPED"
        override fun toString(): kotlin.String = "StreamingSessionStopped"
    }

    public object StreamingSessionStopInProgress : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        override val value: kotlin.String = "STREAMING_SESSION_STOP_IN_PROGRESS"
        override fun toString(): kotlin.String = "StreamingSessionStopInProgress"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.nimble.model.StreamingSessionStatusCode() {
        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.StreamingSessionStatusCode = when (value) {
            "ACTIVE_DIRECTORY_DOMAIN_JOIN_ERROR" -> ActiveDirectoryDomainJoinError
            "AMI_VALIDATION_ERROR" -> AmiValidationError
            "DECRYPT_STREAMING_IMAGE_ERROR" -> DecryptStreamingImageError
            "INITIALIZATION_SCRIPT_ERROR" -> InitializationScriptError
            "INSUFFICIENT_CAPACITY" -> InsufficientCapacity
            "INTERNAL_ERROR" -> InternalError
            "NETWORK_CONNECTION_ERROR" -> NetworkConnectionError
            "NETWORK_INTERFACE_ERROR" -> NetworkInterfaceError
            "STREAMING_SESSION_CREATE_IN_PROGRESS" -> StreamingSessionCreateInProgress
            "STREAMING_SESSION_DELETED" -> StreamingSessionDeleted
            "STREAMING_SESSION_DELETE_IN_PROGRESS" -> StreamingSessionDeleteInProgress
            "STREAMING_SESSION_READY" -> StreamingSessionReady
            "STREAMING_SESSION_STARTED" -> StreamingSessionStarted
            "STREAMING_SESSION_START_IN_PROGRESS" -> StreamingSessionStartInProgress
            "STREAMING_SESSION_STOPPED" -> StreamingSessionStopped
            "STREAMING_SESSION_STOP_IN_PROGRESS" -> StreamingSessionStopInProgress
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            ActiveDirectoryDomainJoinError,
            AmiValidationError,
            DecryptStreamingImageError,
            InitializationScriptError,
            InsufficientCapacity,
            InternalError,
            NetworkConnectionError,
            NetworkInterfaceError,
            StreamingSessionCreateInProgress,
            StreamingSessionDeleted,
            StreamingSessionDeleteInProgress,
            StreamingSessionReady,
            StreamingSessionStarted,
            StreamingSessionStartInProgress,
            StreamingSessionStopped,
            StreamingSessionStopInProgress,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy