mirror of https://github.com/apache/jclouds.git
Merge pull request #1450 from jclouds/route53-rrset-values
route53: ResourceRecordSet.Builder.values
This commit is contained in:
commit
7e285bcb4b
|
@ -342,6 +342,16 @@ public class ResourceRecordSet {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* replaces current values
|
||||
*
|
||||
* @see ResourceRecordSet#getValues()
|
||||
*/
|
||||
public Builder values(Iterable<String> values) {
|
||||
this.values = ImmutableList.<String> builder().addAll(values);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see ResourceRecordSet#getValues()
|
||||
*/
|
||||
|
@ -385,7 +395,7 @@ public class ResourceRecordSet {
|
|||
} else if (in instanceof Latency) {
|
||||
region(Latency.class.cast(in).region);
|
||||
}
|
||||
return this.name(in.name).type(in.type).ttl(in.ttl.orNull()).addAll(in.values)
|
||||
return this.name(in.name).type(in.type).ttl(in.ttl.orNull()).values(in.values)
|
||||
.aliasTarget(in.aliasTarget.orNull());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue