commonMain.aws.sdk.kotlin.services.finspace.model.EnvironmentStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspace.model
import kotlin.collections.List
public sealed class EnvironmentStatus {
public abstract val value: kotlin.String
public object Created : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
override val value: kotlin.String = "CREATED"
override fun toString(): kotlin.String = "Created"
}
public object CreateRequested : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
override val value: kotlin.String = "CREATE_REQUESTED"
override fun toString(): kotlin.String = "CreateRequested"
}
public object Creating : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
override val value: kotlin.String = "CREATING"
override fun toString(): kotlin.String = "Creating"
}
public object Deleted : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
override val value: kotlin.String = "DELETED"
override fun toString(): kotlin.String = "Deleted"
}
public object DeleteRequested : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
override val value: kotlin.String = "DELETE_REQUESTED"
override fun toString(): kotlin.String = "DeleteRequested"
}
public object Deleting : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
override val value: kotlin.String = "DELETING"
override fun toString(): kotlin.String = "Deleting"
}
public object FailedCreation : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
override val value: kotlin.String = "FAILED_CREATION"
override fun toString(): kotlin.String = "FailedCreation"
}
public object FailedDeletion : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
override val value: kotlin.String = "FAILED_DELETION"
override fun toString(): kotlin.String = "FailedDeletion"
}
public object RetryDeletion : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
override val value: kotlin.String = "RETRY_DELETION"
override fun toString(): kotlin.String = "RetryDeletion"
}
public object Suspended : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
override val value: kotlin.String = "SUSPENDED"
override fun toString(): kotlin.String = "Suspended"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.finspace.model.EnvironmentStatus() {
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.finspace.model.EnvironmentStatus = when (value) {
"CREATED" -> Created
"CREATE_REQUESTED" -> CreateRequested
"CREATING" -> Creating
"DELETED" -> Deleted
"DELETE_REQUESTED" -> DeleteRequested
"DELETING" -> Deleting
"FAILED_CREATION" -> FailedCreation
"FAILED_DELETION" -> FailedDeletion
"RETRY_DELETION" -> RetryDeletion
"SUSPENDED" -> Suspended
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Created,
CreateRequested,
Creating,
Deleted,
DeleteRequested,
Deleting,
FailedCreation,
FailedDeletion,
RetryDeletion,
Suspended,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy