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

aws.sdk.kotlin.services.sagemaker.model.EdgePackagingJobStatus.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 EdgePackagingJobStatus {

    abstract val value: kotlin.String

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

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

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

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

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

    object Stopping : aws.sdk.kotlin.services.sagemaker.model.EdgePackagingJobStatus() {
        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.EdgePackagingJobStatus() {
        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.EdgePackagingJobStatus = when(str) {
            "COMPLETED" -> Completed
            "FAILED" -> Failed
            "INPROGRESS" -> InProgress
            "STARTING" -> Starting
            "STOPPED" -> Stopped
            "STOPPING" -> Stopping
            else -> SdkUnknown(str)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy