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