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