commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.ProcessBehavior.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexmodelbuildingservice.model
import kotlin.collections.List
public sealed class ProcessBehavior {
public abstract val value: kotlin.String
public object Build : aws.sdk.kotlin.services.lexmodelbuildingservice.model.ProcessBehavior() {
override val value: kotlin.String = "BUILD"
override fun toString(): kotlin.String = "Build"
}
public object Save : aws.sdk.kotlin.services.lexmodelbuildingservice.model.ProcessBehavior() {
override val value: kotlin.String = "SAVE"
override fun toString(): kotlin.String = "Save"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.lexmodelbuildingservice.model.ProcessBehavior() {
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.lexmodelbuildingservice.model.ProcessBehavior = when (value) {
"BUILD" -> Build
"SAVE" -> Save
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Build,
Save,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy