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