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