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