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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.computeoptimizer.model.InstanceRecommendationFindingReasonCode() {
        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.InstanceRecommendationFindingReasonCode = when (value) {
            "CPUOverprovisioned" -> CpuOverProvisioned
            "CPUUnderprovisioned" -> CpuUnderProvisioned
            "DiskIOPSOverprovisioned" -> DiskIopsOverProvisioned
            "DiskIOPSUnderprovisioned" -> DiskIopsUnderProvisioned
            "DiskThroughputOverprovisioned" -> DiskThroughputOverProvisioned
            "DiskThroughputUnderprovisioned" -> DiskThroughputUnderProvisioned
            "EBSIOPSOverprovisioned" -> EbsIopsOverProvisioned
            "EBSIOPSUnderprovisioned" -> EbsIopsUnderProvisioned
            "EBSThroughputOverprovisioned" -> EbsThroughputOverProvisioned
            "EBSThroughputUnderprovisioned" -> EbsThroughputUnderProvisioned
            "GPUMemoryOverprovisioned" -> GpuMemoryOverProvisioned
            "GPUMemoryUnderprovisioned" -> GpuMemoryUnderProvisioned
            "GPUOverprovisioned" -> GpuOverProvisioned
            "GPUUnderprovisioned" -> GpuUnderProvisioned
            "MemoryOverprovisioned" -> MemoryOverProvisioned
            "MemoryUnderprovisioned" -> MemoryUnderProvisioned
            "NetworkBandwidthOverprovisioned" -> NetworkBandwidthOverProvisioned
            "NetworkBandwidthUnderprovisioned" -> NetworkBandwidthUnderProvisioned
            "NetworkPPSOverprovisioned" -> NetworkPpsOverProvisioned
            "NetworkPPSUnderprovisioned" -> NetworkPpsUnderProvisioned
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            CpuOverProvisioned,
            CpuUnderProvisioned,
            DiskIopsOverProvisioned,
            DiskIopsUnderProvisioned,
            DiskThroughputOverProvisioned,
            DiskThroughputUnderProvisioned,
            EbsIopsOverProvisioned,
            EbsIopsUnderProvisioned,
            EbsThroughputOverProvisioned,
            EbsThroughputUnderProvisioned,
            GpuMemoryOverProvisioned,
            GpuMemoryUnderProvisioned,
            GpuOverProvisioned,
            GpuUnderProvisioned,
            MemoryOverProvisioned,
            MemoryUnderProvisioned,
            NetworkBandwidthOverProvisioned,
            NetworkBandwidthUnderProvisioned,
            NetworkPpsOverProvisioned,
            NetworkPpsUnderProvisioned,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy