Example usage for com.amazonaws.services.route53.model ListResourceRecordSetsRequest setStartRecordType

List of usage examples for com.amazonaws.services.route53.model ListResourceRecordSetsRequest setStartRecordType

Introduction

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

Prototype


public void setStartRecordType(RRType startRecordType) 

Source Link

Document

The type of resource record set to begin the record listing from.

Usage

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

License:Apache License

public ListResourceRecordSetsRequest unmarshall(HttpServletRequest req) {
    ListResourceRecordSetsRequest request = new ListResourceRecordSetsRequest();
    SlashObject so = new SlashObject(req.getPathInfo());
    List<String> paths = so.getList();
    if (paths.size() != 4) {
        throw DNS53Faults.InternalError();
    }// w  w w  .  j  a  v a2  s  .  c om
    String zoneId = paths.get(2);
    request.setHostedZoneId(zoneId);

    Map<String, String[]> map = req.getParameterMap();
    String name = QueryUtil.getString(map, "name");
    String type = QueryUtil.getString(map, "type");
    String identifier = QueryUtil.getString(map, "identifier");
    String maxItems = QueryUtil.getString(map, "maxitems");

    request.setStartRecordName(name);
    request.setStartRecordType(type);
    request.setStartRecordIdentifier(identifier);
    request.setMaxItems(maxItems);
    return request;
}