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