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