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