commonMain.aws.sdk.kotlin.services.gamelift.model.DeploymentStatus.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 DeploymentStatus {
public abstract val value: kotlin.String
public object Cancelled : aws.sdk.kotlin.services.gamelift.model.DeploymentStatus() {
override val value: kotlin.String = "CANCELLED"
override fun toString(): kotlin.String = "Cancelled"
}
public object Complete : aws.sdk.kotlin.services.gamelift.model.DeploymentStatus() {
override val value: kotlin.String = "COMPLETE"
override fun toString(): kotlin.String = "Complete"
}
public object Impaired : aws.sdk.kotlin.services.gamelift.model.DeploymentStatus() {
override val value: kotlin.String = "IMPAIRED"
override fun toString(): kotlin.String = "Impaired"
}
public object InProgress : aws.sdk.kotlin.services.gamelift.model.DeploymentStatus() {
override val value: kotlin.String = "IN_PROGRESS"
override fun toString(): kotlin.String = "InProgress"
}
public object Pending : aws.sdk.kotlin.services.gamelift.model.DeploymentStatus() {
override val value: kotlin.String = "PENDING"
override fun toString(): kotlin.String = "Pending"
}
public object RollbackComplete : aws.sdk.kotlin.services.gamelift.model.DeploymentStatus() {
override val value: kotlin.String = "ROLLBACK_COMPLETE"
override fun toString(): kotlin.String = "RollbackComplete"
}
public object RollbackInProgress : aws.sdk.kotlin.services.gamelift.model.DeploymentStatus() {
override val value: kotlin.String = "ROLLBACK_IN_PROGRESS"
override fun toString(): kotlin.String = "RollbackInProgress"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.gamelift.model.DeploymentStatus() {
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.DeploymentStatus = when (value) {
"CANCELLED" -> Cancelled
"COMPLETE" -> Complete
"IMPAIRED" -> Impaired
"IN_PROGRESS" -> InProgress
"PENDING" -> Pending
"ROLLBACK_COMPLETE" -> RollbackComplete
"ROLLBACK_IN_PROGRESS" -> RollbackInProgress
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,
Complete,
Impaired,
InProgress,
Pending,
RollbackComplete,
RollbackInProgress,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy