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

commonMain.aws.sdk.kotlin.services.lightsail.model.MetricName.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.lightsail.model

import kotlin.collections.List

public sealed class MetricName {
    public abstract val value: kotlin.String

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.lightsail.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.lightsail.model.MetricName = when (value) {
            "BurstCapacityPercentage" -> BurstCapacityPercentage
            "BurstCapacityTime" -> BurstCapacityTime
            "CPUUtilization" -> CpuUtilization
            "ClientTLSNegotiationErrorCount" -> ClientTlsNegotiationErrorCount
            "DatabaseConnections" -> DatabaseConnections
            "DiskQueueDepth" -> DiskQueueDepth
            "FreeStorageSpace" -> FreeStorageSpace
            "HTTPCode_Instance_2XX_Count" -> HttpCodeInstance2XxCount
            "HTTPCode_Instance_3XX_Count" -> HttpCodeInstance3XxCount
            "HTTPCode_Instance_4XX_Count" -> HttpCodeInstance4XxCount
            "HTTPCode_Instance_5XX_Count" -> HttpCodeInstance5XxCount
            "HTTPCode_LB_4XX_Count" -> HttpCodeLb4XxCount
            "HTTPCode_LB_5XX_Count" -> HttpCodeLb5XxCount
            "HealthyHostCount" -> HealthyHostCount
            "InstanceResponseTime" -> InstanceResponseTime
            "NetworkIn" -> NetworkIn
            "NetworkOut" -> NetworkOut
            "NetworkReceiveThroughput" -> NetworkReceiveThroughput
            "NetworkTransmitThroughput" -> NetworkTransmitThroughput
            "RejectedConnectionCount" -> RejectedConnectionCount
            "RequestCount" -> RequestCount
            "StatusCheckFailed" -> StatusCheckFailed
            "StatusCheckFailed_Instance" -> StatusCheckFailedInstance
            "StatusCheckFailed_System" -> StatusCheckFailedSystem
            "UnhealthyHostCount" -> UnhealthyHostCount
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            BurstCapacityPercentage,
            BurstCapacityTime,
            CpuUtilization,
            ClientTlsNegotiationErrorCount,
            DatabaseConnections,
            DiskQueueDepth,
            FreeStorageSpace,
            HttpCodeInstance2XxCount,
            HttpCodeInstance3XxCount,
            HttpCodeInstance4XxCount,
            HttpCodeInstance5XxCount,
            HttpCodeLb4XxCount,
            HttpCodeLb5XxCount,
            HealthyHostCount,
            InstanceResponseTime,
            NetworkIn,
            NetworkOut,
            NetworkReceiveThroughput,
            NetworkTransmitThroughput,
            RejectedConnectionCount,
            RequestCount,
            StatusCheckFailed,
            StatusCheckFailedInstance,
            StatusCheckFailedSystem,
            UnhealthyHostCount,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy