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