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