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