public class TunnelEndPointsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<TunnelEndPoints>
TunnelEndPointsBuilder
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:
TunnelEndPointsBuilder createTarget(int fooXyzzy, int barBaz) {
return new TunnelEndPointsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of TunnelEndPointsBuilder, 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 methodTunnelEndPointsBuilder
,
Builder
Constructor and Description |
---|
TunnelEndPointsBuilder() |
TunnelEndPointsBuilder(TunnelEndPoints base) |
Modifier and Type | Method and Description |
---|---|
TunnelEndPointsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TunnelEndPoints>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<TunnelEndPoints> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<TunnelEndPoints>> |
augmentation(Class<E$$> augmentationType) |
TunnelEndPoints |
build() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getGwIpAddress() |
String |
getInterfaceName() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getIpAddress() |
String |
getOptionTunnelTos() |
String |
getPortname() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix |
getSubnetMask() |
Class<? extends TunnelTypeBase> |
getTunnelType() |
List<TzMembership> |
getTzMembership() |
Integer |
getVLANID() |
Boolean |
isOptionOfTunnel() |
TunnelEndPointsKey |
key() |
TunnelEndPointsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TunnelEndPoints>> augmentationType) |
TunnelEndPointsBuilder |
setGwIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
TunnelEndPointsBuilder |
setInterfaceName(String value) |
TunnelEndPointsBuilder |
setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
TunnelEndPointsBuilder |
setOptionOfTunnel(Boolean value) |
TunnelEndPointsBuilder |
setOptionTunnelTos(String value) |
TunnelEndPointsBuilder |
setPortname(String value) |
TunnelEndPointsBuilder |
setSubnetMask(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value) |
TunnelEndPointsBuilder |
setTunnelType(Class<? extends TunnelTypeBase> value) |
TunnelEndPointsBuilder |
setTzMembership(List<TzMembership> values) |
TunnelEndPointsBuilder |
setVLANID(Integer value) |
TunnelEndPointsBuilder |
withKey(TunnelEndPointsKey key) |
public TunnelEndPointsBuilder()
public TunnelEndPointsBuilder(TunnelEndPoints base)
public TunnelEndPointsKey key()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getGwIpAddress()
public String getInterfaceName()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAddress()
public String getOptionTunnelTos()
public String getPortname()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getSubnetMask()
public Class<? extends TunnelTypeBase> getTunnelType()
public List<TzMembership> getTzMembership()
public Integer getVLANID()
public Boolean isOptionOfTunnel()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<TunnelEndPoints>> E$$ augmentation(Class<E$$> augmentationType)
public TunnelEndPointsBuilder withKey(TunnelEndPointsKey key)
public TunnelEndPointsBuilder setGwIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public TunnelEndPointsBuilder setInterfaceName(String value)
public TunnelEndPointsBuilder setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public TunnelEndPointsBuilder setOptionTunnelTos(String value)
public TunnelEndPointsBuilder setPortname(String value)
public TunnelEndPointsBuilder setSubnetMask(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value)
public TunnelEndPointsBuilder setTunnelType(Class<? extends TunnelTypeBase> value)
public TunnelEndPointsBuilder setTzMembership(List<TzMembership> values)
public TunnelEndPointsBuilder setVLANID(Integer value)
public TunnelEndPointsBuilder setOptionOfTunnel(Boolean value)
public TunnelEndPointsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TunnelEndPoints>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<TunnelEndPoints> augmentationValue)
public TunnelEndPointsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TunnelEndPoints>> augmentationType)
public TunnelEndPoints build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<TunnelEndPoints,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.