public class RemoteArpSourcesBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<RemoteArpSources>
RemoteArpSourcesBuilder
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:
RemoteArpSourcesBuilder createTarget(int fooXyzzy, int barBaz) {
return new RemoteArpSourcesBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of RemoteArpSourcesBuilder, 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 methodRemoteArpSourcesBuilder
,
Builder
Constructor and Description |
---|
RemoteArpSourcesBuilder() |
RemoteArpSourcesBuilder(HwvtepArpSourcesAttributes arg) |
RemoteArpSourcesBuilder(HwvtepPhysicalLocatorAttributes arg) |
RemoteArpSourcesBuilder(RemoteArpSources base) |
Modifier and Type | Method and Description |
---|---|
RemoteArpSourcesBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoteArpSources>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<RemoteArpSources> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoteArpSources>> |
augmentation(Class<E$$> augmentationType) |
RemoteArpSources |
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.Uuid |
getArpSourcesUuid() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getDstIp() |
Class<? extends EncapsulationTypeBase> |
getEncapsulationType() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid |
getPhysicalLocatorUuid() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress |
getSrcMac() |
RemoteArpSourcesKey |
key() |
RemoteArpSourcesBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoteArpSources>> augmentationType) |
RemoteArpSourcesBuilder |
setArpSourcesUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value) |
RemoteArpSourcesBuilder |
setDstIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
RemoteArpSourcesBuilder |
setEncapsulationType(Class<? extends EncapsulationTypeBase> value) |
RemoteArpSourcesBuilder |
setPhysicalLocatorUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value) |
RemoteArpSourcesBuilder |
setSrcMac(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value) |
RemoteArpSourcesBuilder |
withKey(RemoteArpSourcesKey key) |
public RemoteArpSourcesBuilder()
public RemoteArpSourcesBuilder(HwvtepArpSourcesAttributes arg)
public RemoteArpSourcesBuilder(HwvtepPhysicalLocatorAttributes arg)
public RemoteArpSourcesBuilder(RemoteArpSources base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic RemoteArpSourcesKey key()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getArpSourcesUuid()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getDstIp()
public Class<? extends EncapsulationTypeBase> getEncapsulationType()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getPhysicalLocatorUuid()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getSrcMac()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoteArpSources>> E$$ augmentation(Class<E$$> augmentationType)
public RemoteArpSourcesBuilder withKey(RemoteArpSourcesKey key)
public RemoteArpSourcesBuilder setArpSourcesUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
public RemoteArpSourcesBuilder setDstIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public RemoteArpSourcesBuilder setEncapsulationType(Class<? extends EncapsulationTypeBase> value)
public RemoteArpSourcesBuilder setPhysicalLocatorUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
public RemoteArpSourcesBuilder setSrcMac(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value)
public RemoteArpSourcesBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoteArpSources>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<RemoteArpSources> augmentationValue)
public RemoteArpSourcesBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<RemoteArpSources>> augmentationType)
public RemoteArpSources build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<RemoteArpSources,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.