commonMain.aws.sdk.kotlin.services.glue.model.ExecutionClass.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 ExecutionClass {
public abstract val value: kotlin.String
public object Flex : aws.sdk.kotlin.services.glue.model.ExecutionClass() {
override val value: kotlin.String = "FLEX"
override fun toString(): kotlin.String = "Flex"
}
public object Standard : aws.sdk.kotlin.services.glue.model.ExecutionClass() {
override val value: kotlin.String = "STANDARD"
override fun toString(): kotlin.String = "Standard"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glue.model.ExecutionClass() {
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.ExecutionClass = when (value) {
"FLEX" -> Flex
"STANDARD" -> Standard
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Flex,
Standard,
)
}
}