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