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