public class SrcInfoBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SrcInfo>
SrcInfoBuilder
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:
SrcInfoBuilder createTarget(int fooXyzzy, int barBaz) {
return new SrcInfoBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SrcInfoBuilder, 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 methodSrcInfoBuilder
,
Builder
Constructor and Description |
---|
SrcInfoBuilder() |
SrcInfoBuilder(SrcInfo base) |
SrcInfoBuilder(TepInfoAttributes arg) |
Modifier and Type | Method and Description |
---|---|
SrcInfoBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SrcInfo>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<SrcInfo> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<SrcInfo>> |
augmentation(Class<E$$> augmentationType) |
SrcInfo |
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() |
SrcInfoBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SrcInfo>> augmentationType) |
SrcInfoBuilder |
setTepDeviceId(String value) |
SrcInfoBuilder |
setTepDeviceType(Class<? extends TepTypeBase> value) |
SrcInfoBuilder |
setTepIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
public SrcInfoBuilder()
public SrcInfoBuilder(TepInfoAttributes arg)
public SrcInfoBuilder(SrcInfo 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<SrcInfo>> E$$ augmentation(Class<E$$> augmentationType)
public SrcInfoBuilder setTepDeviceId(String value)
public SrcInfoBuilder setTepDeviceType(Class<? extends TepTypeBase> value)
public SrcInfoBuilder setTepIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public SrcInfoBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SrcInfo>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<SrcInfo> augmentationValue)
public SrcInfoBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<SrcInfo>> augmentationType)
public SrcInfo build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SrcInfo,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.