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