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

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

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

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

    public object StreamCreateInProgress : aws.sdk.kotlin.services.nimble.model.StreamingSessionStreamStatusCode() {
        override val value: kotlin.String = "STREAM_CREATE_IN_PROGRESS"
        override fun toString(): kotlin.String = "StreamCreateInProgress"
    }

    public object StreamDeleted : aws.sdk.kotlin.services.nimble.model.StreamingSessionStreamStatusCode() {
        override val value: kotlin.String = "STREAM_DELETED"
        override fun toString(): kotlin.String = "StreamDeleted"
    }

    public object StreamDeleteInProgress : aws.sdk.kotlin.services.nimble.model.StreamingSessionStreamStatusCode() {
        override val value: kotlin.String = "STREAM_DELETE_IN_PROGRESS"
        override fun toString(): kotlin.String = "StreamDeleteInProgress"
    }

    public object StreamReady : aws.sdk.kotlin.services.nimble.model.StreamingSessionStreamStatusCode() {
        override val value: kotlin.String = "STREAM_READY"
        override fun toString(): kotlin.String = "StreamReady"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.nimble.model.StreamingSessionStreamStatusCode() {
        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.StreamingSessionStreamStatusCode = when (value) {
            "INTERNAL_ERROR" -> InternalError
            "NETWORK_CONNECTION_ERROR" -> NetworkConnectionError
            "STREAM_CREATE_IN_PROGRESS" -> StreamCreateInProgress
            "STREAM_DELETED" -> StreamDeleted
            "STREAM_DELETE_IN_PROGRESS" -> StreamDeleteInProgress
            "STREAM_READY" -> StreamReady
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            InternalError,
            NetworkConnectionError,
            StreamCreateInProgress,
            StreamDeleted,
            StreamDeleteInProgress,
            StreamReady,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy