commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.AnomalyDetectorStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatchlogs-jvm Show documentation
Show all versions of cloudwatchlogs-jvm Show documentation
The AWS SDK for Kotlin client for CloudWatch Logs
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
import kotlin.collections.List
public sealed class AnomalyDetectorStatus {
public abstract val value: kotlin.String
public object Analyzing : aws.sdk.kotlin.services.cloudwatchlogs.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "ANALYZING"
override fun toString(): kotlin.String = "Analyzing"
}
public object Deleted : aws.sdk.kotlin.services.cloudwatchlogs.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "DELETED"
override fun toString(): kotlin.String = "Deleted"
}
public object Failed : aws.sdk.kotlin.services.cloudwatchlogs.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "FAILED"
override fun toString(): kotlin.String = "Failed"
}
public object Initializing : aws.sdk.kotlin.services.cloudwatchlogs.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "INITIALIZING"
override fun toString(): kotlin.String = "Initializing"
}
public object Paused : aws.sdk.kotlin.services.cloudwatchlogs.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "PAUSED"
override fun toString(): kotlin.String = "Paused"
}
public object Training : aws.sdk.kotlin.services.cloudwatchlogs.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "TRAINING"
override fun toString(): kotlin.String = "Training"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.cloudwatchlogs.model.AnomalyDetectorStatus() {
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.AnomalyDetectorStatus = when (value) {
"ANALYZING" -> Analyzing
"DELETED" -> Deleted
"FAILED" -> Failed
"INITIALIZING" -> Initializing
"PAUSED" -> Paused
"TRAINING" -> Training
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Analyzing,
Deleted,
Failed,
Initializing,
Paused,
Training,
)
}
}