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