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