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