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

commonMain.aws.sdk.kotlin.services.configservice.model.ConfigurationItemStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.configservice.model

import kotlin.collections.List

sealed class ConfigurationItemStatus {

    abstract val value: kotlin.String

    object Ok : aws.sdk.kotlin.services.configservice.model.ConfigurationItemStatus() {
        override val value: kotlin.String = "OK"
        override fun toString(): kotlin.String = value
    }

    object ResourceDeleted : aws.sdk.kotlin.services.configservice.model.ConfigurationItemStatus() {
        override val value: kotlin.String = "ResourceDeleted"
        override fun toString(): kotlin.String = value
    }

    object ResourceDeletedNotRecorded : aws.sdk.kotlin.services.configservice.model.ConfigurationItemStatus() {
        override val value: kotlin.String = "ResourceDeletedNotRecorded"
        override fun toString(): kotlin.String = value
    }

    object ResourceDiscovered : aws.sdk.kotlin.services.configservice.model.ConfigurationItemStatus() {
        override val value: kotlin.String = "ResourceDiscovered"
        override fun toString(): kotlin.String = value
    }

    object ResourceNotRecorded : aws.sdk.kotlin.services.configservice.model.ConfigurationItemStatus() {
        override val value: kotlin.String = "ResourceNotRecorded"
        override fun toString(): kotlin.String = value
    }

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

    companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.configservice.model.ConfigurationItemStatus = when(str) {
            "OK" -> Ok
            "ResourceDeleted" -> ResourceDeleted
            "ResourceDeletedNotRecorded" -> ResourceDeletedNotRecorded
            "ResourceDiscovered" -> ResourceDiscovered
            "ResourceNotRecorded" -> ResourceNotRecorded
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        fun values(): kotlin.collections.List = listOf(
            Ok,
            ResourceDeleted,
            ResourceDeletedNotRecorded,
            ResourceDiscovered,
            ResourceNotRecorded
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy