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