public class CtActionsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<CtActions>
CtActionsBuilder
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:
CtActionsBuilder createTarget(int fooXyzzy, int barBaz) {
return new CtActionsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of CtActionsBuilder, 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 methodCtActionsBuilder
,
Builder
Constructor and Description |
---|
CtActionsBuilder() |
CtActionsBuilder(CtActions base) |
CtActionsBuilder(OfpactActions arg) |
Modifier and Type | Method and Description |
---|---|
CtActionsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CtActions>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<CtActions> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<CtActions>> |
augmentation(Class<E$$> augmentationType) |
CtActions |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
OfpactActions |
getOfpactActions() |
CtActionsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CtActions>> augmentationType) |
CtActionsBuilder |
setOfpactActions(OfpactActions value) |
public CtActionsBuilder()
public CtActionsBuilder(OfpactActions arg)
public CtActionsBuilder(CtActions base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic OfpactActions getOfpactActions()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<CtActions>> E$$ augmentation(Class<E$$> augmentationType)
public CtActionsBuilder setOfpactActions(OfpactActions value)
public CtActionsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CtActions>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<CtActions> augmentationValue)
public CtActionsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<CtActions>> augmentationType)
public CtActions build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<CtActions,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.