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

commonMain.aws.sdk.kotlin.services.bedrockdataautomationruntime.model.AutomationJobStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.bedrockdataautomationruntime.model

import kotlin.collections.List

/**
 * List of status supported by automation jobs
 */
public sealed class AutomationJobStatus {
    public abstract val value: kotlin.String

    public object ClientError : aws.sdk.kotlin.services.bedrockdataautomationruntime.model.AutomationJobStatus() {
        override val value: kotlin.String = "ClientError"
        override fun toString(): kotlin.String = "ClientError"
    }

    public object Created : aws.sdk.kotlin.services.bedrockdataautomationruntime.model.AutomationJobStatus() {
        override val value: kotlin.String = "Created"
        override fun toString(): kotlin.String = "Created"
    }

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

    public object ServiceError : aws.sdk.kotlin.services.bedrockdataautomationruntime.model.AutomationJobStatus() {
        override val value: kotlin.String = "ServiceError"
        override fun toString(): kotlin.String = "ServiceError"
    }

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.bedrockdataautomationruntime.model.AutomationJobStatus() {
        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.bedrockdataautomationruntime.model.AutomationJobStatus = when (value) {
            "ClientError" -> ClientError
            "Created" -> Created
            "InProgress" -> InProgress
            "ServiceError" -> ServiceError
            "Success" -> Success
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            ClientError,
            Created,
            InProgress,
            ServiceError,
            Success,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy