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