commonMain.aws.sdk.kotlin.services.computeoptimizer.model.CustomizableMetricHeadroom.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 CustomizableMetricHeadroom {
public abstract val value: kotlin.String
public object Percent0 : aws.sdk.kotlin.services.computeoptimizer.model.CustomizableMetricHeadroom() {
override val value: kotlin.String = "PERCENT_0"
override fun toString(): kotlin.String = "Percent0"
}
public object Percent10 : aws.sdk.kotlin.services.computeoptimizer.model.CustomizableMetricHeadroom() {
override val value: kotlin.String = "PERCENT_10"
override fun toString(): kotlin.String = "Percent10"
}
public object Percent20 : aws.sdk.kotlin.services.computeoptimizer.model.CustomizableMetricHeadroom() {
override val value: kotlin.String = "PERCENT_20"
override fun toString(): kotlin.String = "Percent20"
}
public object Percent30 : aws.sdk.kotlin.services.computeoptimizer.model.CustomizableMetricHeadroom() {
override val value: kotlin.String = "PERCENT_30"
override fun toString(): kotlin.String = "Percent30"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.computeoptimizer.model.CustomizableMetricHeadroom() {
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.CustomizableMetricHeadroom = when (value) {
"PERCENT_0" -> Percent0
"PERCENT_10" -> Percent10
"PERCENT_20" -> Percent20
"PERCENT_30" -> Percent30
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Percent0,
Percent10,
Percent20,
Percent30,
)
}
}