commonMain.aws.sdk.kotlin.services.gamelift.model.MetricName.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 MetricName {
public abstract val value: kotlin.String
public object ActivatingGameSessions : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "ActivatingGameSessions"
override fun toString(): kotlin.String = "ActivatingGameSessions"
}
public object ActiveGameSessions : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "ActiveGameSessions"
override fun toString(): kotlin.String = "ActiveGameSessions"
}
public object ActiveInstances : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "ActiveInstances"
override fun toString(): kotlin.String = "ActiveInstances"
}
public object AvailableGameSessions : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "AvailableGameSessions"
override fun toString(): kotlin.String = "AvailableGameSessions"
}
public object AvailablePlayerSessions : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "AvailablePlayerSessions"
override fun toString(): kotlin.String = "AvailablePlayerSessions"
}
public object ConcurrentActivatableGameSessions : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "ConcurrentActivatableGameSessions"
override fun toString(): kotlin.String = "ConcurrentActivatableGameSessions"
}
public object CurrentPlayerSessions : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "CurrentPlayerSessions"
override fun toString(): kotlin.String = "CurrentPlayerSessions"
}
public object IdleInstances : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "IdleInstances"
override fun toString(): kotlin.String = "IdleInstances"
}
public object PercentAvailableGameSessions : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "PercentAvailableGameSessions"
override fun toString(): kotlin.String = "PercentAvailableGameSessions"
}
public object PercentIdleInstances : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "PercentIdleInstances"
override fun toString(): kotlin.String = "PercentIdleInstances"
}
public object QueueDepth : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "QueueDepth"
override fun toString(): kotlin.String = "QueueDepth"
}
public object WaitTime : aws.sdk.kotlin.services.gamelift.model.MetricName() {
override val value: kotlin.String = "WaitTime"
override fun toString(): kotlin.String = "WaitTime"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.gamelift.model.MetricName() {
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.MetricName = when (value) {
"ActivatingGameSessions" -> ActivatingGameSessions
"ActiveGameSessions" -> ActiveGameSessions
"ActiveInstances" -> ActiveInstances
"AvailableGameSessions" -> AvailableGameSessions
"AvailablePlayerSessions" -> AvailablePlayerSessions
"ConcurrentActivatableGameSessions" -> ConcurrentActivatableGameSessions
"CurrentPlayerSessions" -> CurrentPlayerSessions
"IdleInstances" -> IdleInstances
"PercentAvailableGameSessions" -> PercentAvailableGameSessions
"PercentIdleInstances" -> PercentIdleInstances
"QueueDepth" -> QueueDepth
"WaitTime" -> WaitTime
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
ActivatingGameSessions,
ActiveGameSessions,
ActiveInstances,
AvailableGameSessions,
AvailablePlayerSessions,
ConcurrentActivatableGameSessions,
CurrentPlayerSessions,
IdleInstances,
PercentAvailableGameSessions,
PercentIdleInstances,
QueueDepth,
WaitTime,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy