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

commonMain.aws.sdk.kotlin.services.appconfig.model.DeletionProtectionCheck.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.appconfig.model

import kotlin.collections.List

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

    public object AccountDefault : aws.sdk.kotlin.services.appconfig.model.DeletionProtectionCheck() {
        override val value: kotlin.String = "ACCOUNT_DEFAULT"
        override fun toString(): kotlin.String = "AccountDefault"
    }

    public object Apply : aws.sdk.kotlin.services.appconfig.model.DeletionProtectionCheck() {
        override val value: kotlin.String = "APPLY"
        override fun toString(): kotlin.String = "Apply"
    }

    public object Bypass : aws.sdk.kotlin.services.appconfig.model.DeletionProtectionCheck() {
        override val value: kotlin.String = "BYPASS"
        override fun toString(): kotlin.String = "Bypass"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.appconfig.model.DeletionProtectionCheck() {
        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.appconfig.model.DeletionProtectionCheck = when (value) {
            "ACCOUNT_DEFAULT" -> AccountDefault
            "APPLY" -> Apply
            "BYPASS" -> Bypass
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            AccountDefault,
            Apply,
            Bypass,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy