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

commonMain.aws.sdk.kotlin.services.autoscaling.model.LifecycleState.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.autoscaling.model

import kotlin.collections.List

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

    public object Detached : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Detached"
        override fun toString(): kotlin.String = "Detached"
    }

    public object Detaching : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Detaching"
        override fun toString(): kotlin.String = "Detaching"
    }

    public object EnteringStandby : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "EnteringStandby"
        override fun toString(): kotlin.String = "EnteringStandby"
    }

    public object InService : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "InService"
        override fun toString(): kotlin.String = "InService"
    }

    public object Pending : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Pending"
        override fun toString(): kotlin.String = "Pending"
    }

    public object PendingProceed : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Pending:Proceed"
        override fun toString(): kotlin.String = "PendingProceed"
    }

    public object PendingWait : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Pending:Wait"
        override fun toString(): kotlin.String = "PendingWait"
    }

    public object Quarantined : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Quarantined"
        override fun toString(): kotlin.String = "Quarantined"
    }

    public object Standby : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Standby"
        override fun toString(): kotlin.String = "Standby"
    }

    public object Terminated : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Terminated"
        override fun toString(): kotlin.String = "Terminated"
    }

    public object Terminating : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Terminating"
        override fun toString(): kotlin.String = "Terminating"
    }

    public object TerminatingProceed : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Terminating:Proceed"
        override fun toString(): kotlin.String = "TerminatingProceed"
    }

    public object TerminatingWait : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Terminating:Wait"
        override fun toString(): kotlin.String = "TerminatingWait"
    }

    public object WarmedHibernated : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Warmed:Hibernated"
        override fun toString(): kotlin.String = "WarmedHibernated"
    }

    public object WarmedPending : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Warmed:Pending"
        override fun toString(): kotlin.String = "WarmedPending"
    }

    public object WarmedPendingProceed : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Warmed:Pending:Proceed"
        override fun toString(): kotlin.String = "WarmedPendingProceed"
    }

    public object WarmedPendingWait : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Warmed:Pending:Wait"
        override fun toString(): kotlin.String = "WarmedPendingWait"
    }

    public object WarmedRunning : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Warmed:Running"
        override fun toString(): kotlin.String = "WarmedRunning"
    }

    public object WarmedStopped : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Warmed:Stopped"
        override fun toString(): kotlin.String = "WarmedStopped"
    }

    public object WarmedTerminated : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Warmed:Terminated"
        override fun toString(): kotlin.String = "WarmedTerminated"
    }

    public object WarmedTerminating : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Warmed:Terminating"
        override fun toString(): kotlin.String = "WarmedTerminating"
    }

    public object WarmedTerminatingProceed : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Warmed:Terminating:Proceed"
        override fun toString(): kotlin.String = "WarmedTerminatingProceed"
    }

    public object WarmedTerminatingWait : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        override val value: kotlin.String = "Warmed:Terminating:Wait"
        override fun toString(): kotlin.String = "WarmedTerminatingWait"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.autoscaling.model.LifecycleState() {
        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.autoscaling.model.LifecycleState = when (value) {
            "Detached" -> Detached
            "Detaching" -> Detaching
            "EnteringStandby" -> EnteringStandby
            "InService" -> InService
            "Pending" -> Pending
            "Pending:Proceed" -> PendingProceed
            "Pending:Wait" -> PendingWait
            "Quarantined" -> Quarantined
            "Standby" -> Standby
            "Terminated" -> Terminated
            "Terminating" -> Terminating
            "Terminating:Proceed" -> TerminatingProceed
            "Terminating:Wait" -> TerminatingWait
            "Warmed:Hibernated" -> WarmedHibernated
            "Warmed:Pending" -> WarmedPending
            "Warmed:Pending:Proceed" -> WarmedPendingProceed
            "Warmed:Pending:Wait" -> WarmedPendingWait
            "Warmed:Running" -> WarmedRunning
            "Warmed:Stopped" -> WarmedStopped
            "Warmed:Terminated" -> WarmedTerminated
            "Warmed:Terminating" -> WarmedTerminating
            "Warmed:Terminating:Proceed" -> WarmedTerminatingProceed
            "Warmed:Terminating:Wait" -> WarmedTerminatingWait
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Detached,
            Detaching,
            EnteringStandby,
            InService,
            Pending,
            PendingProceed,
            PendingWait,
            Quarantined,
            Standby,
            Terminated,
            Terminating,
            TerminatingProceed,
            TerminatingWait,
            WarmedHibernated,
            WarmedPending,
            WarmedPendingProceed,
            WarmedPendingWait,
            WarmedRunning,
            WarmedStopped,
            WarmedTerminated,
            WarmedTerminating,
            WarmedTerminatingProceed,
            WarmedTerminatingWait,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy