/** * Simplified method form for invoking the ListHostedZones operation. * * @see #listHostedZonesAsync(ListHostedZonesRequest) */ @Override public java.util.concurrent.Future<ListHostedZonesResult> listHostedZonesAsync() { return listHostedZonesAsync(new ListHostedZonesRequest()); }
/** * <p> * (Optional) The maximum number of hosted zones that you want Amazon Route 53 to return. If you have more than * <code>maxitems</code> hosted zones, the value of <code>IsTruncated</code> in the response is <code>true</code>, * and the value of <code>NextMarker</code> is the hosted zone ID of the first hosted zone that Route 53 will return * if you submit another request. * </p> * * @param maxItems * (Optional) The maximum number of hosted zones that you want Amazon Route 53 to return. If you have more * than <code>maxitems</code> hosted zones, the value of <code>IsTruncated</code> in the response is * <code>true</code>, and the value of <code>NextMarker</code> is the hosted zone ID of the first hosted zone * that Route 53 will return if you submit another request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHostedZonesRequest withMaxItems(String maxItems) { setMaxItems(maxItems); return this; }
setMarker(marker); return this;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); hashCode = prime * hashCode + ((getDelegationSetId() == null) ? 0 : getDelegationSetId().hashCode()); return hashCode; }
private HostedZone getHostedZone(String domain) { ListHostedZonesRequest listHostedZoneRequest = new ListHostedZonesRequest(); listHostedZoneRequest.setMaxItems(String.valueOf(Integer.MAX_VALUE)); ListHostedZonesResult listHostedZonesResult = amazonRoute53Client.listHostedZones(listHostedZoneRequest); for(HostedZone hostedZone : listHostedZonesResult.getHostedZones()) { if (domain.endsWith(hostedZone.getName())) { return hostedZone; } } return null; }
@Override protected void doGlobalScan() { ListHostedZonesRequest request = new ListHostedZonesRequest(); ListHostedZonesResult result = new ListHostedZonesResult(); do { rateLimit(); result = getClient().listHostedZones(request); for (HostedZone zone : result.getHostedZones()) { scanHostedZoneById(zone.getId()); } request.setMarker(result.getMarker()); } while (result.isTruncated()); }
/** * <p> * If you're using reusable delegation sets and you want to list all of the hosted zones that are associated with a * reusable delegation set, specify the ID of that reusable delegation set. * </p> * * @param delegationSetId * If you're using reusable delegation sets and you want to list all of the hosted zones that are associated * with a reusable delegation set, specify the ID of that reusable delegation set. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHostedZonesRequest withDelegationSetId(String delegationSetId) { setDelegationSetId(delegationSetId); return this; }
private HostedZone getHostedZone(String domain) { ListHostedZonesRequest listHostedZoneRequest = new ListHostedZonesRequest(); listHostedZoneRequest.setMaxItems(String.valueOf(Integer.MAX_VALUE)); ListHostedZonesResult listHostedZonesResult = amazonRoute53Client.listHostedZones(listHostedZoneRequest); for(HostedZone hostedZone : listHostedZonesResult.getHostedZones()) { if (domain.endsWith(hostedZone.getName())) { return hostedZone; } } return null; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListHostedZonesRequest == false) return false; ListHostedZonesRequest other = (ListHostedZonesRequest) obj; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false) return false; if (other.getDelegationSetId() == null ^ this.getDelegationSetId() == null) return false; if (other.getDelegationSetId() != null && other.getDelegationSetId().equals(this.getDelegationSetId()) == false) return false; return true; }
/** * Simplified method form for invoking the ListHostedZones operation with an AsyncHandler. * * @see #listHostedZonesAsync(ListHostedZonesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListHostedZonesResult> listHostedZonesAsync( com.amazonaws.handlers.AsyncHandler<ListHostedZonesRequest, ListHostedZonesResult> asyncHandler) { return listHostedZonesAsync(new ListHostedZonesRequest(), 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 (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()).append(","); if (getDelegationSetId() != null) sb.append("DelegationSetId: ").append(getDelegationSetId()); sb.append("}"); return sb.toString(); }
/** * Simplified method form for invoking the ListHostedZones operation. * * @see #listHostedZonesAsync(ListHostedZonesRequest) */ @Override public java.util.concurrent.Future<ListHostedZonesResult> listHostedZonesAsync() { return listHostedZonesAsync(new ListHostedZonesRequest()); }
public Request<ListHostedZonesRequest> marshall(ListHostedZonesRequest listHostedZonesRequest) { if (listHostedZonesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListHostedZonesRequest> request = new DefaultRequest<ListHostedZonesRequest>(listHostedZonesRequest, "AmazonRoute53"); request.setHttpMethod(HttpMethodName.GET); String uriResourcePath = "/2013-04-01/hostedzone"; request.setResourcePath(uriResourcePath); if (listHostedZonesRequest.getMarker() != null) { request.addParameter("marker", StringUtils.fromString(listHostedZonesRequest.getMarker())); } if (listHostedZonesRequest.getMaxItems() != null) { request.addParameter("maxitems", StringUtils.fromString(listHostedZonesRequest.getMaxItems())); } if (listHostedZonesRequest.getDelegationSetId() != null) { request.addParameter("delegationsetid", StringUtils.fromString(listHostedZonesRequest.getDelegationSetId())); } return request; }
/** * Simplified method form for invoking the ListHostedZones operation with an AsyncHandler. * * @see #listHostedZonesAsync(ListHostedZonesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListHostedZonesResult> listHostedZonesAsync( com.amazonaws.handlers.AsyncHandler<ListHostedZonesRequest, ListHostedZonesResult> asyncHandler) { return listHostedZonesAsync(new ListHostedZonesRequest(), asyncHandler); }
@Override public ListHostedZonesResult listHostedZones() { return listHostedZones(new ListHostedZonesRequest()); }
@Override public ListHostedZonesResult listHostedZones() { return listHostedZones(new ListHostedZonesRequest()); }