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

commonMain.aws.sdk.kotlin.services.route53domains.model.ResendContactReachabilityEmailResponse.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

public class ResendContactReachabilityEmailResponse private constructor(builder: Builder) {
    /**
     * The domain name for which you requested a confirmation email.
     */
    public val domainName: kotlin.String? = builder.domainName
    /**
     * The email address for the registrant contact at the time that we sent the verification email.
     */
    public val emailAddress: kotlin.String? = builder.emailAddress
    /**
     * `True` if the email address for the registrant contact has already been verified, and `false` otherwise. If the email address has already been verified, we don't send another confirmation email.
     */
    public val isAlreadyVerified: kotlin.Boolean? = builder.isAlreadyVerified

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

    override fun toString(): kotlin.String = buildString {
        append("ResendContactReachabilityEmailResponse(")
        append("domainName=$domainName,")
        append("emailAddress=*** Sensitive Data Redacted ***,")
        append("isAlreadyVerified=$isAlreadyVerified")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainName?.hashCode() ?: 0
        result = 31 * result + (emailAddress?.hashCode() ?: 0)
        result = 31 * result + (isAlreadyVerified?.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 ResendContactReachabilityEmailResponse

        if (domainName != other.domainName) return false
        if (emailAddress != other.emailAddress) return false
        if (isAlreadyVerified != other.isAlreadyVerified) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The domain name for which you requested a confirmation email.
         */
        public var domainName: kotlin.String? = null
        /**
         * The email address for the registrant contact at the time that we sent the verification email.
         */
        public var emailAddress: kotlin.String? = null
        /**
         * `True` if the email address for the registrant contact has already been verified, and `false` otherwise. If the email address has already been verified, we don't send another confirmation email.
         */
        public var isAlreadyVerified: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53domains.model.ResendContactReachabilityEmailResponse) : this() {
            this.domainName = x.domainName
            this.emailAddress = x.emailAddress
            this.isAlreadyVerified = x.isAlreadyVerified
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy