All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.computeoptimizer.model.RdsdbMetricName.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// 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,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy