public class PktMarkCaseValueBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<PktMarkCaseValue>
PktMarkCaseValueBuilder
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:
PktMarkCaseValueBuilder createTarget(int fooXyzzy, int barBaz) {
return new PktMarkCaseValueBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PktMarkCaseValueBuilder, 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 methodPktMarkCaseValueBuilder
,
Builder
Constructor and Description |
---|
PktMarkCaseValueBuilder() |
PktMarkCaseValueBuilder(OfjNxmNxMatchPktMarkGrouping arg) |
PktMarkCaseValueBuilder(PktMarkCaseValue base) |
Modifier and Type | Method and Description |
---|---|
PktMarkCaseValueBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PktMarkCaseValue>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<PktMarkCaseValue> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PktMarkCaseValue>> |
augmentation(Class<E$$> augmentationType) |
PktMarkCaseValue |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
PktMarkValues |
getPktMarkValues() |
PktMarkCaseValueBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PktMarkCaseValue>> augmentationType) |
PktMarkCaseValueBuilder |
setPktMarkValues(PktMarkValues value) |
public PktMarkCaseValueBuilder()
public PktMarkCaseValueBuilder(OfjNxmNxMatchPktMarkGrouping arg)
public PktMarkCaseValueBuilder(PktMarkCaseValue base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic PktMarkValues getPktMarkValues()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PktMarkCaseValue>> E$$ augmentation(Class<E$$> augmentationType)
public PktMarkCaseValueBuilder setPktMarkValues(PktMarkValues value)
public PktMarkCaseValueBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PktMarkCaseValue>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<PktMarkCaseValue> augmentationValue)
public PktMarkCaseValueBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PktMarkCaseValue>> augmentationType)
public PktMarkCaseValue build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<PktMarkCaseValue,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.