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