Package com.amazonaws.services.route53.model

Examples of com.amazonaws.services.route53.model.ResourceRecord


            removePrefix(result.getChangeInfo());
        } else if (obj instanceof GetHostedZoneResult) {
            GetHostedZoneResult result = (GetHostedZoneResult)obj;
            removePrefix(result.getHostedZone());
        } else if (obj instanceof ListHostedZonesResult) {
            ListHostedZonesResult result = (ListHostedZonesResult)obj;
            for (HostedZone zone : result.getHostedZones()) removePrefix(zone);
        } else if (obj instanceof ListResourceRecordSetsResult) {
            ListResourceRecordSetsResult result = (ListResourceRecordSetsResult)obj;
            for (ResourceRecordSet rrset : result.getResourceRecordSets()) removePrefix(rrset);
        }
    }
View Full Code Here


  }

  public HostedZone findZone(final String source) {

    final ListHostedZonesResult zoneResult = amazonClient.listHostedZones();

    final List<HostedZone> zoneList = zoneResult.getHostedZones();

    for (final HostedZone zone : zoneList) {

      final String name = zone.getName();
View Full Code Here

    public List<ResourceRecordSet> getResourceRecords(String awsZoneId) {
        List<ResourceRecordSet> resourceRecords = Lists.newArrayList();

        ListResourceRecordSetsResult previous = null;
        while (true) {
            ListResourceRecordSetsRequest request = new ListResourceRecordSetsRequest(awsZoneId);
            if (previous != null) {
                request.setStartRecordIdentifier(previous.getNextRecordIdentifier());
                request.setStartRecordName(previous.getNextRecordName());
                request.setStartRecordType(previous.getNextRecordType());
            }

            ListResourceRecordSetsResult response = restClient.listResourceRecordSets(request);
            for (ResourceRecordSet resourceRecordSet : response.getResourceRecordSets()) {
                resourceRecords.add(resourceRecordSet);
View Full Code Here

    if (zone == null) {
      return nameList;
    }

    final ListResourceRecordSetsRequest request = new ListResourceRecordSetsRequest();

    request.setHostedZoneId(zone.getId());

    while (true) {

      final ListResourceRecordSetsResult result = amazonClient
          .listResourceRecordSets(request);

      final List<ResourceRecordSet> recordList = result
          .getResourceRecordSets();

      for (final ResourceRecordSet record : recordList) {
        nameList.add(record.getName());
      }

      if (!result.isTruncated()) {
        break;
      }

      request.setStartRecordName(result.getNextRecordName());

    }

    return nameList;
View Full Code Here

    }

    public List<ResourceRecordSet> getResourceRecords(String awsZoneId) {
        List<ResourceRecordSet> resourceRecords = Lists.newArrayList();

        ListResourceRecordSetsResult previous = null;
        while (true) {
            ListResourceRecordSetsRequest request = new ListResourceRecordSetsRequest(awsZoneId);
            if (previous != null) {
                request.setStartRecordIdentifier(previous.getNextRecordIdentifier());
                request.setStartRecordName(previous.getNextRecordName());
                request.setStartRecordType(previous.getNextRecordType());
            }

            ListResourceRecordSetsResult response = restClient.listResourceRecordSets(request);
            for (ResourceRecordSet resourceRecordSet : response.getResourceRecordSets()) {
                resourceRecords.add(resourceRecordSet);
            }
            if (!Objects.equal(response.isTruncated(), Boolean.TRUE)) {
                break;
            }
            previous = response;
        }
        return resourceRecords;
View Full Code Here

            removePrefix(result.getHostedZone());
        } else if (obj instanceof ListHostedZonesResult) {
            ListHostedZonesResult result = (ListHostedZonesResult)obj;
            for (HostedZone zone : result.getHostedZones()) removePrefix(zone);
        } else if (obj instanceof ListResourceRecordSetsResult) {
            ListResourceRecordSetsResult result = (ListResourceRecordSetsResult)obj;
            for (ResourceRecordSet rrset : result.getResourceRecordSets()) removePrefix(rrset);
        }
    }
View Full Code Here

            removePrefix(result.getHostedZone());
        } else if (obj instanceof ListHostedZonesResult) {
            ListHostedZonesResult result = (ListHostedZonesResult)obj;
            for (HostedZone zone : result.getHostedZones()) removePrefix(zone);
        } else if (obj instanceof ListResourceRecordSetsResult) {
            ListResourceRecordSetsResult result = (ListResourceRecordSetsResult)obj;
            for (ResourceRecordSet rrset : result.getResourceRecordSets()) removePrefix(rrset);
        }
    }
View Full Code Here

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("NoSuchChange"))
            return null;

        NoSuchChangeException e = (NoSuchChangeException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("NoSuchChange"))
            return null;

        NoSuchChangeException e = (NoSuchChangeException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("NoSuchChange"))
            return null;

        NoSuchChangeException e = (NoSuchChangeException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.route53.model.ResourceRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.