public class InternalTunnelBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<InternalTunnel>
InternalTunnelBuilder
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:
InternalTunnelBuilder createTarget(int fooXyzzy, int barBaz) {
return new InternalTunnelBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of InternalTunnelBuilder, 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 methodInternalTunnelBuilder
,
Builder
Constructor and Description |
---|
InternalTunnelBuilder() |
InternalTunnelBuilder(InternalTunnel base) |
public InternalTunnelBuilder()
public InternalTunnelBuilder(InternalTunnel base)
public InternalTunnelKey key()
public BigInteger getDestinationDPN()
public BigInteger getSourceDPN()
public Class<? extends TunnelTypeBase> getTransportType()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<InternalTunnel>> E$$ augmentation(Class<E$$> augmentationType)
public InternalTunnelBuilder withKey(InternalTunnelKey key)
public InternalTunnelBuilder setDestinationDPN(BigInteger value)
public InternalTunnelBuilder setSourceDPN(BigInteger value)
public InternalTunnelBuilder setTransportType(Class<? extends TunnelTypeBase> value)
public InternalTunnelBuilder setTunnelInterfaceNames(List<String> values)
public InternalTunnelBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InternalTunnel>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<InternalTunnel> augmentationValue)
public InternalTunnelBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InternalTunnel>> augmentationType)
public InternalTunnel build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<InternalTunnel,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.