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

commonMain.aws.sdk.kotlin.services.route53domains.model.Transferable.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// 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,
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy