public class DpnsTepsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<DpnsTeps>
DpnsTepsBuilder
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:
DpnsTepsBuilder createTarget(int fooXyzzy, int barBaz) {
return new DpnsTepsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of DpnsTepsBuilder, 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 methodDpnsTepsBuilder
,
Builder
Constructor and Description |
---|
DpnsTepsBuilder() |
DpnsTepsBuilder(DpnsTeps base) |
Modifier and Type | Method and Description |
---|---|
DpnsTepsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnsTeps>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<DpnsTeps> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnsTeps>> |
augmentation(Class<E$$> augmentationType) |
DpnsTeps |
build() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getIpAddress() |
String |
getOfTunnel() |
List<RemoteDpns> |
getRemoteDpns() |
BigInteger |
getSourceDpnId() |
Class<? extends TunnelTypeBase> |
getTunnelType() |
DpnsTepsKey |
key() |
DpnsTepsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnsTeps>> augmentationType) |
DpnsTepsBuilder |
setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
DpnsTepsBuilder |
setOfTunnel(String value) |
DpnsTepsBuilder |
setRemoteDpns(List<RemoteDpns> values) |
DpnsTepsBuilder |
setSourceDpnId(BigInteger value) |
DpnsTepsBuilder |
setTunnelType(Class<? extends TunnelTypeBase> value) |
DpnsTepsBuilder |
withKey(DpnsTepsKey key) |
public DpnsTepsBuilder()
public DpnsTepsBuilder(DpnsTeps base)
public DpnsTepsKey key()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAddress()
public String getOfTunnel()
public List<RemoteDpns> getRemoteDpns()
public BigInteger getSourceDpnId()
public Class<? extends TunnelTypeBase> getTunnelType()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnsTeps>> E$$ augmentation(Class<E$$> augmentationType)
public DpnsTepsBuilder withKey(DpnsTepsKey key)
public DpnsTepsBuilder setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public DpnsTepsBuilder setOfTunnel(String value)
public DpnsTepsBuilder setRemoteDpns(List<RemoteDpns> values)
public DpnsTepsBuilder setSourceDpnId(BigInteger value)
public DpnsTepsBuilder setTunnelType(Class<? extends TunnelTypeBase> value)
public DpnsTepsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnsTeps>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<DpnsTeps> augmentationValue)
public DpnsTepsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DpnsTeps>> augmentationType)
public DpnsTeps build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<DpnsTeps,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.