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