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