public class NxmOfArpSpaBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<NxmOfArpSpa>
NxmOfArpSpaBuilder 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:
NxmOfArpSpaBuilder createTarget(int fooXyzzy, int barBaz) {
return new NxmOfArpSpaBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of NxmOfArpSpaBuilder, 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 methodNxmOfArpSpaBuilder,
Builder| Constructor and Description |
|---|
NxmOfArpSpaBuilder() |
NxmOfArpSpaBuilder(Ipv4AddressGrouping arg) |
NxmOfArpSpaBuilder(NxmOfArpSpa base) |
| Modifier and Type | Method and Description |
|---|---|
NxmOfArpSpaBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpSpa>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpSpa> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpSpa>> |
augmentation(Class<E$$> augmentationType) |
NxmOfArpSpa |
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.inet.types.rev130715.Ipv4Address |
getIpv4Address() |
NxmOfArpSpaBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpSpa>> augmentationType) |
NxmOfArpSpaBuilder |
setIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address value) |
public NxmOfArpSpaBuilder()
public NxmOfArpSpaBuilder(Ipv4AddressGrouping arg)
public NxmOfArpSpaBuilder(NxmOfArpSpa 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.inet.types.rev130715.Ipv4Address getIpv4Address()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpSpa>> E$$ augmentation(Class<E$$> augmentationType)
public NxmOfArpSpaBuilder setIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address value)
public NxmOfArpSpaBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpSpa>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpSpa> augmentationValue)
public NxmOfArpSpaBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpSpa>> augmentationType)
public NxmOfArpSpa build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<NxmOfArpSpa,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.