public class SendArpRequestInputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SendArpRequestInput>
SendArpRequestInputBuilder
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:
SendArpRequestInputBuilder createTarget(int fooXyzzy, int barBaz) {
return new SendArpRequestInputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SendArpRequestInputBuilder, 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 methodSendArpRequestInputBuilder
,
Builder
Constructor and Description |
---|
SendArpRequestInputBuilder() |
SendArpRequestInputBuilder(Interfaces arg) |
SendArpRequestInputBuilder(SendArpRequestInput base) |
Modifier and Type | Method and Description |
---|---|
SendArpRequestInputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SendArpRequestInput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<SendArpRequestInput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SendArpRequestInput>> |
augmentation(Class<E$$> augmentationType) |
SendArpRequestInput |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<InterfaceAddress> |
getInterfaceAddress() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getIpaddress() |
SendArpRequestInputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SendArpRequestInput>> augmentationType) |
SendArpRequestInputBuilder |
setInterfaceAddress(List<InterfaceAddress> values) |
SendArpRequestInputBuilder |
setIpaddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
public SendArpRequestInputBuilder()
public SendArpRequestInputBuilder(Interfaces arg)
public SendArpRequestInputBuilder(SendArpRequestInput base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic List<InterfaceAddress> getInterfaceAddress()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpaddress()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SendArpRequestInput>> E$$ augmentation(Class<E$$> augmentationType)
public SendArpRequestInputBuilder setInterfaceAddress(List<InterfaceAddress> values)
public SendArpRequestInputBuilder setIpaddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public SendArpRequestInputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SendArpRequestInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<SendArpRequestInput> augmentationValue)
public SendArpRequestInputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SendArpRequestInput>> augmentationType)
public SendArpRequestInput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SendArpRequestInput,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.