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