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