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