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