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

aws.sdk.kotlin.services.sagemaker.model.LabelingJobStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sagemaker.model



sealed class LabelingJobStatus {

    abstract val value: kotlin.String

    object Completed : aws.sdk.kotlin.services.sagemaker.model.LabelingJobStatus() {
        override val value: kotlin.String = "Completed"
        override fun toString(): kotlin.String = value
    }

    object Failed : aws.sdk.kotlin.services.sagemaker.model.LabelingJobStatus() {
        override val value: kotlin.String = "Failed"
        override fun toString(): kotlin.String = value
    }

    object Initializing : aws.sdk.kotlin.services.sagemaker.model.LabelingJobStatus() {
        override val value: kotlin.String = "Initializing"
        override fun toString(): kotlin.String = value
    }

    object InProgress : aws.sdk.kotlin.services.sagemaker.model.LabelingJobStatus() {
        override val value: kotlin.String = "InProgress"
        override fun toString(): kotlin.String = value
    }

    object Stopped : aws.sdk.kotlin.services.sagemaker.model.LabelingJobStatus() {
        override val value: kotlin.String = "Stopped"
        override fun toString(): kotlin.String = value
    }

    object Stopping : aws.sdk.kotlin.services.sagemaker.model.LabelingJobStatus() {
        override val value: kotlin.String = "Stopping"
        override fun toString(): kotlin.String = value
    }

    data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.sagemaker.model.LabelingJobStatus() {
        override fun toString(): kotlin.String = value
    }

    companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.sagemaker.model.LabelingJobStatus = when(str) {
            "Completed" -> Completed
            "Failed" -> Failed
            "Initializing" -> Initializing
            "InProgress" -> InProgress
            "Stopped" -> Stopped
            "Stopping" -> Stopping
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        fun values(): kotlin.collections.List = listOf(
            Completed,
            Failed,
            Initializing,
            InProgress,
            Stopped,
            Stopping
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy