public class BatchUpdateFlowsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<BatchUpdateFlows>
BatchUpdateFlowsBuilder
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:
BatchUpdateFlowsBuilder createTarget(int fooXyzzy, int barBaz) {
return new BatchUpdateFlowsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of BatchUpdateFlowsBuilder, 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 methodBatchUpdateFlowsBuilder
,
Builder
Constructor and Description |
---|
BatchUpdateFlowsBuilder() |
BatchUpdateFlowsBuilder(BatchFlowIdGrouping arg) |
BatchUpdateFlowsBuilder(BatchFlowInputUpdateGrouping arg) |
BatchUpdateFlowsBuilder(BatchUpdateFlows base) |
public BatchUpdateFlowsBuilder()
public BatchUpdateFlowsBuilder(BatchFlowInputUpdateGrouping arg)
public BatchUpdateFlowsBuilder(BatchFlowIdGrouping arg)
public BatchUpdateFlowsBuilder(BatchUpdateFlows base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic BatchUpdateFlowsKey key()
public FlowId getFlowId()
public OriginalBatchedFlow getOriginalBatchedFlow()
public UpdatedBatchedFlow getUpdatedBatchedFlow()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BatchUpdateFlows>> E$$ augmentation(Class<E$$> augmentationType)
public BatchUpdateFlowsBuilder withKey(BatchUpdateFlowsKey key)
public BatchUpdateFlowsBuilder setFlowId(FlowId value)
public BatchUpdateFlowsBuilder setOriginalBatchedFlow(OriginalBatchedFlow value)
public BatchUpdateFlowsBuilder setUpdatedBatchedFlow(UpdatedBatchedFlow value)
public BatchUpdateFlowsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BatchUpdateFlows>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<BatchUpdateFlows> augmentationValue)
public BatchUpdateFlowsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BatchUpdateFlows>> augmentationType)
public BatchUpdateFlows build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<BatchUpdateFlows,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.