commonMain.aws.sdk.kotlin.services.gamelift.model.MatchmakingConfigurationStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gamelift-jvm Show documentation
Show all versions of gamelift-jvm Show documentation
The AWS SDK for Kotlin client for GameLift
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.gamelift.model
import kotlin.collections.List
public sealed class MatchmakingConfigurationStatus {
public abstract val value: kotlin.String
public object Cancelled : aws.sdk.kotlin.services.gamelift.model.MatchmakingConfigurationStatus() {
override val value: kotlin.String = "CANCELLED"
override fun toString(): kotlin.String = "Cancelled"
}
public object Completed : aws.sdk.kotlin.services.gamelift.model.MatchmakingConfigurationStatus() {
override val value: kotlin.String = "COMPLETED"
override fun toString(): kotlin.String = "Completed"
}
public object Failed : aws.sdk.kotlin.services.gamelift.model.MatchmakingConfigurationStatus() {
override val value: kotlin.String = "FAILED"
override fun toString(): kotlin.String = "Failed"
}
public object Placing : aws.sdk.kotlin.services.gamelift.model.MatchmakingConfigurationStatus() {
override val value: kotlin.String = "PLACING"
override fun toString(): kotlin.String = "Placing"
}
public object Queued : aws.sdk.kotlin.services.gamelift.model.MatchmakingConfigurationStatus() {
override val value: kotlin.String = "QUEUED"
override fun toString(): kotlin.String = "Queued"
}
public object RequiresAcceptance : aws.sdk.kotlin.services.gamelift.model.MatchmakingConfigurationStatus() {
override val value: kotlin.String = "REQUIRES_ACCEPTANCE"
override fun toString(): kotlin.String = "RequiresAcceptance"
}
public object Searching : aws.sdk.kotlin.services.gamelift.model.MatchmakingConfigurationStatus() {
override val value: kotlin.String = "SEARCHING"
override fun toString(): kotlin.String = "Searching"
}
public object TimedOut : aws.sdk.kotlin.services.gamelift.model.MatchmakingConfigurationStatus() {
override val value: kotlin.String = "TIMED_OUT"
override fun toString(): kotlin.String = "TimedOut"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.gamelift.model.MatchmakingConfigurationStatus() {
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.MatchmakingConfigurationStatus = when (value) {
"CANCELLED" -> Cancelled
"COMPLETED" -> Completed
"FAILED" -> Failed
"PLACING" -> Placing
"QUEUED" -> Queued
"REQUIRES_ACCEPTANCE" -> RequiresAcceptance
"SEARCHING" -> Searching
"TIMED_OUT" -> 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(
Cancelled,
Completed,
Failed,
Placing,
Queued,
RequiresAcceptance,
Searching,
TimedOut,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy