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

commonMain.aws.sdk.kotlin.services.datasync.model.TaskExecutionStatus.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datasync.model

import kotlin.collections.List

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

    public object Cancelling : aws.sdk.kotlin.services.datasync.model.TaskExecutionStatus() {
        override val value: kotlin.String = "CANCELLING"
        override fun toString(): kotlin.String = "Cancelling"
    }

    public object Error : aws.sdk.kotlin.services.datasync.model.TaskExecutionStatus() {
        override val value: kotlin.String = "ERROR"
        override fun toString(): kotlin.String = "Error"
    }

    public object Launching : aws.sdk.kotlin.services.datasync.model.TaskExecutionStatus() {
        override val value: kotlin.String = "LAUNCHING"
        override fun toString(): kotlin.String = "Launching"
    }

    public object Preparing : aws.sdk.kotlin.services.datasync.model.TaskExecutionStatus() {
        override val value: kotlin.String = "PREPARING"
        override fun toString(): kotlin.String = "Preparing"
    }

    public object Queued : aws.sdk.kotlin.services.datasync.model.TaskExecutionStatus() {
        override val value: kotlin.String = "QUEUED"
        override fun toString(): kotlin.String = "Queued"
    }

    public object Success : aws.sdk.kotlin.services.datasync.model.TaskExecutionStatus() {
        override val value: kotlin.String = "SUCCESS"
        override fun toString(): kotlin.String = "Success"
    }

    public object Transferring : aws.sdk.kotlin.services.datasync.model.TaskExecutionStatus() {
        override val value: kotlin.String = "TRANSFERRING"
        override fun toString(): kotlin.String = "Transferring"
    }

    public object Verifying : aws.sdk.kotlin.services.datasync.model.TaskExecutionStatus() {
        override val value: kotlin.String = "VERIFYING"
        override fun toString(): kotlin.String = "Verifying"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.datasync.model.TaskExecutionStatus() {
        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.datasync.model.TaskExecutionStatus = when (value) {
            "CANCELLING" -> Cancelling
            "ERROR" -> Error
            "LAUNCHING" -> Launching
            "PREPARING" -> Preparing
            "QUEUED" -> Queued
            "SUCCESS" -> Success
            "TRANSFERRING" -> Transferring
            "VERIFYING" -> Verifying
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Cancelling,
            Error,
            Launching,
            Preparing,
            Queued,
            Success,
            Transferring,
            Verifying,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy