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

commonMain.aws.sdk.kotlin.services.neptunegraph.model.ImportTaskStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.neptunegraph.model

import kotlin.collections.List

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

    public object AnalyzingData : aws.sdk.kotlin.services.neptunegraph.model.ImportTaskStatus() {
        override val value: kotlin.String = "ANALYZING_DATA"
        override fun toString(): kotlin.String = "AnalyzingData"
    }

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

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

    public object Exporting : aws.sdk.kotlin.services.neptunegraph.model.ImportTaskStatus() {
        override val value: kotlin.String = "EXPORTING"
        override fun toString(): kotlin.String = "Exporting"
    }

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

    public object Importing : aws.sdk.kotlin.services.neptunegraph.model.ImportTaskStatus() {
        override val value: kotlin.String = "IMPORTING"
        override fun toString(): kotlin.String = "Importing"
    }

    public object Initializing : aws.sdk.kotlin.services.neptunegraph.model.ImportTaskStatus() {
        override val value: kotlin.String = "INITIALIZING"
        override fun toString(): kotlin.String = "Initializing"
    }

    public object Reprovisioning : aws.sdk.kotlin.services.neptunegraph.model.ImportTaskStatus() {
        override val value: kotlin.String = "REPROVISIONING"
        override fun toString(): kotlin.String = "Reprovisioning"
    }

    public object RollingBack : aws.sdk.kotlin.services.neptunegraph.model.ImportTaskStatus() {
        override val value: kotlin.String = "ROLLING_BACK"
        override fun toString(): kotlin.String = "RollingBack"
    }

    public object Succeeded : aws.sdk.kotlin.services.neptunegraph.model.ImportTaskStatus() {
        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.neptunegraph.model.ImportTaskStatus() {
        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.neptunegraph.model.ImportTaskStatus = when (value) {
            "ANALYZING_DATA" -> AnalyzingData
            "CANCELLED" -> Cancelled
            "CANCELLING" -> Cancelling
            "EXPORTING" -> Exporting
            "FAILED" -> Failed
            "IMPORTING" -> Importing
            "INITIALIZING" -> Initializing
            "REPROVISIONING" -> Reprovisioning
            "ROLLING_BACK" -> RollingBack
            "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(
            AnalyzingData,
            Cancelled,
            Cancelling,
            Exporting,
            Failed,
            Importing,
            Initializing,
            Reprovisioning,
            RollingBack,
            Succeeded,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy