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

commonMain.aws.sdk.kotlin.services.vpclattice.model.TargetStatus.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.vpclattice.model

import kotlin.collections.List

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

    /**
     * The target is deregistering and connection draining is in process.
     */
    public object Draining : aws.sdk.kotlin.services.vpclattice.model.TargetStatus() {
        override val value: kotlin.String = "DRAINING"
        override fun toString(): kotlin.String = "Draining"
    }

    /**
     * The target is healthy.
     */
    public object Healthy : aws.sdk.kotlin.services.vpclattice.model.TargetStatus() {
        override val value: kotlin.String = "HEALTHY"
        override fun toString(): kotlin.String = "Healthy"
    }

    /**
     * The initial health check is in progress.
     */
    public object Initial : aws.sdk.kotlin.services.vpclattice.model.TargetStatus() {
        override val value: kotlin.String = "INITIAL"
        override fun toString(): kotlin.String = "Initial"
    }

    /**
     * Health checks are disabled.
     */
    public object Unavailable : aws.sdk.kotlin.services.vpclattice.model.TargetStatus() {
        override val value: kotlin.String = "UNAVAILABLE"
        override fun toString(): kotlin.String = "Unavailable"
    }

    /**
     * The target failed the health check.
     */
    public object Unhealthy : aws.sdk.kotlin.services.vpclattice.model.TargetStatus() {
        override val value: kotlin.String = "UNHEALTHY"
        override fun toString(): kotlin.String = "Unhealthy"
    }

    /**
     * The target group is not used in a listener rule.
     */
    public object Unused : aws.sdk.kotlin.services.vpclattice.model.TargetStatus() {
        override val value: kotlin.String = "UNUSED"
        override fun toString(): kotlin.String = "Unused"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.vpclattice.model.TargetStatus() {
        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.vpclattice.model.TargetStatus = when (value) {
            "DRAINING" -> Draining
            "HEALTHY" -> Healthy
            "INITIAL" -> Initial
            "UNAVAILABLE" -> Unavailable
            "UNHEALTHY" -> Unhealthy
            "UNUSED" -> Unused
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Draining,
            Healthy,
            Initial,
            Unavailable,
            Unhealthy,
            Unused,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy