commonMain.aws.sdk.kotlin.services.route53domains.model.CheckDomainTransferabilityResponse.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 aws.smithy.kotlin.runtime.SdkDsl
/**
* The CheckDomainTransferability response includes the following elements.
*/
public class CheckDomainTransferabilityResponse private constructor(builder: Builder) {
/**
* Provides an explanation for when a domain can't be transferred.
*/
public val message: kotlin.String? = builder.message
/**
* A complex type that contains information about whether the specified domain can be transferred to Route 53.
*/
public val transferability: aws.sdk.kotlin.services.route53domains.model.DomainTransferability? = builder.transferability
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53domains.model.CheckDomainTransferabilityResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CheckDomainTransferabilityResponse(")
append("message=$message,")
append("transferability=$transferability")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = message?.hashCode() ?: 0
result = 31 * result + (transferability?.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 CheckDomainTransferabilityResponse
if (message != other.message) return false
if (transferability != other.transferability) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53domains.model.CheckDomainTransferabilityResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Provides an explanation for when a domain can't be transferred.
*/
public var message: kotlin.String? = null
/**
* A complex type that contains information about whether the specified domain can be transferred to Route 53.
*/
public var transferability: aws.sdk.kotlin.services.route53domains.model.DomainTransferability? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53domains.model.CheckDomainTransferabilityResponse) : this() {
this.message = x.message
this.transferability = x.transferability
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53domains.model.CheckDomainTransferabilityResponse = CheckDomainTransferabilityResponse(this)
/**
* construct an [aws.sdk.kotlin.services.route53domains.model.DomainTransferability] inside the given [block]
*/
public fun transferability(block: aws.sdk.kotlin.services.route53domains.model.DomainTransferability.Builder.() -> kotlin.Unit) {
this.transferability = aws.sdk.kotlin.services.route53domains.model.DomainTransferability.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}