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