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