commonMain.aws.sdk.kotlin.services.translate.model.JobStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of translate-jvm Show documentation
Show all versions of translate-jvm Show documentation
The AWS SDK for Kotlin client for Translate
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.translate.model
import kotlin.collections.List
public sealed class JobStatus {
public abstract val value: kotlin.String
public object Completed : aws.sdk.kotlin.services.translate.model.JobStatus() {
override val value: kotlin.String = "COMPLETED"
override fun toString(): kotlin.String = "Completed"
}
public object CompletedWithError : aws.sdk.kotlin.services.translate.model.JobStatus() {
override val value: kotlin.String = "COMPLETED_WITH_ERROR"
override fun toString(): kotlin.String = "CompletedWithError"
}
public object Failed : aws.sdk.kotlin.services.translate.model.JobStatus() {
override val value: kotlin.String = "FAILED"
override fun toString(): kotlin.String = "Failed"
}
public object InProgress : aws.sdk.kotlin.services.translate.model.JobStatus() {
override val value: kotlin.String = "IN_PROGRESS"
override fun toString(): kotlin.String = "InProgress"
}
public object Stopped : aws.sdk.kotlin.services.translate.model.JobStatus() {
override val value: kotlin.String = "STOPPED"
override fun toString(): kotlin.String = "Stopped"
}
public object StopRequested : aws.sdk.kotlin.services.translate.model.JobStatus() {
override val value: kotlin.String = "STOP_REQUESTED"
override fun toString(): kotlin.String = "StopRequested"
}
public object Submitted : aws.sdk.kotlin.services.translate.model.JobStatus() {
override val value: kotlin.String = "SUBMITTED"
override fun toString(): kotlin.String = "Submitted"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.translate.model.JobStatus() {
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.translate.model.JobStatus = when (value) {
"COMPLETED" -> Completed
"COMPLETED_WITH_ERROR" -> CompletedWithError
"FAILED" -> Failed
"IN_PROGRESS" -> InProgress
"STOPPED" -> Stopped
"STOP_REQUESTED" -> StopRequested
"SUBMITTED" -> Submitted
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,
CompletedWithError,
Failed,
InProgress,
Stopped,
StopRequested,
Submitted,
)
}
}