@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDNSName() == null) ? 0 : getDNSName().hashCode()); hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; }
/** * 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 (getDNSName() != null) sb.append("DNSName: ").append(getDNSName()).append(","); if (getHostedZoneId() != null) sb.append("HostedZoneId: ").append(getHostedZoneId()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListHostedZonesByNameRequest == false) return false; ListHostedZonesByNameRequest other = (ListHostedZonesByNameRequest) obj; if (other.getDNSName() == null ^ this.getDNSName() == null) return false; if (other.getDNSName() != null && other.getDNSName().equals(this.getDNSName()) == false) return false; if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == null) return false; if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == false) return false; if (other.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false) return false; return true; }
public Request<ListHostedZonesByNameRequest> marshall(ListHostedZonesByNameRequest listHostedZonesByNameRequest) { if (listHostedZonesByNameRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListHostedZonesByNameRequest> request = new DefaultRequest<ListHostedZonesByNameRequest>(listHostedZonesByNameRequest, "AmazonRoute53"); request.setHttpMethod(HttpMethodName.GET); String uriResourcePath = "/2013-04-01/hostedzonesbyname"; request.setResourcePath(uriResourcePath); if (listHostedZonesByNameRequest.getDNSName() != null) { request.addParameter("dnsname", StringUtils.fromString(listHostedZonesByNameRequest.getDNSName())); } if (listHostedZonesByNameRequest.getHostedZoneId() != null) { request.addParameter("hostedzoneid", StringUtils.fromString(listHostedZonesByNameRequest.getHostedZoneId())); } if (listHostedZonesByNameRequest.getMaxItems() != null) { request.addParameter("maxitems", StringUtils.fromString(listHostedZonesByNameRequest.getMaxItems())); } return request; }