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