public class FlowModAddMatchFromFieldBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<FlowModAddMatchFromField>
FlowModAddMatchFromFieldBuilder 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:
FlowModAddMatchFromFieldBuilder createTarget(int fooXyzzy, int barBaz) {
return new FlowModAddMatchFromFieldBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of FlowModAddMatchFromFieldBuilder, 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 methodFlowModAddMatchFromFieldBuilder,
Builder| Constructor and Description |
|---|
FlowModAddMatchFromFieldBuilder() |
FlowModAddMatchFromFieldBuilder(FlowModAddMatchFromField base) |
public FlowModAddMatchFromFieldBuilder()
public FlowModAddMatchFromFieldBuilder(FlowModAddMatchFromField base)
public Long getDstField()
public Integer getDstOfs()
public Integer getFlowModNumBits()
public Long getSrcField()
public Integer getSrcOfs()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowModAddMatchFromField>> E$$ augmentation(Class<E$$> augmentationType)
public FlowModAddMatchFromFieldBuilder setDstField(Long value)
public FlowModAddMatchFromFieldBuilder setDstOfs(Integer value)
public FlowModAddMatchFromFieldBuilder setFlowModNumBits(Integer value)
public FlowModAddMatchFromFieldBuilder setSrcField(Long value)
public FlowModAddMatchFromFieldBuilder setSrcOfs(Integer value)
public FlowModAddMatchFromFieldBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowModAddMatchFromField>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<FlowModAddMatchFromField> augmentationValue)
public FlowModAddMatchFromFieldBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowModAddMatchFromField>> augmentationType)
public FlowModAddMatchFromField build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<FlowModAddMatchFromField,IllegalArgumentException>Copyright © 2019 OpenDaylight. All rights reserved.