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 = value
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.lightsail.model.MetricName() {
        override fun toString(): kotlin.String = value
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.lightsail.model.MetricName = when(str) {
            "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(str)
        }

        /**
         * Get a list of all possible variants
         */
        public fun 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