commonMain.aws.sdk.kotlin.services.devicefarm.model.ExecutionStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devicefarm-jvm Show documentation
Show all versions of devicefarm-jvm Show documentation
The AWS SDK for Kotlin client for Device Farm
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devicefarm.model
import kotlin.collections.List
public sealed class ExecutionStatus {
public abstract val value: kotlin.String
public object Completed : aws.sdk.kotlin.services.devicefarm.model.ExecutionStatus() {
override val value: kotlin.String = "COMPLETED"
override fun toString(): kotlin.String = "Completed"
}
public object Pending : aws.sdk.kotlin.services.devicefarm.model.ExecutionStatus() {
override val value: kotlin.String = "PENDING"
override fun toString(): kotlin.String = "Pending"
}
public object PendingConcurrnecy : aws.sdk.kotlin.services.devicefarm.model.ExecutionStatus() {
override val value: kotlin.String = "PENDING_CONCURRENCY"
override fun toString(): kotlin.String = "PendingConcurrnecy"
}
public object PendingDevice : aws.sdk.kotlin.services.devicefarm.model.ExecutionStatus() {
override val value: kotlin.String = "PENDING_DEVICE"
override fun toString(): kotlin.String = "PendingDevice"
}
public object Preparing : aws.sdk.kotlin.services.devicefarm.model.ExecutionStatus() {
override val value: kotlin.String = "PREPARING"
override fun toString(): kotlin.String = "Preparing"
}
public object Processing : aws.sdk.kotlin.services.devicefarm.model.ExecutionStatus() {
override val value: kotlin.String = "PROCESSING"
override fun toString(): kotlin.String = "Processing"
}
public object Running : aws.sdk.kotlin.services.devicefarm.model.ExecutionStatus() {
override val value: kotlin.String = "RUNNING"
override fun toString(): kotlin.String = "Running"
}
public object Scheduling : aws.sdk.kotlin.services.devicefarm.model.ExecutionStatus() {
override val value: kotlin.String = "SCHEDULING"
override fun toString(): kotlin.String = "Scheduling"
}
public object Stopping : aws.sdk.kotlin.services.devicefarm.model.ExecutionStatus() {
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.devicefarm.model.ExecutionStatus() {
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.devicefarm.model.ExecutionStatus = when (value) {
"COMPLETED" -> Completed
"PENDING" -> Pending
"PENDING_CONCURRENCY" -> PendingConcurrnecy
"PENDING_DEVICE" -> PendingDevice
"PREPARING" -> Preparing
"PROCESSING" -> Processing
"RUNNING" -> Running
"SCHEDULING" -> Scheduling
"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,
Pending,
PendingConcurrnecy,
PendingDevice,
Preparing,
Processing,
Running,
Scheduling,
Stopping,
)
}
}