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