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