Example usage for com.amazonaws.services.route53.model CreateHostedZoneResult getHostedZone

List of usage examples for com.amazonaws.services.route53.model CreateHostedZoneResult getHostedZone

Introduction

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

Prototype


public HostedZone getHostedZone() 

Source Link

Document

A complex type that contains general information about the hosted zone.

Usage

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

License:Apache License

@Override
public String marshall(MarshallStruct<CreateHostedZoneResult> input, HttpServletResponse resp)
        throws Exception {
    CreateHostedZoneResult result = input.getMainObject();
    XMLNode response = new XMLNode(DNS53Constants.CREATEHOSTEDZONERESPONSE);

    response.addAttr(DNS53Constants.XMLNS, DNS53Constants.XMLNS_VALUE);
    if (result.getHostedZone() != null) {
        DNS53QueryUtil.marshallHostedZone(result.getHostedZone(), response);
    }/*from   ww w  .ja  v  a  2 s.co  m*/
    if (result.getChangeInfo() != null) {
        DNS53QueryUtil.marshallChangeInfo(result.getChangeInfo(), response);
    }
    if (result.getDelegationSet() != null) {
        DNS53QueryUtil.marshallDelegationSet(result.getDelegationSet(), response);
    }
    return response.toString();
}