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

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

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

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

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

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

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

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

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

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

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.computeoptimizer.model.RdsInstanceFindingReasonCode() {
        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.RdsInstanceFindingReasonCode = when (value) {
            "CPUOverprovisioned" -> CpuOverProvisioned
            "CPUUnderprovisioned" -> CpuUnderProvisioned
            "EBSIOPSOverprovisioned" -> EbsIopsOverProvisioned
            "EBSThroughputOverprovisioned" -> EbsThroughputOverProvisioned
            "EBSThroughputUnderprovisioned" -> EbsThroughputUnderProvisioned
            "NetworkBandwidthOverprovisioned" -> NetworkBandwidthOverProvisioned
            "NetworkBandwidthUnderprovisioned" -> NetworkBandwidthUnderProvisioned
            "NewEngineVersionAvailable" -> NewEngineVersionAvailable
            "NewGenerationDBInstanceClassAvailable" -> NewGenerationDbInstanceClassAvailable
            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,
            EbsIopsOverProvisioned,
            EbsThroughputOverProvisioned,
            EbsThroughputUnderProvisioned,
            NetworkBandwidthOverProvisioned,
            NetworkBandwidthUnderProvisioned,
            NewEngineVersionAvailable,
            NewGenerationDbInstanceClassAvailable,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy