public class Ipv4Builder extends Object implements org.opendaylight.yangtools.concepts.Builder<Ipv4>
Ipv4Builder 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:
Ipv4Builder createTarget(int fooXyzzy, int barBaz) {
return new Ipv4BuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of Ipv4Builder, 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 methodIpv4Builder,
Builder| Constructor and Description |
|---|
Ipv4Builder() |
Ipv4Builder(EndpointsIpv4Source arg) |
Ipv4Builder(Ipv4 base) |
| Modifier and Type | Method and Description |
|---|---|
Ipv4Builder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4>> |
augmentation(Class<E$$> augmentationType) |
Ipv4 |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone |
getDestinationIpv4Address() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone |
getSourceIpv4Address() |
Ipv4Builder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4>> augmentationType) |
Ipv4Builder |
setDestinationIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone value) |
Ipv4Builder |
setSourceIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone value) |
public Ipv4Builder()
public Ipv4Builder(EndpointsIpv4Source arg)
public Ipv4Builder(Ipv4 base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone getDestinationIpv4Address()
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<Ipv4>> E$$ augmentation(Class<E$$> augmentationType)
public Ipv4Builder setDestinationIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone value)
public Ipv4Builder setSourceIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4AddressNoZone value)
public Ipv4Builder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4> augmentationValue)
public Ipv4Builder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Ipv4>> augmentationType)
public Ipv4 build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Ipv4,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.