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