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