commonMain.aws.sdk.kotlin.services.glue.model.TriggerState.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import kotlin.collections.List
public sealed class TriggerState {
public abstract val value: kotlin.String
public object Activated : aws.sdk.kotlin.services.glue.model.TriggerState() {
override val value: kotlin.String = "ACTIVATED"
override fun toString(): kotlin.String = "Activated"
}
public object Activating : aws.sdk.kotlin.services.glue.model.TriggerState() {
override val value: kotlin.String = "ACTIVATING"
override fun toString(): kotlin.String = "Activating"
}
public object Created : aws.sdk.kotlin.services.glue.model.TriggerState() {
override val value: kotlin.String = "CREATED"
override fun toString(): kotlin.String = "Created"
}
public object Creating : aws.sdk.kotlin.services.glue.model.TriggerState() {
override val value: kotlin.String = "CREATING"
override fun toString(): kotlin.String = "Creating"
}
public object Deactivated : aws.sdk.kotlin.services.glue.model.TriggerState() {
override val value: kotlin.String = "DEACTIVATED"
override fun toString(): kotlin.String = "Deactivated"
}
public object Deactivating : aws.sdk.kotlin.services.glue.model.TriggerState() {
override val value: kotlin.String = "DEACTIVATING"
override fun toString(): kotlin.String = "Deactivating"
}
public object Deleting : aws.sdk.kotlin.services.glue.model.TriggerState() {
override val value: kotlin.String = "DELETING"
override fun toString(): kotlin.String = "Deleting"
}
public object Updating : aws.sdk.kotlin.services.glue.model.TriggerState() {
override val value: kotlin.String = "UPDATING"
override fun toString(): kotlin.String = "Updating"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glue.model.TriggerState() {
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.glue.model.TriggerState = when (value) {
"ACTIVATED" -> Activated
"ACTIVATING" -> Activating
"CREATED" -> Created
"CREATING" -> Creating
"DEACTIVATED" -> Deactivated
"DEACTIVATING" -> Deactivating
"DELETING" -> Deleting
"UPDATING" -> Updating
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Activated,
Activating,
Created,
Creating,
Deactivated,
Deactivating,
Deleting,
Updating,
)
}
}