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