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