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