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