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

commonMain.aws.sdk.kotlin.services.appstream.model.SessionConnectionState.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appstream.model

import kotlin.collections.List

sealed class SessionConnectionState {

    abstract val value: kotlin.String

    object Connected : aws.sdk.kotlin.services.appstream.model.SessionConnectionState() {
        override val value: kotlin.String = "CONNECTED"
        override fun toString(): kotlin.String = value
    }

    object NotConnected : aws.sdk.kotlin.services.appstream.model.SessionConnectionState() {
        override val value: kotlin.String = "NOT_CONNECTED"
        override fun toString(): kotlin.String = value
    }

    data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.appstream.model.SessionConnectionState() {
        override fun toString(): kotlin.String = value
    }

    companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.appstream.model.SessionConnectionState = when(str) {
            "CONNECTED" -> Connected
            "NOT_CONNECTED" -> NotConnected
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        fun values(): kotlin.collections.List = listOf(
            Connected,
            NotConnected
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy