commonMain.aws.sdk.kotlin.services.route53.model.HealthCheckRegion.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53-jvm Show documentation
Show all versions of route53-jvm Show documentation
The AWS SDK for Kotlin client for Route 53
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53.model
import kotlin.collections.List
public sealed class HealthCheckRegion {
public abstract val value: kotlin.String
public object ApNortheast1 : aws.sdk.kotlin.services.route53.model.HealthCheckRegion() {
override val value: kotlin.String = "ap-northeast-1"
override fun toString(): kotlin.String = "ApNortheast1"
}
public object ApSoutheast1 : aws.sdk.kotlin.services.route53.model.HealthCheckRegion() {
override val value: kotlin.String = "ap-southeast-1"
override fun toString(): kotlin.String = "ApSoutheast1"
}
public object ApSoutheast2 : aws.sdk.kotlin.services.route53.model.HealthCheckRegion() {
override val value: kotlin.String = "ap-southeast-2"
override fun toString(): kotlin.String = "ApSoutheast2"
}
public object EuWest1 : aws.sdk.kotlin.services.route53.model.HealthCheckRegion() {
override val value: kotlin.String = "eu-west-1"
override fun toString(): kotlin.String = "EuWest1"
}
public object SaEast1 : aws.sdk.kotlin.services.route53.model.HealthCheckRegion() {
override val value: kotlin.String = "sa-east-1"
override fun toString(): kotlin.String = "SaEast1"
}
public object UsEast1 : aws.sdk.kotlin.services.route53.model.HealthCheckRegion() {
override val value: kotlin.String = "us-east-1"
override fun toString(): kotlin.String = "UsEast1"
}
public object UsWest1 : aws.sdk.kotlin.services.route53.model.HealthCheckRegion() {
override val value: kotlin.String = "us-west-1"
override fun toString(): kotlin.String = "UsWest1"
}
public object UsWest2 : aws.sdk.kotlin.services.route53.model.HealthCheckRegion() {
override val value: kotlin.String = "us-west-2"
override fun toString(): kotlin.String = "UsWest2"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.route53.model.HealthCheckRegion() {
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.route53.model.HealthCheckRegion = when (value) {
"ap-northeast-1" -> ApNortheast1
"ap-southeast-1" -> ApSoutheast1
"ap-southeast-2" -> ApSoutheast2
"eu-west-1" -> EuWest1
"sa-east-1" -> SaEast1
"us-east-1" -> UsEast1
"us-west-1" -> UsWest1
"us-west-2" -> UsWest2
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
ApNortheast1,
ApSoutheast1,
ApSoutheast2,
EuWest1,
SaEast1,
UsEast1,
UsWest1,
UsWest2,
)
}
}