commonMain.aws.sdk.kotlin.services.tnb.model.NsState.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tnb-jvm Show documentation
Show all versions of tnb-jvm Show documentation
The AWS SDK for Kotlin client for tnb
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.tnb.model
import kotlin.collections.List
public sealed class NsState {
public abstract val value: kotlin.String
public object Deleted : aws.sdk.kotlin.services.tnb.model.NsState() {
override val value: kotlin.String = "DELETED"
override fun toString(): kotlin.String = "Deleted"
}
public object Impaired : aws.sdk.kotlin.services.tnb.model.NsState() {
override val value: kotlin.String = "IMPAIRED"
override fun toString(): kotlin.String = "Impaired"
}
public object Instantiated : aws.sdk.kotlin.services.tnb.model.NsState() {
override val value: kotlin.String = "INSTANTIATED"
override fun toString(): kotlin.String = "Instantiated"
}
public object InstantiateInProgress : aws.sdk.kotlin.services.tnb.model.NsState() {
override val value: kotlin.String = "INSTANTIATE_IN_PROGRESS"
override fun toString(): kotlin.String = "InstantiateInProgress"
}
public object IntentToUpdateInProgress : aws.sdk.kotlin.services.tnb.model.NsState() {
override val value: kotlin.String = "INTENT_TO_UPDATE_IN_PROGRESS"
override fun toString(): kotlin.String = "IntentToUpdateInProgress"
}
public object NotInstantiated : aws.sdk.kotlin.services.tnb.model.NsState() {
override val value: kotlin.String = "NOT_INSTANTIATED"
override fun toString(): kotlin.String = "NotInstantiated"
}
public object Stopped : aws.sdk.kotlin.services.tnb.model.NsState() {
override val value: kotlin.String = "STOPPED"
override fun toString(): kotlin.String = "Stopped"
}
public object TerminateInProgress : aws.sdk.kotlin.services.tnb.model.NsState() {
override val value: kotlin.String = "TERMINATE_IN_PROGRESS"
override fun toString(): kotlin.String = "TerminateInProgress"
}
public object Updated : aws.sdk.kotlin.services.tnb.model.NsState() {
override val value: kotlin.String = "UPDATED"
override fun toString(): kotlin.String = "Updated"
}
public object UpdateFailed : aws.sdk.kotlin.services.tnb.model.NsState() {
override val value: kotlin.String = "UPDATE_FAILED"
override fun toString(): kotlin.String = "UpdateFailed"
}
public object UpdateInProgress : aws.sdk.kotlin.services.tnb.model.NsState() {
override val value: kotlin.String = "UPDATE_IN_PROGRESS"
override fun toString(): kotlin.String = "UpdateInProgress"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.tnb.model.NsState() {
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.tnb.model.NsState = when (value) {
"DELETED" -> Deleted
"IMPAIRED" -> Impaired
"INSTANTIATED" -> Instantiated
"INSTANTIATE_IN_PROGRESS" -> InstantiateInProgress
"INTENT_TO_UPDATE_IN_PROGRESS" -> IntentToUpdateInProgress
"NOT_INSTANTIATED" -> NotInstantiated
"STOPPED" -> Stopped
"TERMINATE_IN_PROGRESS" -> TerminateInProgress
"UPDATED" -> Updated
"UPDATE_FAILED" -> UpdateFailed
"UPDATE_IN_PROGRESS" -> UpdateInProgress
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Deleted,
Impaired,
Instantiated,
InstantiateInProgress,
IntentToUpdateInProgress,
NotInstantiated,
Stopped,
TerminateInProgress,
Updated,
UpdateFailed,
UpdateInProgress,
)
}
}