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