if (getTechContact() != null) sb.append("TechContact: ").append("***Sensitive Data Redacted***").append(","); if (getPrivacyProtectAdminContact() != null) sb.append("PrivacyProtectAdminContact: ").append(getPrivacyProtectAdminContact()).append(","); if (getPrivacyProtectRegistrantContact() != null) sb.append("PrivacyProtectRegistrantContact: ").append(getPrivacyProtectRegistrantContact()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); hashCode = prime * hashCode + ((getIdnLangCode() == null) ? 0 : getIdnLangCode().hashCode()); hashCode = prime * hashCode + ((getDurationInYears() == null) ? 0 : getDurationInYears().hashCode()); hashCode = prime * hashCode + ((getNameservers() == null) ? 0 : getNameservers().hashCode()); hashCode = prime * hashCode + ((getAuthCode() == null) ? 0 : getAuthCode().hashCode()); hashCode = prime * hashCode + ((getAutoRenew() == null) ? 0 : getAutoRenew().hashCode()); hashCode = prime * hashCode + ((getAdminContact() == null) ? 0 : getAdminContact().hashCode()); hashCode = prime * hashCode + ((getRegistrantContact() == null) ? 0 : getRegistrantContact().hashCode()); hashCode = prime * hashCode + ((getTechContact() == null) ? 0 : getTechContact().hashCode()); hashCode = prime * hashCode + ((getPrivacyProtectAdminContact() == null) ? 0 : getPrivacyProtectAdminContact().hashCode()); hashCode = prime * hashCode + ((getPrivacyProtectRegistrantContact() == null) ? 0 : getPrivacyProtectRegistrantContact().hashCode()); hashCode = prime * hashCode + ((getPrivacyProtectTechContact() == null) ? 0 : getPrivacyProtectTechContact().hashCode()); return hashCode; }
if (other.getTechContact() != null && other.getTechContact().equals(this.getTechContact()) == false) return false; if (other.getPrivacyProtectAdminContact() == null ^ this.getPrivacyProtectAdminContact() == null) return false; if (other.getPrivacyProtectAdminContact() != null && other.getPrivacyProtectAdminContact().equals(this.getPrivacyProtectAdminContact()) == false) return false; if (other.getPrivacyProtectRegistrantContact() == null ^ this.getPrivacyProtectRegistrantContact() == null)
/** * Marshall the given parameter object. */ public void marshall(TransferDomainRequest transferDomainRequest, ProtocolMarshaller protocolMarshaller) { if (transferDomainRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(transferDomainRequest.getDomainName(), DOMAINNAME_BINDING); protocolMarshaller.marshall(transferDomainRequest.getIdnLangCode(), IDNLANGCODE_BINDING); protocolMarshaller.marshall(transferDomainRequest.getDurationInYears(), DURATIONINYEARS_BINDING); protocolMarshaller.marshall(transferDomainRequest.getNameservers(), NAMESERVERS_BINDING); protocolMarshaller.marshall(transferDomainRequest.getAuthCode(), AUTHCODE_BINDING); protocolMarshaller.marshall(transferDomainRequest.getAutoRenew(), AUTORENEW_BINDING); protocolMarshaller.marshall(transferDomainRequest.getAdminContact(), ADMINCONTACT_BINDING); protocolMarshaller.marshall(transferDomainRequest.getRegistrantContact(), REGISTRANTCONTACT_BINDING); protocolMarshaller.marshall(transferDomainRequest.getTechContact(), TECHCONTACT_BINDING); protocolMarshaller.marshall(transferDomainRequest.getPrivacyProtectAdminContact(), PRIVACYPROTECTADMINCONTACT_BINDING); protocolMarshaller.marshall(transferDomainRequest.getPrivacyProtectRegistrantContact(), PRIVACYPROTECTREGISTRANTCONTACT_BINDING); protocolMarshaller.marshall(transferDomainRequest.getPrivacyProtectTechContact(), PRIVACYPROTECTTECHCONTACT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }