commonMain.aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName.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 RdsdbMetricName {
public abstract val value: kotlin.String
public object Cpu : aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName() {
override val value: kotlin.String = "CPU"
override fun toString(): kotlin.String = "Cpu"
}
public object DatabaseConnections : aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName() {
override val value: kotlin.String = "DatabaseConnections"
override fun toString(): kotlin.String = "DatabaseConnections"
}
public object EbsVolumeReadIops : aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName() {
override val value: kotlin.String = "EBSVolumeReadIOPS"
override fun toString(): kotlin.String = "EbsVolumeReadIops"
}
public object EbsVolumeReadThroughput : aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName() {
override val value: kotlin.String = "EBSVolumeReadThroughput"
override fun toString(): kotlin.String = "EbsVolumeReadThroughput"
}
public object EbsVolumeStorageSpaceUtilization : aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName() {
override val value: kotlin.String = "EBSVolumeStorageSpaceUtilization"
override fun toString(): kotlin.String = "EbsVolumeStorageSpaceUtilization"
}
public object EbsVolumeWriteIops : aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName() {
override val value: kotlin.String = "EBSVolumeWriteIOPS"
override fun toString(): kotlin.String = "EbsVolumeWriteIops"
}
public object EbsVolumeWriteThroughput : aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName() {
override val value: kotlin.String = "EBSVolumeWriteThroughput"
override fun toString(): kotlin.String = "EbsVolumeWriteThroughput"
}
public object Memory : aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName() {
override val value: kotlin.String = "Memory"
override fun toString(): kotlin.String = "Memory"
}
public object NetworkReceiveThroughput : aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName() {
override val value: kotlin.String = "NetworkReceiveThroughput"
override fun toString(): kotlin.String = "NetworkReceiveThroughput"
}
public object NetworkTransmitThroughput : aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName() {
override val value: kotlin.String = "NetworkTransmitThroughput"
override fun toString(): kotlin.String = "NetworkTransmitThroughput"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName() {
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.RdsdbMetricName = when (value) {
"CPU" -> Cpu
"DatabaseConnections" -> DatabaseConnections
"EBSVolumeReadIOPS" -> EbsVolumeReadIops
"EBSVolumeReadThroughput" -> EbsVolumeReadThroughput
"EBSVolumeStorageSpaceUtilization" -> EbsVolumeStorageSpaceUtilization
"EBSVolumeWriteIOPS" -> EbsVolumeWriteIops
"EBSVolumeWriteThroughput" -> EbsVolumeWriteThroughput
"Memory" -> Memory
"NetworkReceiveThroughput" -> NetworkReceiveThroughput
"NetworkTransmitThroughput" -> NetworkTransmitThroughput
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Cpu,
DatabaseConnections,
EbsVolumeReadIops,
EbsVolumeReadThroughput,
EbsVolumeStorageSpaceUtilization,
EbsVolumeWriteIops,
EbsVolumeWriteThroughput,
Memory,
NetworkReceiveThroughput,
NetworkTransmitThroughput,
)
}
}