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