commonMain.aws.sdk.kotlin.services.computeoptimizer.model.CustomizableMetricThreshold.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of computeoptimizer-jvm Show documentation
Show all versions of computeoptimizer-jvm Show documentation
The AWS SDK for Kotlin client for Compute Optimizer
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.computeoptimizer.model
import kotlin.collections.List
public sealed class CustomizableMetricThreshold {
public abstract val value: kotlin.String
public object P90 : aws.sdk.kotlin.services.computeoptimizer.model.CustomizableMetricThreshold() {
override val value: kotlin.String = "P90"
override fun toString(): kotlin.String = "P90"
}
public object P95 : aws.sdk.kotlin.services.computeoptimizer.model.CustomizableMetricThreshold() {
override val value: kotlin.String = "P95"
override fun toString(): kotlin.String = "P95"
}
public object P99_5 : aws.sdk.kotlin.services.computeoptimizer.model.CustomizableMetricThreshold() {
override val value: kotlin.String = "P99_5"
override fun toString(): kotlin.String = "P99_5"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.computeoptimizer.model.CustomizableMetricThreshold() {
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.computeoptimizer.model.CustomizableMetricThreshold = when (value) {
"P90" -> P90
"P95" -> P95
"P99_5" -> P99_5
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
P90,
P95,
P99_5,
)
}
}