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

commonMain.aws.sdk.kotlin.services.finspace.model.TgwStatus.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.finspace.model

import kotlin.collections.List

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

    public object FailedUpdate : aws.sdk.kotlin.services.finspace.model.TgwStatus() {
        override val value: kotlin.String = "FAILED_UPDATE"
        override fun toString(): kotlin.String = "FailedUpdate"
    }

    public object None : aws.sdk.kotlin.services.finspace.model.TgwStatus() {
        override val value: kotlin.String = "NONE"
        override fun toString(): kotlin.String = "None"
    }

    public object SuccessfullyUpdated : aws.sdk.kotlin.services.finspace.model.TgwStatus() {
        override val value: kotlin.String = "SUCCESSFULLY_UPDATED"
        override fun toString(): kotlin.String = "SuccessfullyUpdated"
    }

    public object UpdateRequested : aws.sdk.kotlin.services.finspace.model.TgwStatus() {
        override val value: kotlin.String = "UPDATE_REQUESTED"
        override fun toString(): kotlin.String = "UpdateRequested"
    }

    public object Updating : aws.sdk.kotlin.services.finspace.model.TgwStatus() {
        override val value: kotlin.String = "UPDATING"
        override fun toString(): kotlin.String = "Updating"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.finspace.model.TgwStatus() {
        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.finspace.model.TgwStatus = when (value) {
            "FAILED_UPDATE" -> FailedUpdate
            "NONE" -> None
            "SUCCESSFULLY_UPDATED" -> SuccessfullyUpdated
            "UPDATE_REQUESTED" -> UpdateRequested
            "UPDATING" -> Updating
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            FailedUpdate,
            None,
            SuccessfullyUpdated,
            UpdateRequested,
            Updating,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy