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