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