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