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