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