@Override @ResponseParser(ToRecordIds.class) public FluentIterable<RecordId> expected() { Builder<?> builder = recordIdBuilder() .zone("adrianc.zone.dynecttest.jclouds.org") .fqdn("adrianc.zone.dynecttest.jclouds.org"); return FluentIterable.from(ImmutableSet.<RecordId> builder() .add(builder.type("SOA").id(50976579L).build()) .add(builder.type("NS").id(50976580L).build()) .add(builder.type("NS").id(50976581L).build()) .add(builder.type("NS").id(50976582L).build()) .add(builder.type("NS").id(50976583L).build()) .build()); } }
@Override public B from(RecordId in) { if (in instanceof Record) { @SuppressWarnings("unchecked") Record<D> record = Record.class.cast(in); ttl(record.ttl).rdata(record.rdata); } return super.from(in); } }
@Override @ResponseParser(ToRecordIds.class) public FluentIterable<RecordId> expected() { Builder<?> builder = recordIdBuilder() .zone("adrianc.zone.dynecttest.jclouds.org") .fqdn("adrianc.zone.dynecttest.jclouds.org"); return FluentIterable.from(ImmutableSet.<RecordId> builder() .add(builder.type("SOA").id(50976579l).build()) .add(builder.type("NS").id(50976580l).build()) .add(builder.type("NS").id(50976581l).build()) .add(builder.type("NS").id(50976582l).build()) .add(builder.type("NS").id(50976583l).build()) .build()); } }
/** * @see Node#getZone() */ public B zone(String zone) { this.zone = zone; return self(); }
/** * @see RecordId#getId() */ public B id(long id) { this.id = id; return self(); }
/** * @see RecordId#getType() */ public B type(String type) { this.type = type; return self(); }
/** * @see Node#getFQDN() */ public B fqdn(String fqdn) { this.fqdn = fqdn; return self(); }
/** * @see Node#getZone() */ public B zone(String zone) { this.zone = zone; return self(); }
/** * @see RecordId#getId() */ public B id(long id) { this.id = id; return self(); }
/** * @see RecordId#getType() */ public B type(String type) { this.type = type; return self(); }
/** * @see Node#getFQDN() */ public B fqdn(String fqdn) { this.fqdn = fqdn; return self(); }
/** * @see Node#getZone() */ public B zone(String zone) { this.zone = zone; return self(); }
/** * @see RecordId#getType() */ public B type(String type) { this.type = type; return self(); }
@Override public B from(RecordId in) { if (in instanceof Record) { @SuppressWarnings("unchecked") Record<D> record = Record.class.cast(in); ttl(record.ttl).rdata(record.rdata); } return super.from(in); } }
/** * @see RecordId#getId() */ public B id(long id) { this.id = id; return self(); }
@Override public B from(RecordId in) { if (in instanceof Record) { @SuppressWarnings("unchecked") Record<D> record = Record.class.cast(in); ttl(record.ttl).rdata(record.rdata); } return super.from(in); } }