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

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

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.route53domains.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A complex type that contains information about whether the specified domain can be transferred to Route 53.
 */
public class DomainTransferability private constructor(builder: Builder) {
    /**
     * 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 val transferable: aws.sdk.kotlin.services.route53domains.model.Transferable? = builder.transferable

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53domains.model.DomainTransferability = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DomainTransferability(")
        append("transferable=$transferable")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = transferable?.hashCode() ?: 0
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as DomainTransferability

        if (transferable != other.transferable) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53domains.model.DomainTransferability = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * 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 var transferable: aws.sdk.kotlin.services.route53domains.model.Transferable? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53domains.model.DomainTransferability) : this() {
            this.transferable = x.transferable
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.route53domains.model.DomainTransferability = DomainTransferability(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy