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