Example usage for com.amazonaws.services.route53.model ListHostedZonesRequest setMarker

List of usage examples for com.amazonaws.services.route53.model ListHostedZonesRequest setMarker

Introduction

In this page you can find the example usage for com.amazonaws.services.route53.model ListHostedZonesRequest setMarker.

Prototype


public void setMarker(String marker) 

Source Link

Document

If the value of IsTruncated in the previous response was true, you have more hosted zones.

Usage

From source file:com.msi.dns53.server.query.ListHostedZones.java

License:Apache License

public ListHostedZonesRequest unmarshall(HttpServletRequest req) {
    logger.debug("Unmarshalling the ListHostedZones request.");
    ListHostedZonesRequest request = new ListHostedZonesRequest();
    Map<String, String[]> map = req.getParameterMap();
    String marker = QueryUtil.getString(map, "marker");
    String maxItems = QueryUtil.getString(map, "maxitems");
    request.setMarker(marker);
    request.setMaxItems(maxItems);/*from  w w  w. ja va  2 s  .co m*/
    return request;
}

From source file:org.lendingclub.mercator.aws.Route53Scanner.java

License:Apache License

@Override
protected void doScan() {

    ListHostedZonesRequest request = new ListHostedZonesRequest();
    ListHostedZonesResult result = new ListHostedZonesResult();

    do {//from   w  w  w . ja v  a  2  s .  co  m
        result = getClient().listHostedZones(request);
        for (HostedZone zone : result.getHostedZones()) {
            scanHostedZoneById(zone.getId());
        }
        request.setMarker(result.getMarker());
    } while (result.isTruncated());

}