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