String[] endpointsB2 = new String[] { "P", "Q", "R", "S", "T" };
TwoDimensionalLattice<HealthCheckedResourceRecord> lattice = new TwoDimensionalLattice<HealthCheckedResourceRecord>(
"AZ", "Version");
for (String endpoint : endpointsA1) {
HealthCheckedResourceRecord hcrr = new HealthCheckedResourceRecord(endpoint, endpoint);
lattice.addEndpoint("us-east-1a", "1", hcrr);
}
for (String endpoint : endpointsA2) {
HealthCheckedResourceRecord hcrr = new HealthCheckedResourceRecord(endpoint, endpoint);
lattice.addEndpoint("us-east-1a", "2", hcrr);
}
for (String endpoint : endpointsB1) {
HealthCheckedResourceRecord hcrr = new HealthCheckedResourceRecord(endpoint, endpoint);
lattice.addEndpoint("us-east-1b", "1", hcrr);
}
for (String endpoint : endpointsB2) {
HealthCheckedResourceRecord hcrr = new HealthCheckedResourceRecord(endpoint, endpoint);
lattice.addEndpoint("us-east-1b", "2", hcrr);
}
List<ResourceRecordSet> rrs = RubberTree.vulcanize("Z124", "www.example.com", "TXT", 60L, lattice, 8);