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