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