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