public class OvsBridgeRefInfoBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<OvsBridgeRefInfo>
OvsBridgeRefInfoBuilder
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:
OvsBridgeRefInfoBuilder createTarget(int fooXyzzy, int barBaz) {
return new OvsBridgeRefInfoBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of OvsBridgeRefInfoBuilder, 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 methodOvsBridgeRefInfoBuilder
,
Builder
Constructor and Description |
---|
OvsBridgeRefInfoBuilder() |
OvsBridgeRefInfoBuilder(OvsBridgeRefInfo base) |
Modifier and Type | Method and Description |
---|---|
OvsBridgeRefInfoBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeRefInfo>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeRefInfo> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeRefInfo>> |
augmentation(Class<E$$> augmentationType) |
OvsBridgeRefInfo |
build() |
List<OvsBridgeRefEntry> |
getOvsBridgeRefEntry() |
OvsBridgeRefInfoBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeRefInfo>> augmentationType) |
OvsBridgeRefInfoBuilder |
setOvsBridgeRefEntry(List<OvsBridgeRefEntry> values) |
public OvsBridgeRefInfoBuilder()
public OvsBridgeRefInfoBuilder(OvsBridgeRefInfo base)
public List<OvsBridgeRefEntry> getOvsBridgeRefEntry()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeRefInfo>> E$$ augmentation(Class<E$$> augmentationType)
public OvsBridgeRefInfoBuilder setOvsBridgeRefEntry(List<OvsBridgeRefEntry> values)
public OvsBridgeRefInfoBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeRefInfo>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeRefInfo> augmentationValue)
public OvsBridgeRefInfoBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OvsBridgeRefInfo>> augmentationType)
public OvsBridgeRefInfo build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<OvsBridgeRefInfo,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.