commonMain.aws.sdk.kotlin.services.vpclattice.model.TargetStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vpclattice-jvm Show documentation
Show all versions of vpclattice-jvm Show documentation
The AWS SDK for Kotlin client for VPC Lattice
// 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,
)
}
}