@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; }
return false; TransferDomainRequest other = (TransferDomainRequest) obj; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getIdnLangCode() == null ^ this.getIdnLangCode() == null) return false; if (other.getIdnLangCode() != null && other.getIdnLangCode().equals(this.getIdnLangCode()) == false) return false; if (other.getDurationInYears() == null ^ this.getDurationInYears() == null) return false; if (other.getDurationInYears() != null && other.getDurationInYears().equals(this.getDurationInYears()) == false) return false; if (other.getNameservers() == null ^ this.getNameservers() == null) return false; if (other.getNameservers() != null && other.getNameservers().equals(this.getNameservers()) == false) return false; if (other.getAuthCode() == null ^ this.getAuthCode() == null) return false; if (other.getAuthCode() != null && other.getAuthCode().equals(this.getAuthCode()) == false) return false; if (other.getAutoRenew() == null ^ this.getAutoRenew() == null) return false; if (other.getAutoRenew() != null && other.getAutoRenew().equals(this.getAutoRenew()) == false) return false; if (other.getAdminContact() == null ^ this.getAdminContact() == null) return false; if (other.getAdminContact() != null && other.getAdminContact().equals(this.getAdminContact()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDomainName() != null) sb.append("DomainName: ").append(getDomainName()).append(","); if (getIdnLangCode() != null) sb.append("IdnLangCode: ").append(getIdnLangCode()).append(","); if (getDurationInYears() != null) sb.append("DurationInYears: ").append(getDurationInYears()).append(","); if (getNameservers() != null) sb.append("Nameservers: ").append(getNameservers()).append(","); if (getAuthCode() != null) sb.append("AuthCode: ").append("***Sensitive Data Redacted***").append(","); if (getAutoRenew() != null) sb.append("AutoRenew: ").append(getAutoRenew()).append(","); if (getAdminContact() != null) sb.append("AdminContact: ").append("***Sensitive Data Redacted***").append(","); if (getRegistrantContact() != null) sb.append("RegistrantContact: ").append("***Sensitive Data Redacted***").append(","); 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(","); if (getPrivacyProtectTechContact() != null) sb.append("PrivacyProtectTechContact: ").append(getPrivacyProtectTechContact()); sb.append("}"); return sb.toString();
/** * 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); } }