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