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