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