public class IpPrefixBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<IpPrefix>
IpPrefixBuilder 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:
IpPrefixBuilder createTarget(int fooXyzzy, int barBaz) {
return new IpPrefixBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of IpPrefixBuilder, 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 methodIpPrefixBuilder,
Builder| Constructor and Description |
|---|
IpPrefixBuilder() |
IpPrefixBuilder(CSubobject arg) |
IpPrefixBuilder(IpPrefix base) |
IpPrefixBuilder(IpPrefixSubobject arg) |
| Modifier and Type | Method and Description |
|---|---|
IpPrefixBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IpPrefix>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<IpPrefix> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<IpPrefix>> |
augmentation(Class<E$$> augmentationType) |
IpPrefix |
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.IpPrefix |
getIpPrefix() |
IpPrefixBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IpPrefix>> augmentationType) |
IpPrefixBuilder |
setIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value) |
public IpPrefixBuilder()
public IpPrefixBuilder(IpPrefixSubobject arg)
public IpPrefixBuilder(CSubobject arg)
public IpPrefixBuilder(IpPrefix 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.IpPrefix getIpPrefix()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<IpPrefix>> E$$ augmentation(Class<E$$> augmentationType)
public IpPrefixBuilder setIpPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value)
public IpPrefixBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IpPrefix>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<IpPrefix> augmentationValue)
public IpPrefixBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IpPrefix>> augmentationType)
public IpPrefix build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<IpPrefix,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.