commonMain.aws.sdk.kotlin.services.route53domains.model.DomainAvailability.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53domains-jvm Show documentation
Show all versions of route53domains-jvm Show documentation
The AWS SDK for Kotlin client for Route 53 Domains
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53domains.model
import kotlin.collections.List
public sealed class DomainAvailability {
public abstract val value: kotlin.String
public object Available : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
override val value: kotlin.String = "AVAILABLE"
override fun toString(): kotlin.String = "Available"
}
public object AvailablePreorder : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
override val value: kotlin.String = "AVAILABLE_PREORDER"
override fun toString(): kotlin.String = "AvailablePreorder"
}
public object AvailableReserved : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
override val value: kotlin.String = "AVAILABLE_RESERVED"
override fun toString(): kotlin.String = "AvailableReserved"
}
public object DontKnow : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
override val value: kotlin.String = "DONT_KNOW"
override fun toString(): kotlin.String = "DontKnow"
}
public object Reserved : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
override val value: kotlin.String = "RESERVED"
override fun toString(): kotlin.String = "Reserved"
}
public object Unavailable : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
override val value: kotlin.String = "UNAVAILABLE"
override fun toString(): kotlin.String = "Unavailable"
}
public object UnavailablePremium : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
override val value: kotlin.String = "UNAVAILABLE_PREMIUM"
override fun toString(): kotlin.String = "UnavailablePremium"
}
public object UnavailableRestricted : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
override val value: kotlin.String = "UNAVAILABLE_RESTRICTED"
override fun toString(): kotlin.String = "UnavailableRestricted"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.route53domains.model.DomainAvailability() {
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.route53domains.model.DomainAvailability = when (value) {
"AVAILABLE" -> Available
"AVAILABLE_PREORDER" -> AvailablePreorder
"AVAILABLE_RESERVED" -> AvailableReserved
"DONT_KNOW" -> DontKnow
"RESERVED" -> Reserved
"UNAVAILABLE" -> Unavailable
"UNAVAILABLE_PREMIUM" -> UnavailablePremium
"UNAVAILABLE_RESTRICTED" -> UnavailableRestricted
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Available,
AvailablePreorder,
AvailableReserved,
DontKnow,
Reserved,
Unavailable,
UnavailablePremium,
UnavailableRestricted,
)
}
}