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