/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.route53domains.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* The UpdateDomainContactPrivacy request includes the following elements. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateDomainContactPrivacyRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The name of the domain that you want to update the privacy setting for. *
*/ private String 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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*
* 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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*
* 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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
** The name of the domain that you want to update the privacy setting for. *
* * @param domainName * The name of the domain that you want to update the privacy setting for. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** ** The name of the domain that you want to update the privacy setting for. *
* * @return The name of the domain that you want to update the privacy setting for. */ public String getDomainName() { return this.domainName; } /** ** The name of the domain that you want to update the privacy setting for. *
* * @param domainName * The name of the domain that you want to update the privacy setting for. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainContactPrivacyRequest withDomainName(String domainName) { setDomainName(domainName); return this; } /** *
* 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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*/ public void setAdminPrivacy(Boolean adminPrivacy) { this.adminPrivacy = 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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*/ public Boolean getAdminPrivacy() { return this.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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
* @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainContactPrivacyRequest withAdminPrivacy(Boolean adminPrivacy) { setAdminPrivacy(adminPrivacy); return this; } /** *
* 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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*/ public Boolean isAdminPrivacy() { return this.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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*/ public void setRegistrantPrivacy(Boolean registrantPrivacy) { this.registrantPrivacy = 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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*/ public Boolean getRegistrantPrivacy() { return this.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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
* @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainContactPrivacyRequest withRegistrantPrivacy(Boolean registrantPrivacy) { setRegistrantPrivacy(registrantPrivacy); return this; } /** *
* 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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*/ public Boolean isRegistrantPrivacy() { return this.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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*/ public void setTechPrivacy(Boolean techPrivacy) { this.techPrivacy = techPrivacy; } /** *
* 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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*/ public Boolean getTechPrivacy() { return this.techPrivacy; } /** *
* 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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
* @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDomainContactPrivacyRequest withTechPrivacy(Boolean techPrivacy) { setTechPrivacy(techPrivacy); return this; } /** *
* 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 (for .com, .net, and .org domains) or
* for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*true
,
* WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org
* domains) or for our registrar associate, Gandi (for all other TLDs). 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, registrant, and technical contacts. *
*/ public Boolean isTechPrivacy() { return this.techPrivacy; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDomainName() != null) sb.append("DomainName: ").append(getDomainName()).append(","); if (getAdminPrivacy() != null) sb.append("AdminPrivacy: ").append(getAdminPrivacy()).append(","); if (getRegistrantPrivacy() != null) sb.append("RegistrantPrivacy: ").append(getRegistrantPrivacy()).append(","); if (getTechPrivacy() != null) sb.append("TechPrivacy: ").append(getTechPrivacy()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateDomainContactPrivacyRequest == false) return false; UpdateDomainContactPrivacyRequest other = (UpdateDomainContactPrivacyRequest) obj; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getAdminPrivacy() == null ^ this.getAdminPrivacy() == null) return false; if (other.getAdminPrivacy() != null && other.getAdminPrivacy().equals(this.getAdminPrivacy()) == false) return false; if (other.getRegistrantPrivacy() == null ^ this.getRegistrantPrivacy() == null) return false; if (other.getRegistrantPrivacy() != null && other.getRegistrantPrivacy().equals(this.getRegistrantPrivacy()) == false) return false; if (other.getTechPrivacy() == null ^ this.getTechPrivacy() == null) return false; if (other.getTechPrivacy() != null && other.getTechPrivacy().equals(this.getTechPrivacy()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); hashCode = prime * hashCode + ((getAdminPrivacy() == null) ? 0 : getAdminPrivacy().hashCode()); hashCode = prime * hashCode + ((getRegistrantPrivacy() == null) ? 0 : getRegistrantPrivacy().hashCode()); hashCode = prime * hashCode + ((getTechPrivacy() == null) ? 0 : getTechPrivacy().hashCode()); return hashCode; } @Override public UpdateDomainContactPrivacyRequest clone() { return (UpdateDomainContactPrivacyRequest) super.clone(); } }