public class P2mpIpv4Builder extends Object implements org.opendaylight.yangtools.concepts.Builder<P2mpIpv4>
P2mpIpv4Builder 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:
P2mpIpv4Builder createTarget(int fooXyzzy, int barBaz) {
return new P2mpIpv4BuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of P2mpIpv4Builder, 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 methodP2mpIpv4Builder,
Builder| Constructor and Description |
|---|
P2mpIpv4Builder() |
P2mpIpv4Builder(EndpointsIpv4Source arg) |
P2mpIpv4Builder(Ipv4Destinations arg) |
P2mpIpv4Builder(P2mpIpv4 base) |
P2mpIpv4Builder(P2mpLeavesLeaf arg) |
| Modifier and Type | Method and Description |
|---|---|
P2mpIpv4Builder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv4>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv4> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv4>> |
augmentation(Class<E$$> augmentationType) |
P2mpIpv4 |
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.Ipv4AddressNoZone> |
getDestinationIpv4Address() |
P2mpLeaves |
getP2mpLeaves() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone |
getSourceIpv4Address() |
P2mpIpv4Builder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv4>> augmentationType) |
P2mpIpv4Builder |
setDestinationIpv4Address(List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone> values) |
P2mpIpv4Builder |
setP2mpLeaves(P2mpLeaves value) |
P2mpIpv4Builder |
setSourceIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone value) |
public P2mpIpv4Builder()
public P2mpIpv4Builder(P2mpLeavesLeaf arg)
public P2mpIpv4Builder(EndpointsIpv4Source arg)
public P2mpIpv4Builder(Ipv4Destinations arg)
public P2mpIpv4Builder(P2mpIpv4 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.Ipv4AddressNoZone> getDestinationIpv4Address()
public P2mpLeaves getP2mpLeaves()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone getSourceIpv4Address()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv4>> E$$ augmentation(Class<E$$> augmentationType)
public P2mpIpv4Builder setDestinationIpv4Address(List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone> values)
public P2mpIpv4Builder setP2mpLeaves(P2mpLeaves value)
public P2mpIpv4Builder setSourceIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone value)
public P2mpIpv4Builder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv4>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv4> augmentationValue)
public P2mpIpv4Builder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<P2mpIpv4>> augmentationType)
public P2mpIpv4 build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<P2mpIpv4,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.