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