public class UpdateFlowOutputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<UpdateFlowOutput>
UpdateFlowOutputBuilder
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:
UpdateFlowOutputBuilder createTarget(int fooXyzzy, int barBaz) {
return new UpdateFlowOutputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of UpdateFlowOutputBuilder, 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 methodUpdateFlowOutputBuilder
,
Builder
Constructor and Description |
---|
UpdateFlowOutputBuilder() |
UpdateFlowOutputBuilder(TransactionAware arg) |
UpdateFlowOutputBuilder(UpdateFlowOutput base) |
Modifier and Type | Method and Description |
---|---|
UpdateFlowOutputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateFlowOutput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<UpdateFlowOutput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateFlowOutput>> |
augmentation(Class<E$$> augmentationType) |
UpdateFlowOutput |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
TransactionId |
getTransactionId() |
UpdateFlowOutputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateFlowOutput>> augmentationType) |
UpdateFlowOutputBuilder |
setTransactionId(TransactionId value) |
public UpdateFlowOutputBuilder()
public UpdateFlowOutputBuilder(TransactionAware arg)
public UpdateFlowOutputBuilder(UpdateFlowOutput base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic TransactionId getTransactionId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateFlowOutput>> E$$ augmentation(Class<E$$> augmentationType)
public UpdateFlowOutputBuilder setTransactionId(TransactionId value)
public UpdateFlowOutputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateFlowOutput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<UpdateFlowOutput> augmentationValue)
public UpdateFlowOutputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateFlowOutput>> augmentationType)
public UpdateFlowOutput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<UpdateFlowOutput,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.