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

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

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

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

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

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

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

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

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

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

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

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

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.computeoptimizer.model.ExternalMetricStatusCode() {
        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.ExternalMetricStatusCode = when (value) {
            "DATADOG_INTEGRATION_ERROR" -> DatadogIntegrationError
            "DYNATRACE_INTEGRATION_ERROR" -> DynatraceIntegrationError
            "INSTANA_INTEGRATION_ERROR" -> InstanaIntegrationError
            "INSUFFICIENT_DATADOG_METRICS" -> InsufficientDatadogMetrics
            "INSUFFICIENT_DYNATRACE_METRICS" -> InsufficientDynatraceMetrics
            "INSUFFICIENT_INSTANA_METRICS" -> InsufficientInstanaMetrics
            "INSUFFICIENT_NEWRELIC_METRICS" -> InsufficientNewrelicMetrics
            "INTEGRATION_SUCCESS" -> IntegrationSuccess
            "NEWRELIC_INTEGRATION_ERROR" -> NewrelicIntegrationError
            "NO_EXTERNAL_METRIC_SET" -> NoExternalMetricSet
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            DatadogIntegrationError,
            DynatraceIntegrationError,
            InstanaIntegrationError,
            InsufficientDatadogMetrics,
            InsufficientDynatraceMetrics,
            InsufficientInstanaMetrics,
            InsufficientNewrelicMetrics,
            IntegrationSuccess,
            NewrelicIntegrationError,
            NoExternalMetricSet,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy