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