commonMain.aws.sdk.kotlin.services.route53domains.model.UpdateDomainContactPrivacyRequest.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 UpdateDomainContactPrivacy request includes the following elements.
*/
public class UpdateDomainContactPrivacyRequest private constructor(builder: Builder) {
/**
* Whether you want to conceal contact information from WHOIS queries. If you specify `true`, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify `false`, WHOIS queries return the information that you entered for the admin contact.
*
* You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
*/
public val adminPrivacy: kotlin.Boolean? = builder.adminPrivacy
/**
* Whether you want to conceal contact information from WHOIS queries. If you specify `true`, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify `false`, WHOIS queries return the information that you entered for the billing contact.
*
* You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
*/
public val billingPrivacy: kotlin.Boolean? = builder.billingPrivacy
/**
* The name of the domain that you want to update the privacy setting for.
*/
public val domainName: kotlin.String? = builder.domainName
/**
* Whether you want to conceal contact information from WHOIS queries. If you specify `true`, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify `false`, WHOIS queries return the information that you entered for the registrant contact (domain owner).
*
* You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
*/
public val registrantPrivacy: kotlin.Boolean? = builder.registrantPrivacy
/**
* Whether you want to conceal contact information from WHOIS queries. If you specify `true`, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify `false`, WHOIS queries return the information that you entered for the technical contact.
*
* You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
*/
public val techPrivacy: kotlin.Boolean? = builder.techPrivacy
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53domains.model.UpdateDomainContactPrivacyRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDomainContactPrivacyRequest(")
append("adminPrivacy=$adminPrivacy,")
append("billingPrivacy=$billingPrivacy,")
append("domainName=$domainName,")
append("registrantPrivacy=$registrantPrivacy,")
append("techPrivacy=$techPrivacy")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = adminPrivacy?.hashCode() ?: 0
result = 31 * result + (billingPrivacy?.hashCode() ?: 0)
result = 31 * result + (domainName?.hashCode() ?: 0)
result = 31 * result + (registrantPrivacy?.hashCode() ?: 0)
result = 31 * result + (techPrivacy?.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 UpdateDomainContactPrivacyRequest
if (adminPrivacy != other.adminPrivacy) return false
if (billingPrivacy != other.billingPrivacy) return false
if (domainName != other.domainName) return false
if (registrantPrivacy != other.registrantPrivacy) return false
if (techPrivacy != other.techPrivacy) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53domains.model.UpdateDomainContactPrivacyRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Whether you want to conceal contact information from WHOIS queries. If you specify `true`, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify `false`, WHOIS queries return the information that you entered for the admin contact.
*
* You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
*/
public var adminPrivacy: kotlin.Boolean? = null
/**
* Whether you want to conceal contact information from WHOIS queries. If you specify `true`, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify `false`, WHOIS queries return the information that you entered for the billing contact.
*
* You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
*/
public var billingPrivacy: kotlin.Boolean? = null
/**
* The name of the domain that you want to update the privacy setting for.
*/
public var domainName: kotlin.String? = null
/**
* Whether you want to conceal contact information from WHOIS queries. If you specify `true`, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify `false`, WHOIS queries return the information that you entered for the registrant contact (domain owner).
*
* You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
*/
public var registrantPrivacy: kotlin.Boolean? = null
/**
* Whether you want to conceal contact information from WHOIS queries. If you specify `true`, WHOIS ("who is") queries return contact information either for Amazon Registrar or for our registrar associate, Gandi. If you specify `false`, WHOIS queries return the information that you entered for the technical contact.
*
* You must specify the same privacy setting for the administrative, billing, registrant, and technical contacts.
*/
public var techPrivacy: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53domains.model.UpdateDomainContactPrivacyRequest) : this() {
this.adminPrivacy = x.adminPrivacy
this.billingPrivacy = x.billingPrivacy
this.domainName = x.domainName
this.registrantPrivacy = x.registrantPrivacy
this.techPrivacy = x.techPrivacy
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53domains.model.UpdateDomainContactPrivacyRequest = UpdateDomainContactPrivacyRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}