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