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