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