public class P2mpIpv6Builder extends Object implements org.opendaylight.yangtools.concepts.Builder<P2mpIpv6>
P2mpIpv6Builder 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:
P2mpIpv6Builder createTarget(int fooXyzzy, int barBaz) {
return new P2mpIpv6BuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of P2mpIpv6Builder, 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 methodP2mpIpv6Builder,
Builder| Constructor and Description |
|---|
P2mpIpv6Builder() |
P2mpIpv6Builder(EndpointsIpv6Source arg) |
P2mpIpv6Builder(Ipv6Destinations arg) |
P2mpIpv6Builder(P2mpIpv6 base) |
P2mpIpv6Builder(P2mpLeavesLeaf arg) |
| Modifier and Type | Method and Description |
|---|---|
P2mpIpv6Builder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv6>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv6> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv6>> |
augmentation(Class<E$$> augmentationType) |
P2mpIpv6 |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone> |
getDestinationIpv6Address() |
P2mpLeaves |
getP2mpLeaves() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone |
getSourceIpv6Address() |
P2mpIpv6Builder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv6>> augmentationType) |
P2mpIpv6Builder |
setDestinationIpv6Address(List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone> values) |
P2mpIpv6Builder |
setP2mpLeaves(P2mpLeaves value) |
P2mpIpv6Builder |
setSourceIpv6Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone value) |
public P2mpIpv6Builder()
public P2mpIpv6Builder(P2mpLeavesLeaf arg)
public P2mpIpv6Builder(EndpointsIpv6Source arg)
public P2mpIpv6Builder(Ipv6Destinations arg)
public P2mpIpv6Builder(P2mpIpv6 base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone> getDestinationIpv6Address()
public P2mpLeaves getP2mpLeaves()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone getSourceIpv6Address()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv6>> E$$ augmentation(Class<E$$> augmentationType)
public P2mpIpv6Builder setDestinationIpv6Address(List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone> values)
public P2mpIpv6Builder setP2mpLeaves(P2mpLeaves value)
public P2mpIpv6Builder setSourceIpv6Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone value)
public P2mpIpv6Builder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv6>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv6> augmentationValue)
public P2mpIpv6Builder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv6>> augmentationType)
public P2mpIpv6 build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<P2mpIpv6,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.