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

commonMain.aws.sdk.kotlin.services.budgets.model.ActionStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.budgets.model

import kotlin.collections.List

public sealed class ActionStatus {

    public abstract val value: kotlin.String

    public object ExecutionFailure : aws.sdk.kotlin.services.budgets.model.ActionStatus() {
        override val value: kotlin.String = "EXECUTION_FAILURE"
        override fun toString(): kotlin.String = value
    }

    public object ExecutionInProgress : aws.sdk.kotlin.services.budgets.model.ActionStatus() {
        override val value: kotlin.String = "EXECUTION_IN_PROGRESS"
        override fun toString(): kotlin.String = value
    }

    public object ExecutionSuccess : aws.sdk.kotlin.services.budgets.model.ActionStatus() {
        override val value: kotlin.String = "EXECUTION_SUCCESS"
        override fun toString(): kotlin.String = value
    }

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

    public object ResetFailure : aws.sdk.kotlin.services.budgets.model.ActionStatus() {
        override val value: kotlin.String = "RESET_FAILURE"
        override fun toString(): kotlin.String = value
    }

    public object ResetInProgress : aws.sdk.kotlin.services.budgets.model.ActionStatus() {
        override val value: kotlin.String = "RESET_IN_PROGRESS"
        override fun toString(): kotlin.String = value
    }

    public object ReverseFailure : aws.sdk.kotlin.services.budgets.model.ActionStatus() {
        override val value: kotlin.String = "REVERSE_FAILURE"
        override fun toString(): kotlin.String = value
    }

    public object ReverseInProgress : aws.sdk.kotlin.services.budgets.model.ActionStatus() {
        override val value: kotlin.String = "REVERSE_IN_PROGRESS"
        override fun toString(): kotlin.String = value
    }

    public object ReverseSuccess : aws.sdk.kotlin.services.budgets.model.ActionStatus() {
        override val value: kotlin.String = "REVERSE_SUCCESS"
        override fun toString(): kotlin.String = value
    }

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.budgets.model.ActionStatus() {
        override fun toString(): kotlin.String = value
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.budgets.model.ActionStatus = when(str) {
            "EXECUTION_FAILURE" -> ExecutionFailure
            "EXECUTION_IN_PROGRESS" -> ExecutionInProgress
            "EXECUTION_SUCCESS" -> ExecutionSuccess
            "PENDING" -> Pending
            "RESET_FAILURE" -> ResetFailure
            "RESET_IN_PROGRESS" -> ResetInProgress
            "REVERSE_FAILURE" -> ReverseFailure
            "REVERSE_IN_PROGRESS" -> ReverseInProgress
            "REVERSE_SUCCESS" -> ReverseSuccess
            "STANDBY" -> Standby
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = listOf(
            ExecutionFailure,
            ExecutionInProgress,
            ExecutionSuccess,
            Pending,
            ResetFailure,
            ResetInProgress,
            ReverseFailure,
            ReverseInProgress,
            ReverseSuccess,
            Standby
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy