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