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