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