public class MonitorEventBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<MonitorEvent>
MonitorEventBuilder
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:
MonitorEventBuilder createTarget(int fooXyzzy, int barBaz) {
return new MonitorEventBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of MonitorEventBuilder, 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 methodMonitorEventBuilder
,
Builder
Constructor and Description |
---|
MonitorEventBuilder() |
MonitorEventBuilder(MonitorEvent base) |
Modifier and Type | Method and Description |
---|---|
MonitorEventBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorEvent>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<MonitorEvent> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorEvent>> |
augmentation(Class<E$$> augmentationType) |
MonitorEvent |
build() |
EventData |
getEventData() |
MonitorEventBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorEvent>> augmentationType) |
MonitorEventBuilder |
setEventData(EventData value) |
public MonitorEventBuilder()
public MonitorEventBuilder(MonitorEvent base)
public EventData getEventData()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorEvent>> E$$ augmentation(Class<E$$> augmentationType)
public MonitorEventBuilder setEventData(EventData value)
public MonitorEventBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorEvent>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<MonitorEvent> augmentationValue)
public MonitorEventBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorEvent>> augmentationType)
public MonitorEvent build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<MonitorEvent,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.