All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.devicefarm.model.ExecutionStatus.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// 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,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy