commonMain.aws.sdk.kotlin.services.route53domains.model.Transferable.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
/**
* Whether the domain name can be transferred to Route 53.
*
* You can transfer only domains that have a value of `TRANSFERABLE` or `Transferable`.
*
* Valid values:
*
* ## TRANSFERABLE
* The domain name can be transferred to Route 53.
*
* ## UNTRANSFERRABLE
* The domain name can't be transferred to Route 53.
*
* ## DONT_KNOW
* Reserved for future use.
*
* ## DOMAIN_IN_OWN_ACCOUNT
* The domain already exists in the current Amazon Web Services account.
*
* ## DOMAIN_IN_ANOTHER_ACCOUNT
* The domain exists in another Amazon Web Services account.
*
* ## PREMIUM_DOMAIN
* Premium domain transfer is not supported.
*/
public sealed class Transferable {
public abstract val value: kotlin.String
public object DomainInAnotherAccount : aws.sdk.kotlin.services.route53domains.model.Transferable() {
override val value: kotlin.String = "DOMAIN_IN_ANOTHER_ACCOUNT"
override fun toString(): kotlin.String = "DomainInAnotherAccount"
}
public object DomainInOwnAccount : aws.sdk.kotlin.services.route53domains.model.Transferable() {
override val value: kotlin.String = "DOMAIN_IN_OWN_ACCOUNT"
override fun toString(): kotlin.String = "DomainInOwnAccount"
}
public object DontKnow : aws.sdk.kotlin.services.route53domains.model.Transferable() {
override val value: kotlin.String = "DONT_KNOW"
override fun toString(): kotlin.String = "DontKnow"
}
public object PremiumDomain : aws.sdk.kotlin.services.route53domains.model.Transferable() {
override val value: kotlin.String = "PREMIUM_DOMAIN"
override fun toString(): kotlin.String = "PremiumDomain"
}
public object Transferable : aws.sdk.kotlin.services.route53domains.model.Transferable() {
override val value: kotlin.String = "TRANSFERABLE"
override fun toString(): kotlin.String = "Transferable"
}
public object Untransferable : aws.sdk.kotlin.services.route53domains.model.Transferable() {
override val value: kotlin.String = "UNTRANSFERABLE"
override fun toString(): kotlin.String = "Untransferable"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.route53domains.model.Transferable() {
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.Transferable = when (value) {
"DOMAIN_IN_ANOTHER_ACCOUNT" -> DomainInAnotherAccount
"DOMAIN_IN_OWN_ACCOUNT" -> DomainInOwnAccount
"DONT_KNOW" -> DontKnow
"PREMIUM_DOMAIN" -> PremiumDomain
"TRANSFERABLE" -> Transferable
"UNTRANSFERABLE" -> Untransferable
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
DomainInAnotherAccount,
DomainInOwnAccount,
DontKnow,
PremiumDomain,
Transferable,
Untransferable,
)
}
}