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