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