@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 AmazonClientException("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);

    String dNSName =
        (listHostedZonesByNameRequest.getDNSName() == null)
            ? null
            : StringUtils.fromString(listHostedZonesByNameRequest.getDNSName());
    if (dNSName != null) {
      request.addParameter("dnsname", dNSName);
    }

    String hostedZoneId =
        (listHostedZonesByNameRequest.getHostedZoneId() == null)
            ? null
            : StringUtils.fromString(listHostedZonesByNameRequest.getHostedZoneId());
    if (hostedZoneId != null) {
      request.addParameter("hostedzoneid", hostedZoneId);
    }

    String maxItems =
        (listHostedZonesByNameRequest.getMaxItems() == null)
            ? null
            : StringUtils.fromString(listHostedZonesByNameRequest.getMaxItems());
    if (maxItems != null) {
      request.addParameter("maxitems", maxItems);
    }

    return request;
  }