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