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