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

commonMain.aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus.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.codecatalyst.model

import kotlin.collections.List

public sealed class WorkflowRunStatus {
    public abstract val value: kotlin.String

    public object Abandoned : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        override val value: kotlin.String = "ABANDONED"
        override fun toString(): kotlin.String = "Abandoned"
    }

    public object Cancelled : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        override val value: kotlin.String = "CANCELLED"
        override fun toString(): kotlin.String = "Cancelled"
    }

    public object Failed : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        override val value: kotlin.String = "FAILED"
        override fun toString(): kotlin.String = "Failed"
    }

    public object InProgress : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        override val value: kotlin.String = "IN_PROGRESS"
        override fun toString(): kotlin.String = "InProgress"
    }

    public object NotRun : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        override val value: kotlin.String = "NOT_RUN"
        override fun toString(): kotlin.String = "NotRun"
    }

    public object Provisioning : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        override val value: kotlin.String = "PROVISIONING"
        override fun toString(): kotlin.String = "Provisioning"
    }

    public object Stopped : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        override val value: kotlin.String = "STOPPED"
        override fun toString(): kotlin.String = "Stopped"
    }

    public object Stopping : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        override val value: kotlin.String = "STOPPING"
        override fun toString(): kotlin.String = "Stopping"
    }

    public object Succeeded : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        override val value: kotlin.String = "SUCCEEDED"
        override fun toString(): kotlin.String = "Succeeded"
    }

    public object Superseded : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        override val value: kotlin.String = "SUPERSEDED"
        override fun toString(): kotlin.String = "Superseded"
    }

    public object Validating : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        override val value: kotlin.String = "VALIDATING"
        override fun toString(): kotlin.String = "Validating"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.codecatalyst.model.WorkflowRunStatus() {
        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.codecatalyst.model.WorkflowRunStatus = when (value) {
            "ABANDONED" -> Abandoned
            "CANCELLED" -> Cancelled
            "FAILED" -> Failed
            "IN_PROGRESS" -> InProgress
            "NOT_RUN" -> NotRun
            "PROVISIONING" -> Provisioning
            "STOPPED" -> Stopped
            "STOPPING" -> Stopping
            "SUCCEEDED" -> Succeeded
            "SUPERSEDED" -> Superseded
            "VALIDATING" -> Validating
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            Abandoned,
            Cancelled,
            Failed,
            InProgress,
            NotRun,
            Provisioning,
            Stopped,
            Stopping,
            Succeeded,
            Superseded,
            Validating,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy