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