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