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

commonMain.aws.sdk.kotlin.services.autoscaling.model.ScalingActivityStatusCode.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 ScalingActivityStatusCode {
    public abstract val value: kotlin.String

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

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

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

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

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

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

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

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

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

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

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

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

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.autoscaling.model.ScalingActivityStatusCode() {
        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.ScalingActivityStatusCode = when (value) {
            "Cancelled" -> Cancelled
            "Failed" -> Failed
            "InProgress" -> InProgress
            "MidLifecycleAction" -> MidLifecycleAction
            "PendingSpotBidPlacement" -> PendingSpotBidPlacement
            "PreInService" -> PreInService
            "Successful" -> Successful
            "WaitingForConnectionDraining" -> WaitingForConnectionDraining
            "WaitingForELBConnectionDraining" -> WaitingForElbConnectionDraining
            "WaitingForInstanceId" -> WaitingForInstanceId
            "WaitingForInstanceWarmup" -> WaitingForInstanceWarmup
            "WaitingForSpotInstanceId" -> WaitingForSpotInstanceId
            "WaitingForSpotInstanceRequestId" -> WaitingForSpotInstanceRequestId
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Cancelled,
            Failed,
            InProgress,
            MidLifecycleAction,
            PendingSpotBidPlacement,
            PreInService,
            Successful,
            WaitingForConnectionDraining,
            WaitingForElbConnectionDraining,
            WaitingForInstanceId,
            WaitingForInstanceWarmup,
            WaitingForSpotInstanceId,
            WaitingForSpotInstanceRequestId,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy