public class HwvtepPhysicalLocatorAugmentationBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<HwvtepPhysicalLocatorAugmentation>
HwvtepPhysicalLocatorAugmentationBuilder
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:
HwvtepPhysicalLocatorAugmentationBuilder createTarget(int fooXyzzy, int barBaz) {
return new HwvtepPhysicalLocatorAugmentationBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of HwvtepPhysicalLocatorAugmentationBuilder, 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 methodHwvtepPhysicalLocatorAugmentationBuilder
,
Builder
Constructor and Description |
---|
HwvtepPhysicalLocatorAugmentationBuilder() |
HwvtepPhysicalLocatorAugmentationBuilder(HwvtepPhysicalLocatorAttributes arg) |
HwvtepPhysicalLocatorAugmentationBuilder(HwvtepPhysicalLocatorAugmentation base) |
Modifier and Type | Method and Description |
---|---|
HwvtepPhysicalLocatorAugmentation |
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.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() |
HwvtepPhysicalLocatorAugmentationBuilder |
setDstIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
HwvtepPhysicalLocatorAugmentationBuilder |
setEncapsulationType(Class<? extends EncapsulationTypeBase> value) |
HwvtepPhysicalLocatorAugmentationBuilder |
setPhysicalLocatorUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value) |
public HwvtepPhysicalLocatorAugmentationBuilder()
public HwvtepPhysicalLocatorAugmentationBuilder(HwvtepPhysicalLocatorAttributes arg)
public HwvtepPhysicalLocatorAugmentationBuilder(HwvtepPhysicalLocatorAugmentation 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.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 HwvtepPhysicalLocatorAugmentationBuilder setDstIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public HwvtepPhysicalLocatorAugmentationBuilder setEncapsulationType(Class<? extends EncapsulationTypeBase> value)
public HwvtepPhysicalLocatorAugmentationBuilder setPhysicalLocatorUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
public HwvtepPhysicalLocatorAugmentation build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<HwvtepPhysicalLocatorAugmentation,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.