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