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