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