public class IfIndexTunnelBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<IfIndexTunnel>
IfIndexTunnelBuilder
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:
IfIndexTunnelBuilder createTarget(int fooXyzzy, int barBaz) {
return new IfIndexTunnelBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of IfIndexTunnelBuilder, 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 methodIfIndexTunnelBuilder
,
Builder
Constructor and Description |
---|
IfIndexTunnelBuilder() |
IfIndexTunnelBuilder(IfIndexTunnel base) |
Modifier and Type | Method and Description |
---|---|
IfIndexTunnelBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexTunnel>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexTunnel> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexTunnel>> |
augmentation(Class<E$$> augmentationType) |
IfIndexTunnel |
build() |
Integer |
getIfIndex() |
String |
getInterfaceName() |
IfIndexTunnelKey |
key() |
IfIndexTunnelBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexTunnel>> augmentationType) |
IfIndexTunnelBuilder |
setIfIndex(Integer value) |
IfIndexTunnelBuilder |
setInterfaceName(String value) |
IfIndexTunnelBuilder |
withKey(IfIndexTunnelKey key) |
public IfIndexTunnelBuilder()
public IfIndexTunnelBuilder(IfIndexTunnel base)
public IfIndexTunnelKey key()
public Integer getIfIndex()
public String getInterfaceName()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexTunnel>> E$$ augmentation(Class<E$$> augmentationType)
public IfIndexTunnelBuilder withKey(IfIndexTunnelKey key)
public IfIndexTunnelBuilder setIfIndex(Integer value)
public IfIndexTunnelBuilder setInterfaceName(String value)
public IfIndexTunnelBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexTunnel>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexTunnel> augmentationValue)
public IfIndexTunnelBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexTunnel>> augmentationType)
public IfIndexTunnel build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<IfIndexTunnel,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.