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

commonMain.aws.sdk.kotlin.services.route53recoverycontrolconfig.model.Status.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.route53recoverycontrolconfig.model

import kotlin.collections.List

/**
 * The deployment status of a resource. Status can be one of the following:
 *
 * PENDING: Amazon Route 53 Application Recovery Controller is creating the resource.
 *
 * DEPLOYED: The resource is deployed and ready to use.
 *
 * PENDING_DELETION: Amazon Route 53 Application Recovery Controller is deleting the resource.
 */
public sealed class Status {
    public abstract val value: kotlin.String

    public object Deployed : aws.sdk.kotlin.services.route53recoverycontrolconfig.model.Status() {
        override val value: kotlin.String = "DEPLOYED"
        override fun toString(): kotlin.String = "Deployed"
    }

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

    public object PendingDeletion : aws.sdk.kotlin.services.route53recoverycontrolconfig.model.Status() {
        override val value: kotlin.String = "PENDING_DELETION"
        override fun toString(): kotlin.String = "PendingDeletion"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.route53recoverycontrolconfig.model.Status() {
        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.route53recoverycontrolconfig.model.Status = when (value) {
            "DEPLOYED" -> Deployed
            "PENDING" -> Pending
            "PENDING_DELETION" -> PendingDeletion
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Deployed,
            Pending,
            PendingDeletion,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy