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