@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; }
/** * <p> * (Optional) For your first request to <code>ListHostedZonesByName</code>, include the <code>dnsname</code> * parameter only if you want to specify the name of the first hosted zone in the response. If you don't include the * <code>dnsname</code> parameter, Amazon Route 53 returns all of the hosted zones that were created by the current * AWS account, in ASCII order. For subsequent requests, include both <code>dnsname</code> and * <code>hostedzoneid</code> parameters. For <code>dnsname</code>, specify the value of <code>NextDNSName</code> * from the previous response. * </p> * * @param dNSName * (Optional) For your first request to <code>ListHostedZonesByName</code>, include the <code>dnsname</code> * parameter only if you want to specify the name of the first hosted zone in the response. If you don't * include the <code>dnsname</code> parameter, Amazon Route 53 returns all of the hosted zones that were * created by the current AWS account, in ASCII order. For subsequent requests, include both * <code>dnsname</code> and <code>hostedzoneid</code> parameters. For <code>dnsname</code>, specify the value * of <code>NextDNSName</code> from the previous response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHostedZonesByNameRequest withDNSName(String dNSName) { setDNSName(dNSName); return this; }
/** * <p> * (Optional) For your first request to <code>ListHostedZonesByName</code>, do not include the * <code>hostedzoneid</code> parameter. * </p> * <p> * If you have more hosted zones than the value of <code>maxitems</code>, <code>ListHostedZonesByName</code> returns * only the first <code>maxitems</code> hosted zones. To get the next group of <code>maxitems</code> hosted zones, * submit another request to <code>ListHostedZonesByName</code> and include both <code>dnsname</code> and * <code>hostedzoneid</code> parameters. For the value of <code>hostedzoneid</code>, specify the value of the * <code>NextHostedZoneId</code> element from the previous response. * </p> * * @param hostedZoneId * (Optional) For your first request to <code>ListHostedZonesByName</code>, do not include the * <code>hostedzoneid</code> parameter.</p> * <p> * If you have more hosted zones than the value of <code>maxitems</code>, <code>ListHostedZonesByName</code> * returns only the first <code>maxitems</code> hosted zones. To get the next group of <code>maxitems</code> * hosted zones, submit another request to <code>ListHostedZonesByName</code> and include both * <code>dnsname</code> and <code>hostedzoneid</code> parameters. For the value of <code>hostedzoneid</code>, * specify the value of the <code>NextHostedZoneId</code> element from the previous response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHostedZonesByNameRequest withHostedZoneId(String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; }
/** * Simplified method form for invoking the ListHostedZonesByName operation. * * @see #listHostedZonesByNameAsync(ListHostedZonesByNameRequest) */ @Override public java.util.concurrent.Future<ListHostedZonesByNameResult> listHostedZonesByNameAsync() { return listHostedZonesByNameAsync(new ListHostedZonesByNameRequest()); }
ListHostedZonesByNameResult listResult = r53Clinet_.listHostedZonesByName(new ListHostedZonesByNameRequest() .withDNSName(dnsName) .withMaxItems("1") );
/** * <p> * The maximum number of hosted zones to be included in the response body for this request. If you have more than * <code>maxitems</code> hosted zones, then the value of the <code>IsTruncated</code> element in the response is * true, and the values of <code>NextDNSName</code> and <code>NextHostedZoneId</code> specify the first hosted zone * in the next group of <code>maxitems</code> hosted zones. * </p> * * @param maxItems * The maximum number of hosted zones to be included in the response body for this request. If you have more * than <code>maxitems</code> hosted zones, then the value of the <code>IsTruncated</code> element in the * response is true, and the values of <code>NextDNSName</code> and <code>NextHostedZoneId</code> specify the * first hosted zone in the next group of <code>maxitems</code> hosted zones. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHostedZonesByNameRequest withMaxItems(String maxItems) { setMaxItems(maxItems); return this; }
/** * Simplified method form for invoking the ListHostedZonesByName operation with an AsyncHandler. * * @see #listHostedZonesByNameAsync(ListHostedZonesByNameRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListHostedZonesByNameResult> listHostedZonesByNameAsync( com.amazonaws.handlers.AsyncHandler<ListHostedZonesByNameRequest, ListHostedZonesByNameResult> asyncHandler) { return listHostedZonesByNameAsync(new ListHostedZonesByNameRequest(), asyncHandler); }
@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; }
/** * Simplified method form for invoking the ListHostedZonesByName operation with an AsyncHandler. * * @see #listHostedZonesByNameAsync(ListHostedZonesByNameRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListHostedZonesByNameResult> listHostedZonesByNameAsync( com.amazonaws.handlers.AsyncHandler<ListHostedZonesByNameRequest, ListHostedZonesByNameResult> asyncHandler) { return listHostedZonesByNameAsync(new ListHostedZonesByNameRequest(), asyncHandler); }
/** * 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(); }
/** * Simplified method form for invoking the ListHostedZonesByName operation. * * @see #listHostedZonesByNameAsync(ListHostedZonesByNameRequest) */ @Override public java.util.concurrent.Future<ListHostedZonesByNameResult> listHostedZonesByNameAsync() { return listHostedZonesByNameAsync(new ListHostedZonesByNameRequest()); }
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; }
@Override public ListHostedZonesByNameResult listHostedZonesByName() { return listHostedZonesByName(new ListHostedZonesByNameRequest()); }
@Override public ListHostedZonesByNameResult listHostedZonesByName() { return listHostedZonesByName(new ListHostedZonesByNameRequest()); }