public class SupportedTunnelEntryBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SupportedTunnelEntry>
SupportedTunnelEntryBuilder
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:
SupportedTunnelEntryBuilder createTarget(int fooXyzzy, int barBaz) {
return new SupportedTunnelEntryBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SupportedTunnelEntryBuilder, 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 methodSupportedTunnelEntryBuilder
,
Builder
Constructor and Description |
---|
SupportedTunnelEntryBuilder() |
SupportedTunnelEntryBuilder(SupportedTunnelEntry base) |
SupportedTunnelEntryBuilder(TunnelTypeAttributes arg) |
Modifier and Type | Method and Description |
---|---|
SupportedTunnelEntryBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SupportedTunnelEntry>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<SupportedTunnelEntry> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SupportedTunnelEntry>> |
augmentation(Class<E$$> augmentationType) |
SupportedTunnelEntry |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Class<? extends TunnelTypeBase> |
getTunnelType() |
SupportedTunnelEntryBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SupportedTunnelEntry>> augmentationType) |
SupportedTunnelEntryBuilder |
setTunnelType(Class<? extends TunnelTypeBase> value) |
public SupportedTunnelEntryBuilder()
public SupportedTunnelEntryBuilder(TunnelTypeAttributes arg)
public SupportedTunnelEntryBuilder(SupportedTunnelEntry base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic Class<? extends TunnelTypeBase> getTunnelType()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SupportedTunnelEntry>> E$$ augmentation(Class<E$$> augmentationType)
public SupportedTunnelEntryBuilder setTunnelType(Class<? extends TunnelTypeBase> value)
public SupportedTunnelEntryBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SupportedTunnelEntry>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<SupportedTunnelEntry> augmentationValue)
public SupportedTunnelEntryBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SupportedTunnelEntry>> augmentationType)
public SupportedTunnelEntry build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SupportedTunnelEntry,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.