public class DpnEndpointsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<DpnEndpoints>
DpnEndpointsBuilder
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:
DpnEndpointsBuilder createTarget(int fooXyzzy, int barBaz) {
return new DpnEndpointsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of DpnEndpointsBuilder, 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 methodDpnEndpointsBuilder
,
Builder
Constructor and Description |
---|
DpnEndpointsBuilder() |
DpnEndpointsBuilder(DpnEndpoints base) |
Modifier and Type | Method and Description |
---|---|
DpnEndpointsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnEndpoints>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<DpnEndpoints> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnEndpoints>> |
augmentation(Class<E$$> augmentationType) |
DpnEndpoints |
build() |
List<DPNTEPsInfo> |
getDPNTEPsInfo() |
DpnEndpointsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnEndpoints>> augmentationType) |
DpnEndpointsBuilder |
setDPNTEPsInfo(List<DPNTEPsInfo> values) |
public DpnEndpointsBuilder()
public DpnEndpointsBuilder(DpnEndpoints base)
public List<DPNTEPsInfo> getDPNTEPsInfo()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnEndpoints>> E$$ augmentation(Class<E$$> augmentationType)
public DpnEndpointsBuilder setDPNTEPsInfo(List<DPNTEPsInfo> values)
public DpnEndpointsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnEndpoints>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<DpnEndpoints> augmentationValue)
public DpnEndpointsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnEndpoints>> augmentationType)
public DpnEndpoints build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<DpnEndpoints,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.