public class OvsBridgeEntryBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<OvsBridgeEntry>
OvsBridgeEntryBuilder
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:
OvsBridgeEntryBuilder createTarget(int fooXyzzy, int barBaz) {
return new OvsBridgeEntryBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of OvsBridgeEntryBuilder, 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 methodOvsBridgeEntryBuilder
,
Builder
Constructor and Description |
---|
OvsBridgeEntryBuilder() |
OvsBridgeEntryBuilder(OvsBridgeEntry base) |
Modifier and Type | Method and Description |
---|---|
OvsBridgeEntryBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeEntry>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeEntry> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeEntry>> |
augmentation(Class<E$$> augmentationType) |
OvsBridgeEntry |
build() |
BigInteger |
getDpid() |
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef |
getOvsBridgeReference() |
List<OvsBridgeTunnelEntry> |
getOvsBridgeTunnelEntry() |
OvsBridgeEntryKey |
key() |
OvsBridgeEntryBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeEntry>> augmentationType) |
OvsBridgeEntryBuilder |
setDpid(BigInteger value) |
OvsBridgeEntryBuilder |
setOvsBridgeReference(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef value) |
OvsBridgeEntryBuilder |
setOvsBridgeTunnelEntry(List<OvsBridgeTunnelEntry> values) |
OvsBridgeEntryBuilder |
withKey(OvsBridgeEntryKey key) |
public OvsBridgeEntryBuilder()
public OvsBridgeEntryBuilder(OvsBridgeEntry base)
public OvsBridgeEntryKey key()
public BigInteger getDpid()
public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef getOvsBridgeReference()
public List<OvsBridgeTunnelEntry> getOvsBridgeTunnelEntry()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeEntry>> E$$ augmentation(Class<E$$> augmentationType)
public OvsBridgeEntryBuilder withKey(OvsBridgeEntryKey key)
public OvsBridgeEntryBuilder setDpid(BigInteger value)
public OvsBridgeEntryBuilder setOvsBridgeReference(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeRef value)
public OvsBridgeEntryBuilder setOvsBridgeTunnelEntry(List<OvsBridgeTunnelEntry> values)
public OvsBridgeEntryBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeEntry>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeEntry> augmentationValue)
public OvsBridgeEntryBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeEntry>> augmentationType)
public OvsBridgeEntry build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<OvsBridgeEntry,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.