commonMain.aws.sdk.kotlin.services.emrserverless.model.JobRunState.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of emrserverless-jvm Show documentation
Show all versions of emrserverless-jvm Show documentation
The AWS SDK for Kotlin client for EMR Serverless
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emrserverless.model
import kotlin.collections.List
public sealed class JobRunState {
public abstract val value: kotlin.String
public object Cancelled : aws.sdk.kotlin.services.emrserverless.model.JobRunState() {
override val value: kotlin.String = "CANCELLED"
override fun toString(): kotlin.String = "Cancelled"
}
public object Cancelling : aws.sdk.kotlin.services.emrserverless.model.JobRunState() {
override val value: kotlin.String = "CANCELLING"
override fun toString(): kotlin.String = "Cancelling"
}
public object Failed : aws.sdk.kotlin.services.emrserverless.model.JobRunState() {
override val value: kotlin.String = "FAILED"
override fun toString(): kotlin.String = "Failed"
}
public object Pending : aws.sdk.kotlin.services.emrserverless.model.JobRunState() {
override val value: kotlin.String = "PENDING"
override fun toString(): kotlin.String = "Pending"
}
public object Queued : aws.sdk.kotlin.services.emrserverless.model.JobRunState() {
override val value: kotlin.String = "QUEUED"
override fun toString(): kotlin.String = "Queued"
}
public object Running : aws.sdk.kotlin.services.emrserverless.model.JobRunState() {
override val value: kotlin.String = "RUNNING"
override fun toString(): kotlin.String = "Running"
}
public object Scheduled : aws.sdk.kotlin.services.emrserverless.model.JobRunState() {
override val value: kotlin.String = "SCHEDULED"
override fun toString(): kotlin.String = "Scheduled"
}
public object Submitted : aws.sdk.kotlin.services.emrserverless.model.JobRunState() {
override val value: kotlin.String = "SUBMITTED"
override fun toString(): kotlin.String = "Submitted"
}
public object Success : aws.sdk.kotlin.services.emrserverless.model.JobRunState() {
override val value: kotlin.String = "SUCCESS"
override fun toString(): kotlin.String = "Success"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.emrserverless.model.JobRunState() {
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.emrserverless.model.JobRunState = when (value) {
"CANCELLED" -> Cancelled
"CANCELLING" -> Cancelling
"FAILED" -> Failed
"PENDING" -> Pending
"QUEUED" -> Queued
"RUNNING" -> Running
"SCHEDULED" -> Scheduled
"SUBMITTED" -> Submitted
"SUCCESS" -> Success
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Cancelled,
Cancelling,
Failed,
Pending,
Queued,
Running,
Scheduled,
Submitted,
Success,
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy