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

commonMain.aws.sdk.kotlin.services.wellarchitected.model.ImportLensStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.wellarchitected.model

import kotlin.collections.List

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

    public object Complete : aws.sdk.kotlin.services.wellarchitected.model.ImportLensStatus() {
        override val value: kotlin.String = "COMPLETE"
        override fun toString(): kotlin.String = "Complete"
    }

    public object Error : aws.sdk.kotlin.services.wellarchitected.model.ImportLensStatus() {
        override val value: kotlin.String = "ERROR"
        override fun toString(): kotlin.String = "Error"
    }

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.wellarchitected.model.ImportLensStatus() {
        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.wellarchitected.model.ImportLensStatus = when (value) {
            "COMPLETE" -> Complete
            "ERROR" -> Error
            "IN_PROGRESS" -> InProgress
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Complete,
            Error,
            InProgress,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy