public class IfIndexesTunnelMapBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<IfIndexesTunnelMap>
IfIndexesTunnelMapBuilder
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:
IfIndexesTunnelMapBuilder createTarget(int fooXyzzy, int barBaz) {
return new IfIndexesTunnelMapBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of IfIndexesTunnelMapBuilder, 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 methodIfIndexesTunnelMapBuilder
,
Builder
Constructor and Description |
---|
IfIndexesTunnelMapBuilder() |
IfIndexesTunnelMapBuilder(IfIndexesTunnelMap base) |
Modifier and Type | Method and Description |
---|---|
IfIndexesTunnelMapBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexesTunnelMap>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexesTunnelMap> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexesTunnelMap>> |
augmentation(Class<E$$> augmentationType) |
IfIndexesTunnelMap |
build() |
List<IfIndexTunnel> |
getIfIndexTunnel() |
IfIndexesTunnelMapBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexesTunnelMap>> augmentationType) |
IfIndexesTunnelMapBuilder |
setIfIndexTunnel(List<IfIndexTunnel> values) |
public IfIndexesTunnelMapBuilder()
public IfIndexesTunnelMapBuilder(IfIndexesTunnelMap base)
public List<IfIndexTunnel> getIfIndexTunnel()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexesTunnelMap>> E$$ augmentation(Class<E$$> augmentationType)
public IfIndexesTunnelMapBuilder setIfIndexTunnel(List<IfIndexTunnel> values)
public IfIndexesTunnelMapBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexesTunnelMap>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexesTunnelMap> augmentationValue)
public IfIndexesTunnelMapBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IfIndexesTunnelMap>> augmentationType)
public IfIndexesTunnelMap build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<IfIndexesTunnelMap,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.