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