commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lookoutmetrics-jvm Show documentation
Show all versions of lookoutmetrics-jvm Show documentation
The AWS SDK for Kotlin client for LookoutMetrics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutmetrics.model
import kotlin.collections.List
public sealed class AnomalyDetectorStatus {
public abstract val value: kotlin.String
public object Activating : aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "ACTIVATING"
override fun toString(): kotlin.String = "Activating"
}
public object Active : aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "ACTIVE"
override fun toString(): kotlin.String = "Active"
}
public object BackTestActivating : aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "BACK_TEST_ACTIVATING"
override fun toString(): kotlin.String = "BackTestActivating"
}
public object BackTestActive : aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "BACK_TEST_ACTIVE"
override fun toString(): kotlin.String = "BackTestActive"
}
public object BackTestComplete : aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "BACK_TEST_COMPLETE"
override fun toString(): kotlin.String = "BackTestComplete"
}
public object Deactivated : aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "DEACTIVATED"
override fun toString(): kotlin.String = "Deactivated"
}
public object Deactivating : aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "DEACTIVATING"
override fun toString(): kotlin.String = "Deactivating"
}
public object Deleting : aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "DELETING"
override fun toString(): kotlin.String = "Deleting"
}
public object Failed : aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "FAILED"
override fun toString(): kotlin.String = "Failed"
}
public object Inactive : aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "INACTIVE"
override fun toString(): kotlin.String = "Inactive"
}
public object Learning : aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorStatus() {
override val value: kotlin.String = "LEARNING"
override fun toString(): kotlin.String = "Learning"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.lookoutmetrics.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.lookoutmetrics.model.AnomalyDetectorStatus = when (value) {
"ACTIVATING" -> Activating
"ACTIVE" -> Active
"BACK_TEST_ACTIVATING" -> BackTestActivating
"BACK_TEST_ACTIVE" -> BackTestActive
"BACK_TEST_COMPLETE" -> BackTestComplete
"DEACTIVATED" -> Deactivated
"DEACTIVATING" -> Deactivating
"DELETING" -> Deleting
"FAILED" -> Failed
"INACTIVE" -> Inactive
"LEARNING" -> Learning
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Activating,
Active,
BackTestActivating,
BackTestActive,
BackTestComplete,
Deactivated,
Deactivating,
Deleting,
Failed,
Inactive,
Learning,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy