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

commonMain.aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codedeploy.model

import kotlin.collections.List

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

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

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

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

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

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

    public object Ready : aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus() {
        override val value: kotlin.String = "Ready"
        override fun toString(): kotlin.String = "Ready"
    }

    public object Stopped : aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus() {
        override val value: kotlin.String = "Stopped"
        override fun toString(): kotlin.String = "Stopped"
    }

    public object Succeeded : aws.sdk.kotlin.services.codedeploy.model.DeploymentStatus() {
        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.codedeploy.model.DeploymentStatus() {
        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.codedeploy.model.DeploymentStatus = when (value) {
            "Baking" -> Baking
            "Created" -> Created
            "Failed" -> Failed
            "InProgress" -> InProgress
            "Queued" -> Queued
            "Ready" -> Ready
            "Stopped" -> Stopped
            "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(
            Baking,
            Created,
            Failed,
            InProgress,
            Queued,
            Ready,
            Stopped,
            Succeeded,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy