commonMain.aws.sdk.kotlin.services.gamelift.model.PlayerSessionStatus.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 PlayerSessionStatus {
public abstract val value: kotlin.String
public object Active : aws.sdk.kotlin.services.gamelift.model.PlayerSessionStatus() {
override val value: kotlin.String = "ACTIVE"
override fun toString(): kotlin.String = "Active"
}
public object Completed : aws.sdk.kotlin.services.gamelift.model.PlayerSessionStatus() {
override val value: kotlin.String = "COMPLETED"
override fun toString(): kotlin.String = "Completed"
}
public object Reserved : aws.sdk.kotlin.services.gamelift.model.PlayerSessionStatus() {
override val value: kotlin.String = "RESERVED"
override fun toString(): kotlin.String = "Reserved"
}
public object Timedout : aws.sdk.kotlin.services.gamelift.model.PlayerSessionStatus() {
override val value: kotlin.String = "TIMEDOUT"
override fun toString(): kotlin.String = "Timedout"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.gamelift.model.PlayerSessionStatus() {
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.PlayerSessionStatus = when (value) {
"ACTIVE" -> Active
"COMPLETED" -> Completed
"RESERVED" -> Reserved
"TIMEDOUT" -> Timedout
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,
Completed,
Reserved,
Timedout,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy