commonMain.aws.sdk.kotlin.services.appstream.model.FleetState.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appstream.model
import kotlin.collections.List
sealed class FleetState {
abstract val value: kotlin.String
object Running : aws.sdk.kotlin.services.appstream.model.FleetState() {
override val value: kotlin.String = "RUNNING"
override fun toString(): kotlin.String = value
}
object Starting : aws.sdk.kotlin.services.appstream.model.FleetState() {
override val value: kotlin.String = "STARTING"
override fun toString(): kotlin.String = value
}
object Stopped : aws.sdk.kotlin.services.appstream.model.FleetState() {
override val value: kotlin.String = "STOPPED"
override fun toString(): kotlin.String = value
}
object Stopping : aws.sdk.kotlin.services.appstream.model.FleetState() {
override val value: kotlin.String = "STOPPING"
override fun toString(): kotlin.String = value
}
data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.appstream.model.FleetState() {
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.FleetState = when(str) {
"RUNNING" -> Running
"STARTING" -> Starting
"STOPPED" -> Stopped
"STOPPING" -> Stopping
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
fun values(): kotlin.collections.List = listOf(
Running,
Starting,
Stopped,
Stopping
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy