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