Package org.jclouds.dynect.v3.domain.RecordSet.Value

Examples of org.jclouds.dynect.v3.domain.RecordSet.Value.Builder


            if (weights == null)
               weights = ImmutableList.of();

            List<String> labels = creepyGeoRegionGroup.label.get(type.toLowerCase() + "_label");
            for (int i = 0; i < entry.getValue().size(); i++) {
               Builder elementBuilder = Value.builder().rdata(entry.getValue().get(i));
               // chance of index out of bounds
               if (i < labels.size())
                  elementBuilder.label(labels.get(i));
               if (i < weights.size())
                  elementBuilder.weight(weights.get(i));
               rset.add(elementBuilder.build());
            }
            rsets.add(rset.build());
         }
         builder.recordSets(rsets.build());
         return builder.build();
View Full Code Here


            if (weights == null)
               weights = ImmutableList.of();

            List<String> labels = creepyGeoRegionGroup.label.get(type.toLowerCase() + "_label");
            for (int i = 0; i < entry.getValue().size(); i++) {
               Builder elementBuilder = Value.builder().rdata(entry.getValue().get(i));
               // chance of index out of bounds
               if (i < labels.size())
                  elementBuilder.label(labels.get(i));
               if (i < weights.size())
                  elementBuilder.weight(weights.get(i));
               rset.add(elementBuilder.build());
            }
            rsets.add(rset.build());
         }
         builder.recordSets(rsets.build());
         return builder.build();
View Full Code Here

      checkNotNull(zone.getVersion()"Version cannot be null for a Session.");
   }

   @Test
   protected void testCreateSession() {
      SessionCredentials credentials = SessionCredentials.builder()
                                                         .customerName(identity.substring(0, identity.indexOf(':')))
                                                         .userName(identity.substring(identity.indexOf(':') + 1))
                                                         .password(credential).build();
      session = api().login(credentials);
      checkSession(session);
View Full Code Here

      Job job = zoneApi().scheduleCreateWithContact(zoneFQDN, contact);
      checkNotNull(job, "unable to create zone %s", zoneFQDN);
      getAnonymousLogger().info("created zone: " + job);
      assertEquals(job.getStatus(), Status.SUCCESS);
      assertEquals(api.getJob(job.getId()), job);
      Zone zone = zoneApi().publish(zoneFQDN);
      checkNotNull(zone, "unable to publish zone %s", zoneFQDN);
      getAnonymousLogger().info("published zone: " + zone);
   }
View Full Code Here

   protected void testListAndGetZones() {
      ImmutableList<String> zones = api().list().toList();
      getAnonymousLogger().info("zones: " + zones.size());

      for (String fqdn : zones) {
         Zone zone = api().get(fqdn);
         checkNotNull(zone, "zone was null for Zone: %s", fqdn);
         checkZone(zone);
      }
   }
View Full Code Here

      assertEquals(api.getJob(job.getId()), job);
   }

   @Test(dependsOnMethods = "testCreateZone")
   public void testPublishZone() {
      Zone zone = api().publish(fqdn);
      checkNotNull(zone, "unable to publish zone %s", fqdn);
      getAnonymousLogger().info("published zone: " + zone);
      checkZone(zone);
   }
View Full Code Here

         }
      }
   }

   private Record<AAAAData> checkAAAARecord(Record<AAAAData> record) {
      AAAAData rdata = record.getRData();
      checkNotNull(rdata.getAddress(), "rdata.address cannot be null for AAAARecord: %s", record);
      return record;
   }
View Full Code Here

      checkNotNull(rdata.getAddress(), "rdata.address cannot be null for AAAARecord: %s", record);
      return record;
   }

   private Record<AData> checkARecord(Record<AData> record) {
      AData rdata = record.getRData();
      checkNotNull(rdata.getAddress(), "rdata.address cannot be null for ARecord: %s", record);
      return record;
   }
View Full Code Here

      checkNotNull(rdata.getAddress(), "rdata.address cannot be null for ARecord: %s", record);
      return record;
   }

   private Record<CNAMEData> checkCNAMERecord(Record<CNAMEData> record) {
      CNAMEData rdata = record.getRData();
      checkNotNull(rdata.getCname(), "rdata.cname cannot be null for CNAMERecord: %s", record);
      return record;
   }
View Full Code Here

      checkNotNull(rdata.getCname(), "rdata.cname cannot be null for CNAMERecord: %s", record);
      return record;
   }

   private Record<MXData> checkMXRecord(Record<MXData> record) {
      MXData rdata = record.getRData();
      checkNotNull(rdata.getPreference(), "rdata.preference cannot be null for MXRecord: %s", record);
      checkNotNull(rdata.getExchange(), "rdata.exchange cannot be null for MXRecord: %s", record);
      return record;
   }
View Full Code Here

TOP

Related Classes of org.jclouds.dynect.v3.domain.RecordSet.Value.Builder

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.