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

commonMain.aws.sdk.kotlin.services.appconfig.model.DeploymentState.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.appconfig.model

import kotlin.collections.List

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

    public object Baking : aws.sdk.kotlin.services.appconfig.model.DeploymentState() {
        override val value: kotlin.String = "BAKING"
        override fun toString(): kotlin.String = "Baking"
    }

    public object Complete : aws.sdk.kotlin.services.appconfig.model.DeploymentState() {
        override val value: kotlin.String = "COMPLETE"
        override fun toString(): kotlin.String = "Complete"
    }

    public object Deploying : aws.sdk.kotlin.services.appconfig.model.DeploymentState() {
        override val value: kotlin.String = "DEPLOYING"
        override fun toString(): kotlin.String = "Deploying"
    }

    public object Reverted : aws.sdk.kotlin.services.appconfig.model.DeploymentState() {
        override val value: kotlin.String = "REVERTED"
        override fun toString(): kotlin.String = "Reverted"
    }

    public object RolledBack : aws.sdk.kotlin.services.appconfig.model.DeploymentState() {
        override val value: kotlin.String = "ROLLED_BACK"
        override fun toString(): kotlin.String = "RolledBack"
    }

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

    public object Validating : aws.sdk.kotlin.services.appconfig.model.DeploymentState() {
        override val value: kotlin.String = "VALIDATING"
        override fun toString(): kotlin.String = "Validating"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.appconfig.model.DeploymentState() {
        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.appconfig.model.DeploymentState = when (value) {
            "BAKING" -> Baking
            "COMPLETE" -> Complete
            "DEPLOYING" -> Deploying
            "REVERTED" -> Reverted
            "ROLLED_BACK" -> RolledBack
            "ROLLING_BACK" -> RollingBack
            "VALIDATING" -> Validating
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Baking,
            Complete,
            Deploying,
            Reverted,
            RolledBack,
            RollingBack,
            Validating,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy