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