public class PlrBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Plr>
PlrBuilder 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:
PlrBuilder createTarget(int fooXyzzy, int barBaz) {
return new PlrBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PlrBuilder, 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 methodPlrBuilder,
Builder| Constructor and Description |
|---|
PlrBuilder() |
PlrBuilder(Plr base) |
| Modifier and Type | Method and Description |
|---|---|
PlrBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Plr>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Plr> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Plr>> |
augmentation(Class<E$$> augmentationType) |
Plr |
build() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone |
getAvoidNode() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone |
getPlrId() |
PlrBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Plr>> augmentationType) |
PlrBuilder |
setAvoidNode(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone value) |
PlrBuilder |
setPlrId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone value) |
public PlrBuilder()
public PlrBuilder(Plr base)
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone getAvoidNode()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone getPlrId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Plr>> E$$ augmentation(Class<E$$> augmentationType)
public PlrBuilder setAvoidNode(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone value)
public PlrBuilder setPlrId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone value)
public PlrBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Plr>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Plr> augmentationValue)
public PlrBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Plr>> augmentationType)
public Plr build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Plr,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.