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