public class Ipv6DetourObjectBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Ipv6DetourObject>
Ipv6DetourObjectBuilder instances. Overall design of the class is that of a
fluent interface, where method chaining is used.
In general, this class is supposed to be used like this template:
Ipv6DetourObjectBuilder createTarget(int fooXyzzy, int barBaz) {
return new Ipv6DetourObjectBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of Ipv6DetourObjectBuilder, as instances can be freely passed around without worrying about synchronization issues.
As a side note: method chaining results in:
build(), which is then returned from the methodIpv6DetourObjectBuilder,
Builder| Constructor and Description |
|---|
Ipv6DetourObjectBuilder() |
Ipv6DetourObjectBuilder(Ipv6DetourObject base) |
Ipv6DetourObjectBuilder(RsvpTeObject arg) |
| Modifier and Type | Method and Description |
|---|---|
Ipv6DetourObjectBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv6DetourObject>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Ipv6DetourObject> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv6DetourObject>> |
augmentation(Class<E$$> augmentationType) |
Ipv6DetourObject |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<AvoidNode> |
getAvoidNode() |
List<PlrId> |
getPlrId() |
Ipv6DetourObjectBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv6DetourObject>> augmentationType) |
Ipv6DetourObjectBuilder |
setAvoidNode(List<AvoidNode> values) |
Ipv6DetourObjectBuilder |
setPlrId(List<PlrId> values) |
public Ipv6DetourObjectBuilder()
public Ipv6DetourObjectBuilder(RsvpTeObject arg)
public Ipv6DetourObjectBuilder(Ipv6DetourObject base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv6DetourObject>> E$$ augmentation(Class<E$$> augmentationType)
public Ipv6DetourObjectBuilder setAvoidNode(List<AvoidNode> values)
public Ipv6DetourObjectBuilder setPlrId(List<PlrId> values)
public Ipv6DetourObjectBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv6DetourObject>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Ipv6DetourObject> augmentationValue)
public Ipv6DetourObjectBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv6DetourObject>> augmentationType)
public Ipv6DetourObject build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Ipv6DetourObject,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.