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