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