public class DPNTEPsInfoBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<DPNTEPsInfo>
DPNTEPsInfoBuilder
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:
DPNTEPsInfoBuilder createTarget(int fooXyzzy, int barBaz) {
return new DPNTEPsInfoBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of DPNTEPsInfoBuilder, 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 methodDPNTEPsInfoBuilder
,
Builder
Constructor and Description |
---|
DPNTEPsInfoBuilder() |
DPNTEPsInfoBuilder(DPNTEPsInfo base) |
Modifier and Type | Method and Description |
---|---|
DPNTEPsInfoBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DPNTEPsInfo>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<DPNTEPsInfo> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DPNTEPsInfo>> |
augmentation(Class<E$$> augmentationType) |
DPNTEPsInfo |
build() |
BigInteger |
getDPNID() |
List<TunnelEndPoints> |
getTunnelEndPoints() |
Boolean |
isUp() |
DPNTEPsInfoKey |
key() |
DPNTEPsInfoBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DPNTEPsInfo>> augmentationType) |
DPNTEPsInfoBuilder |
setDPNID(BigInteger value) |
DPNTEPsInfoBuilder |
setTunnelEndPoints(List<TunnelEndPoints> values) |
DPNTEPsInfoBuilder |
setUp(Boolean value) |
DPNTEPsInfoBuilder |
withKey(DPNTEPsInfoKey key) |
public DPNTEPsInfoBuilder()
public DPNTEPsInfoBuilder(DPNTEPsInfo base)
public DPNTEPsInfoKey key()
public BigInteger getDPNID()
public List<TunnelEndPoints> getTunnelEndPoints()
public Boolean isUp()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DPNTEPsInfo>> E$$ augmentation(Class<E$$> augmentationType)
public DPNTEPsInfoBuilder withKey(DPNTEPsInfoKey key)
public DPNTEPsInfoBuilder setDPNID(BigInteger value)
public DPNTEPsInfoBuilder setTunnelEndPoints(List<TunnelEndPoints> values)
public DPNTEPsInfoBuilder setUp(Boolean value)
public DPNTEPsInfoBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DPNTEPsInfo>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<DPNTEPsInfo> augmentationValue)
public DPNTEPsInfoBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DPNTEPsInfo>> augmentationType)
public DPNTEPsInfo build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<DPNTEPsInfo,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.