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