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