@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()); return hashCode; }
/** * <p> * The name of the domain that you want to get availability for. * </p> * <p> * Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). * Internationalized Domain Names are not supported. * </p> * * @param domainName * The name of the domain that you want to get availability for.</p> * <p> * Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen * (-). Internationalized Domain Names are not supported. * @return Returns a reference to this object so that method calls can be chained together. */ public CheckDomainAvailabilityRequest withDomainName(String domainName) { setDomainName(domainName); return this; }
/** * <p> * Reserved for future use. * </p> * * @param idnLangCode * Reserved for future use. * @return Returns a reference to this object so that method calls can be chained together. */ public CheckDomainAvailabilityRequest withIdnLangCode(String idnLangCode) { setIdnLangCode(idnLangCode); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CheckDomainAvailabilityRequest == false) return false; CheckDomainAvailabilityRequest other = (CheckDomainAvailabilityRequest) 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; return true; }
/** * 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 (getIdnLangCode() != null) sb.append("IdnLangCode: ").append(getIdnLangCode()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(CheckDomainAvailabilityRequest checkDomainAvailabilityRequest, ProtocolMarshaller protocolMarshaller) { if (checkDomainAvailabilityRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(checkDomainAvailabilityRequest.getDomainName(), DOMAINNAME_BINDING); protocolMarshaller.marshall(checkDomainAvailabilityRequest.getIdnLangCode(), IDNLANGCODE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }