public class NxLearnBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<NxLearn>
NxLearnBuilder
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:
NxLearnBuilder createTarget(int fooXyzzy, int barBaz) {
return new NxLearnBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of NxLearnBuilder, 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 methodNxLearnBuilder
,
Builder
Constructor and Description |
---|
NxLearnBuilder() |
NxLearnBuilder(NxLearn base) |
public NxLearnBuilder()
public NxLearnBuilder(NxLearn base)
public BigInteger getCookie()
public Integer getFinHardTimeout()
public Integer getFinIdleTimeout()
public Integer getFlags()
public Integer getHardTimeout()
public Integer getIdleTimeout()
public Integer getPriority()
public Short getTableId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxLearn>> E$$ augmentation(Class<E$$> augmentationType)
public NxLearnBuilder setCookie(BigInteger value)
public NxLearnBuilder setFinHardTimeout(Integer value)
public NxLearnBuilder setFinIdleTimeout(Integer value)
public NxLearnBuilder setFlags(Integer value)
public NxLearnBuilder setFlowMods(List<FlowMods> values)
public NxLearnBuilder setHardTimeout(Integer value)
public NxLearnBuilder setIdleTimeout(Integer value)
public NxLearnBuilder setPriority(Integer value)
public NxLearnBuilder setTableId(Short value)
public NxLearnBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxLearn>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<NxLearn> augmentationValue)
public NxLearnBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxLearn>> augmentationType)
public NxLearn build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<NxLearn,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.