public class Ipv4DetourObjectBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Ipv4DetourObject>
Ipv4DetourObjectBuilder 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:
Ipv4DetourObjectBuilder createTarget(int fooXyzzy, int barBaz) {
return new Ipv4DetourObjectBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of Ipv4DetourObjectBuilder, 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 methodIpv4DetourObjectBuilder,
Builder| Constructor and Description |
|---|
Ipv4DetourObjectBuilder() |
Ipv4DetourObjectBuilder(Ipv4DetourObject base) |
Ipv4DetourObjectBuilder(RsvpTeObject arg) |
| Modifier and Type | Method and Description |
|---|---|
Ipv4DetourObjectBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4DetourObject>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4DetourObject> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4DetourObject>> |
augmentation(Class<E$$> augmentationType) |
Ipv4DetourObject |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<Plr> |
getPlr() |
Ipv4DetourObjectBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4DetourObject>> augmentationType) |
Ipv4DetourObjectBuilder |
setPlr(List<Plr> values) |
public Ipv4DetourObjectBuilder()
public Ipv4DetourObjectBuilder(RsvpTeObject arg)
public Ipv4DetourObjectBuilder(Ipv4DetourObject 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<Ipv4DetourObject>> E$$ augmentation(Class<E$$> augmentationType)
public Ipv4DetourObjectBuilder setPlr(List<Plr> values)
public Ipv4DetourObjectBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4DetourObject>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4DetourObject> augmentationValue)
public Ipv4DetourObjectBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4DetourObject>> augmentationType)
public Ipv4DetourObject build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Ipv4DetourObject,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.