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