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

commonMain.aws.sdk.kotlin.services.computeoptimizer.model.MetricName.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 MetricName {
    public abstract val value: kotlin.String

    public object Cpu : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "Cpu"
        override fun toString(): kotlin.String = "Cpu"
    }

    public object DiskReadBytesPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "DISK_READ_BYTES_PER_SECOND"
        override fun toString(): kotlin.String = "DiskReadBytesPerSecond"
    }

    public object DiskReadOpsPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "DISK_READ_OPS_PER_SECOND"
        override fun toString(): kotlin.String = "DiskReadOpsPerSecond"
    }

    public object DiskWriteBytesPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "DISK_WRITE_BYTES_PER_SECOND"
        override fun toString(): kotlin.String = "DiskWriteBytesPerSecond"
    }

    public object DiskWriteOpsPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "DISK_WRITE_OPS_PER_SECOND"
        override fun toString(): kotlin.String = "DiskWriteOpsPerSecond"
    }

    public object EbsReadBytesPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "EBS_READ_BYTES_PER_SECOND"
        override fun toString(): kotlin.String = "EbsReadBytesPerSecond"
    }

    public object EbsReadOpsPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "EBS_READ_OPS_PER_SECOND"
        override fun toString(): kotlin.String = "EbsReadOpsPerSecond"
    }

    public object EbsWriteBytesPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "EBS_WRITE_BYTES_PER_SECOND"
        override fun toString(): kotlin.String = "EbsWriteBytesPerSecond"
    }

    public object EbsWriteOpsPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "EBS_WRITE_OPS_PER_SECOND"
        override fun toString(): kotlin.String = "EbsWriteOpsPerSecond"
    }

    public object GpuMemoryPercentage : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "GPU_MEMORY_PERCENTAGE"
        override fun toString(): kotlin.String = "GpuMemoryPercentage"
    }

    public object GpuPercentage : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "GPU_PERCENTAGE"
        override fun toString(): kotlin.String = "GpuPercentage"
    }

    public object Memory : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "Memory"
        override fun toString(): kotlin.String = "Memory"
    }

    public object NetworkInBytesPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "NETWORK_IN_BYTES_PER_SECOND"
        override fun toString(): kotlin.String = "NetworkInBytesPerSecond"
    }

    public object NetworkOutBytesPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "NETWORK_OUT_BYTES_PER_SECOND"
        override fun toString(): kotlin.String = "NetworkOutBytesPerSecond"
    }

    public object NetworkPacketsInPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "NETWORK_PACKETS_IN_PER_SECOND"
        override fun toString(): kotlin.String = "NetworkPacketsInPerSecond"
    }

    public object NetworkPacketsOutPerSecond : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        override val value: kotlin.String = "NETWORK_PACKETS_OUT_PER_SECOND"
        override fun toString(): kotlin.String = "NetworkPacketsOutPerSecond"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.computeoptimizer.model.MetricName() {
        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.MetricName = when (value) {
            "Cpu" -> Cpu
            "DISK_READ_BYTES_PER_SECOND" -> DiskReadBytesPerSecond
            "DISK_READ_OPS_PER_SECOND" -> DiskReadOpsPerSecond
            "DISK_WRITE_BYTES_PER_SECOND" -> DiskWriteBytesPerSecond
            "DISK_WRITE_OPS_PER_SECOND" -> DiskWriteOpsPerSecond
            "EBS_READ_BYTES_PER_SECOND" -> EbsReadBytesPerSecond
            "EBS_READ_OPS_PER_SECOND" -> EbsReadOpsPerSecond
            "EBS_WRITE_BYTES_PER_SECOND" -> EbsWriteBytesPerSecond
            "EBS_WRITE_OPS_PER_SECOND" -> EbsWriteOpsPerSecond
            "GPU_MEMORY_PERCENTAGE" -> GpuMemoryPercentage
            "GPU_PERCENTAGE" -> GpuPercentage
            "Memory" -> Memory
            "NETWORK_IN_BYTES_PER_SECOND" -> NetworkInBytesPerSecond
            "NETWORK_OUT_BYTES_PER_SECOND" -> NetworkOutBytesPerSecond
            "NETWORK_PACKETS_IN_PER_SECOND" -> NetworkPacketsInPerSecond
            "NETWORK_PACKETS_OUT_PER_SECOND" -> NetworkPacketsOutPerSecond
            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,
            DiskReadBytesPerSecond,
            DiskReadOpsPerSecond,
            DiskWriteBytesPerSecond,
            DiskWriteOpsPerSecond,
            EbsReadBytesPerSecond,
            EbsReadOpsPerSecond,
            EbsWriteBytesPerSecond,
            EbsWriteOpsPerSecond,
            GpuMemoryPercentage,
            GpuPercentage,
            Memory,
            NetworkInBytesPerSecond,
            NetworkOutBytesPerSecond,
            NetworkPacketsInPerSecond,
            NetworkPacketsOutPerSecond,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy