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

aws.sdk.kotlin.services.devopsguru.model.CostEstimationStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.devopsguru.model

import kotlin.collections.List

sealed class CostEstimationStatus {

    abstract val value: kotlin.String

    object Completed : aws.sdk.kotlin.services.devopsguru.model.CostEstimationStatus() {
        override val value: kotlin.String = "COMPLETED"
        override fun toString(): kotlin.String = value
    }

    object Ongoing : aws.sdk.kotlin.services.devopsguru.model.CostEstimationStatus() {
        override val value: kotlin.String = "ONGOING"
        override fun toString(): kotlin.String = value
    }

    data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.devopsguru.model.CostEstimationStatus() {
        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.devopsguru.model.CostEstimationStatus = when(str) {
            "COMPLETED" -> Completed
            "ONGOING" -> Ongoing
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        fun values(): kotlin.collections.List = listOf(
            Completed,
            Ongoing
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy