Example usage for com.amazonaws.services.route53.model DeleteHostedZoneRequest setId

List of usage examples for com.amazonaws.services.route53.model DeleteHostedZoneRequest setId

Introduction

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

Prototype


public void setId(String id) 

Source Link

Document

The ID of the hosted zone you want to delete.

Usage

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

License:Apache License

public DeleteHostedZoneRequest unmarshall(HttpServletRequest req) {
    DeleteHostedZoneRequest request = new DeleteHostedZoneRequest();
    SlashObject so = new SlashObject(req.getPathInfo());
    List<String> paths = so.getList();
    if (paths.size() != 3) {
        logger.debug("Request path is not set correctly. There are " + paths.size()
                + " path elements when there should 3.");
        throw DNS53Faults.InternalError();
    }/*from  w  w w. j a  v  a  2 s. c  o m*/
    String zoneId = paths.get(2);
    request.setId(zoneId);
    return request;
}