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

commonMain.aws.sdk.kotlin.services.deadline.model.SessionActionStatus.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.deadline.model

import kotlin.collections.List

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

    public object Assigned : aws.sdk.kotlin.services.deadline.model.SessionActionStatus() {
        override val value: kotlin.String = "ASSIGNED"
        override fun toString(): kotlin.String = "Assigned"
    }

    public object Canceled : aws.sdk.kotlin.services.deadline.model.SessionActionStatus() {
        override val value: kotlin.String = "CANCELED"
        override fun toString(): kotlin.String = "Canceled"
    }

    public object Canceling : aws.sdk.kotlin.services.deadline.model.SessionActionStatus() {
        override val value: kotlin.String = "CANCELING"
        override fun toString(): kotlin.String = "Canceling"
    }

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

    public object Interrupted : aws.sdk.kotlin.services.deadline.model.SessionActionStatus() {
        override val value: kotlin.String = "INTERRUPTED"
        override fun toString(): kotlin.String = "Interrupted"
    }

    public object NeverAttempted : aws.sdk.kotlin.services.deadline.model.SessionActionStatus() {
        override val value: kotlin.String = "NEVER_ATTEMPTED"
        override fun toString(): kotlin.String = "NeverAttempted"
    }

    public object Reclaimed : aws.sdk.kotlin.services.deadline.model.SessionActionStatus() {
        override val value: kotlin.String = "RECLAIMED"
        override fun toString(): kotlin.String = "Reclaimed"
    }

    public object Reclaiming : aws.sdk.kotlin.services.deadline.model.SessionActionStatus() {
        override val value: kotlin.String = "RECLAIMING"
        override fun toString(): kotlin.String = "Reclaiming"
    }

    public object Running : aws.sdk.kotlin.services.deadline.model.SessionActionStatus() {
        override val value: kotlin.String = "RUNNING"
        override fun toString(): kotlin.String = "Running"
    }

    public object Scheduled : aws.sdk.kotlin.services.deadline.model.SessionActionStatus() {
        override val value: kotlin.String = "SCHEDULED"
        override fun toString(): kotlin.String = "Scheduled"
    }

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.deadline.model.SessionActionStatus() {
        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.deadline.model.SessionActionStatus = when (value) {
            "ASSIGNED" -> Assigned
            "CANCELED" -> Canceled
            "CANCELING" -> Canceling
            "FAILED" -> Failed
            "INTERRUPTED" -> Interrupted
            "NEVER_ATTEMPTED" -> NeverAttempted
            "RECLAIMED" -> Reclaimed
            "RECLAIMING" -> Reclaiming
            "RUNNING" -> Running
            "SCHEDULED" -> Scheduled
            "SUCCEEDED" -> Succeeded
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Assigned,
            Canceled,
            Canceling,
            Failed,
            Interrupted,
            NeverAttempted,
            Reclaimed,
            Reclaiming,
            Running,
            Scheduled,
            Succeeded,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy