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