commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.State.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
import kotlin.collections.List
public sealed class State {
public abstract val value: kotlin.String
public object Active : aws.sdk.kotlin.services.cloudwatchlogs.model.State() {
override val value: kotlin.String = "Active"
override fun toString(): kotlin.String = "Active"
}
public object Baseline : aws.sdk.kotlin.services.cloudwatchlogs.model.State() {
override val value: kotlin.String = "Baseline"
override fun toString(): kotlin.String = "Baseline"
}
public object Suppressed : aws.sdk.kotlin.services.cloudwatchlogs.model.State() {
override val value: kotlin.String = "Suppressed"
override fun toString(): kotlin.String = "Suppressed"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.cloudwatchlogs.model.State() {
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.cloudwatchlogs.model.State = when (value) {
"Active" -> Active
"Baseline" -> Baseline
"Suppressed" -> Suppressed
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Active,
Baseline,
Suppressed,
)
}
}