commonMain.aws.sdk.kotlin.services.route53domains.model.UpdateDomainContactRequest.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 UpdateDomainContact request includes the following elements.
*/
public class UpdateDomainContactRequest private constructor(builder: Builder) {
/**
* Provides detailed contact information.
*/
public val adminContact: aws.sdk.kotlin.services.route53domains.model.ContactDetail? = builder.adminContact
/**
* Provides detailed contact information.
*/
public val billingContact: aws.sdk.kotlin.services.route53domains.model.ContactDetail? = builder.billingContact
/**
* Customer's consent for the owner change request. Required if the domain is not free (consent price is more than $0.00).
*/
public val consent: aws.sdk.kotlin.services.route53domains.model.Consent? = builder.consent
/**
* The name of the domain that you want to update contact information for.
*/
public val domainName: kotlin.String? = builder.domainName
/**
* Provides detailed contact information.
*/
public val registrantContact: aws.sdk.kotlin.services.route53domains.model.ContactDetail? = builder.registrantContact
/**
* Provides detailed contact information.
*/
public val techContact: aws.sdk.kotlin.services.route53domains.model.ContactDetail? = builder.techContact
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53domains.model.UpdateDomainContactRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDomainContactRequest(")
append("adminContact=*** Sensitive Data Redacted ***,")
append("billingContact=*** Sensitive Data Redacted ***,")
append("consent=$consent,")
append("domainName=$domainName,")
append("registrantContact=*** Sensitive Data Redacted ***,")
append("techContact=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = adminContact?.hashCode() ?: 0
result = 31 * result + (billingContact?.hashCode() ?: 0)
result = 31 * result + (consent?.hashCode() ?: 0)
result = 31 * result + (domainName?.hashCode() ?: 0)
result = 31 * result + (registrantContact?.hashCode() ?: 0)
result = 31 * result + (techContact?.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 UpdateDomainContactRequest
if (adminContact != other.adminContact) return false
if (billingContact != other.billingContact) return false
if (consent != other.consent) return false
if (domainName != other.domainName) return false
if (registrantContact != other.registrantContact) return false
if (techContact != other.techContact) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53domains.model.UpdateDomainContactRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Provides detailed contact information.
*/
public var adminContact: aws.sdk.kotlin.services.route53domains.model.ContactDetail? = null
/**
* Provides detailed contact information.
*/
public var billingContact: aws.sdk.kotlin.services.route53domains.model.ContactDetail? = null
/**
* Customer's consent for the owner change request. Required if the domain is not free (consent price is more than $0.00).
*/
public var consent: aws.sdk.kotlin.services.route53domains.model.Consent? = null
/**
* The name of the domain that you want to update contact information for.
*/
public var domainName: kotlin.String? = null
/**
* Provides detailed contact information.
*/
public var registrantContact: aws.sdk.kotlin.services.route53domains.model.ContactDetail? = null
/**
* Provides detailed contact information.
*/
public var techContact: aws.sdk.kotlin.services.route53domains.model.ContactDetail? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53domains.model.UpdateDomainContactRequest) : this() {
this.adminContact = x.adminContact
this.billingContact = x.billingContact
this.consent = x.consent
this.domainName = x.domainName
this.registrantContact = x.registrantContact
this.techContact = x.techContact
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53domains.model.UpdateDomainContactRequest = UpdateDomainContactRequest(this)
/**
* construct an [aws.sdk.kotlin.services.route53domains.model.ContactDetail] inside the given [block]
*/
public fun adminContact(block: aws.sdk.kotlin.services.route53domains.model.ContactDetail.Builder.() -> kotlin.Unit) {
this.adminContact = aws.sdk.kotlin.services.route53domains.model.ContactDetail.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.route53domains.model.ContactDetail] inside the given [block]
*/
public fun billingContact(block: aws.sdk.kotlin.services.route53domains.model.ContactDetail.Builder.() -> kotlin.Unit) {
this.billingContact = aws.sdk.kotlin.services.route53domains.model.ContactDetail.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.route53domains.model.Consent] inside the given [block]
*/
public fun consent(block: aws.sdk.kotlin.services.route53domains.model.Consent.Builder.() -> kotlin.Unit) {
this.consent = aws.sdk.kotlin.services.route53domains.model.Consent.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.route53domains.model.ContactDetail] inside the given [block]
*/
public fun registrantContact(block: aws.sdk.kotlin.services.route53domains.model.ContactDetail.Builder.() -> kotlin.Unit) {
this.registrantContact = aws.sdk.kotlin.services.route53domains.model.ContactDetail.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.route53domains.model.ContactDetail] inside the given [block]
*/
public fun techContact(block: aws.sdk.kotlin.services.route53domains.model.ContactDetail.Builder.() -> kotlin.Unit) {
this.techContact = aws.sdk.kotlin.services.route53domains.model.ContactDetail.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}