public class PcntfBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Pcntf>
PcntfBuilder 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:
PcntfBuilder createTarget(int fooXyzzy, int barBaz) {
return new PcntfBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PcntfBuilder, 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 methodPcntfBuilder,
Builder| Constructor and Description |
|---|
PcntfBuilder() |
PcntfBuilder(Message arg) |
PcntfBuilder(Pcntf base) |
PcntfBuilder(PcntfMessage arg) |
| Modifier and Type | Method and Description |
|---|---|
PcntfBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Pcntf>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Pcntf> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Pcntf>> |
augmentation(Class<E$$> augmentationType) |
Pcntf |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
PcntfMessage |
getPcntfMessage() |
PcntfBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Pcntf>> augmentationType) |
PcntfBuilder |
setPcntfMessage(PcntfMessage value) |
public PcntfBuilder()
public PcntfBuilder(PcntfMessage arg)
public PcntfBuilder(Message arg)
public PcntfBuilder(Pcntf base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic PcntfMessage getPcntfMessage()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Pcntf>> E$$ augmentation(Class<E$$> augmentationType)
public PcntfBuilder setPcntfMessage(PcntfMessage value)
public PcntfBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Pcntf>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Pcntf> augmentationValue)
public PcntfBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Pcntf>> augmentationType)
public Pcntf build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Pcntf,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.