commonMain.aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codedeploy-jvm Show documentation
Show all versions of codedeploy-jvm Show documentation
The AWS SDK for Kotlin client for CodeDeploy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codedeploy.model
import kotlin.collections.List
public sealed class DeploymentStatus {
public abstract val value: kotlin.String
public object Baking : aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus() {
override val value: kotlin.String = "Baking"
override fun toString(): kotlin.String = "Baking"
}
public object Created : aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus() {
override val value: kotlin.String = "Created"
override fun toString(): kotlin.String = "Created"
}
public object Failed : aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus() {
override val value: kotlin.String = "Failed"
override fun toString(): kotlin.String = "Failed"
}
public object InProgress : aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus() {
override val value: kotlin.String = "InProgress"
override fun toString(): kotlin.String = "InProgress"
}
public object Queued : aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus() {
override val value: kotlin.String = "Queued"
override fun toString(): kotlin.String = "Queued"
}
public object Ready : aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus() {
override val value: kotlin.String = "Ready"
override fun toString(): kotlin.String = "Ready"
}
public object Stopped : aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus() {
override val value: kotlin.String = "Stopped"
override fun toString(): kotlin.String = "Stopped"
}
public object Succeeded : aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus() {
override val value: kotlin.String = "Succeeded"
override fun toString(): kotlin.String = "Succeeded"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.codedeploy.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.codedeploy.model.DeploymentStatus = when (value) {
"Baking" -> Baking
"Created" -> Created
"Failed" -> Failed
"InProgress" -> InProgress
"Queued" -> Queued
"Ready" -> Ready
"Stopped" -> Stopped
"Succeeded" -> Succeeded
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Baking,
Created,
Failed,
InProgress,
Queued,
Ready,
Stopped,
Succeeded,
)
}
}