commonMain.aws.sdk.kotlin.services.gamelift.model.ComputeStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
import kotlin.collections.List
public sealed class ComputeStatus {
public abstract val value: kotlin.String
public object Active : aws.sdk.kotlin.services.gamelift.model.ComputeStatus() {
override val value: kotlin.String = "ACTIVE"
override fun toString(): kotlin.String = "Active"
}
public object Impaired : aws.sdk.kotlin.services.gamelift.model.ComputeStatus() {
override val value: kotlin.String = "IMPAIRED"
override fun toString(): kotlin.String = "Impaired"
}
public object Pending : aws.sdk.kotlin.services.gamelift.model.ComputeStatus() {
override val value: kotlin.String = "PENDING"
override fun toString(): kotlin.String = "Pending"
}
public object Terminating : aws.sdk.kotlin.services.gamelift.model.ComputeStatus() {
override val value: kotlin.String = "TERMINATING"
override fun toString(): kotlin.String = "Terminating"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.gamelift.model.ComputeStatus() {
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.gamelift.model.ComputeStatus = when (value) {
"ACTIVE" -> Active
"IMPAIRED" -> Impaired
"PENDING" -> Pending
"TERMINATING" -> Terminating
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Active,
Impaired,
Pending,
Terminating,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy