public class BridgeInterfaceEntryBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<BridgeInterfaceEntry>
BridgeInterfaceEntryBuilder
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:
BridgeInterfaceEntryBuilder createTarget(int fooXyzzy, int barBaz) {
return new BridgeInterfaceEntryBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of BridgeInterfaceEntryBuilder, 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 methodBridgeInterfaceEntryBuilder
,
Builder
Constructor and Description |
---|
BridgeInterfaceEntryBuilder() |
BridgeInterfaceEntryBuilder(BridgeInterfaceEntry base) |
Modifier and Type | Method and Description |
---|---|
BridgeInterfaceEntryBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeInterfaceEntry>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<BridgeInterfaceEntry> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeInterfaceEntry>> |
augmentation(Class<E$$> augmentationType) |
BridgeInterfaceEntry |
build() |
String |
getInterfaceName() |
BridgeInterfaceEntryKey |
key() |
BridgeInterfaceEntryBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeInterfaceEntry>> augmentationType) |
BridgeInterfaceEntryBuilder |
setInterfaceName(String value) |
BridgeInterfaceEntryBuilder |
withKey(BridgeInterfaceEntryKey key) |
public BridgeInterfaceEntryBuilder()
public BridgeInterfaceEntryBuilder(BridgeInterfaceEntry base)
public BridgeInterfaceEntryKey key()
public String getInterfaceName()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeInterfaceEntry>> E$$ augmentation(Class<E$$> augmentationType)
public BridgeInterfaceEntryBuilder withKey(BridgeInterfaceEntryKey key)
public BridgeInterfaceEntryBuilder setInterfaceName(String value)
public BridgeInterfaceEntryBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeInterfaceEntry>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<BridgeInterfaceEntry> augmentationValue)
public BridgeInterfaceEntryBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BridgeInterfaceEntry>> augmentationType)
public BridgeInterfaceEntry build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<BridgeInterfaceEntry,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.