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