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