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