public class NxmNxArpShaBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<NxmNxArpSha>
NxmNxArpShaBuilder 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:
NxmNxArpShaBuilder createTarget(int fooXyzzy, int barBaz) {
return new NxmNxArpShaBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of NxmNxArpShaBuilder, 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 methodNxmNxArpShaBuilder,
Builder| Constructor and Description |
|---|
NxmNxArpShaBuilder() |
NxmNxArpShaBuilder(MacAddressGrouping arg) |
NxmNxArpShaBuilder(NxmNxArpSha base) |
| Modifier and Type | Method and Description |
|---|---|
NxmNxArpShaBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxArpSha>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxArpSha> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxArpSha>> |
augmentation(Class<E$$> augmentationType) |
NxmNxArpSha |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress |
getMacAddress() |
NxmNxArpShaBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxArpSha>> augmentationType) |
NxmNxArpShaBuilder |
setMacAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value) |
public NxmNxArpShaBuilder()
public NxmNxArpShaBuilder(MacAddressGrouping arg)
public NxmNxArpShaBuilder(NxmNxArpSha base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getMacAddress()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxArpSha>> E$$ augmentation(Class<E$$> augmentationType)
public NxmNxArpShaBuilder setMacAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value)
public NxmNxArpShaBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxArpSha>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxArpSha> augmentationValue)
public NxmNxArpShaBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmNxArpSha>> augmentationType)
public NxmNxArpSha build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<NxmNxArpSha,IllegalArgumentException>Copyright © 2019 OpenDaylight. All rights reserved.