commonMain.aws.sdk.kotlin.services.route53domains.model.TransferDomainToAnotherAwsAccountRequest.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 TransferDomainToAnotherAwsAccount request includes the following elements.
*/
public class TransferDomainToAnotherAwsAccountRequest private constructor(builder: Builder) {
/**
* The account ID of the Amazon Web Services account that you want to transfer the domain to, for example, `111122223333`.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The name of the domain that you want to transfer from the current Amazon Web Services account to another account.
*/
public val domainName: kotlin.String? = builder.domainName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53domains.model.TransferDomainToAnotherAwsAccountRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TransferDomainToAnotherAwsAccountRequest(")
append("accountId=$accountId,")
append("domainName=$domainName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (domainName?.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 TransferDomainToAnotherAwsAccountRequest
if (accountId != other.accountId) return false
if (domainName != other.domainName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53domains.model.TransferDomainToAnotherAwsAccountRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The account ID of the Amazon Web Services account that you want to transfer the domain to, for example, `111122223333`.
*/
public var accountId: kotlin.String? = null
/**
* The name of the domain that you want to transfer from the current Amazon Web Services account to another account.
*/
public var domainName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53domains.model.TransferDomainToAnotherAwsAccountRequest) : this() {
this.accountId = x.accountId
this.domainName = x.domainName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53domains.model.TransferDomainToAnotherAwsAccountRequest = TransferDomainToAnotherAwsAccountRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}