public class TunnelsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Tunnels>
TunnelsBuilder
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:
TunnelsBuilder createTarget(int fooXyzzy, int barBaz) {
return new TunnelsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of TunnelsBuilder, 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 methodTunnelsBuilder
,
Builder
Constructor and Description |
---|
TunnelsBuilder() |
TunnelsBuilder(HwvtepTunnelAttributes arg) |
TunnelsBuilder(Tunnels base) |
Modifier and Type | Method and Description |
---|---|
TunnelsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Tunnels>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Tunnels> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Tunnels>> |
augmentation(Class<E$$> augmentationType) |
Tunnels |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<BfdLocalConfigs> |
getBfdLocalConfigs() |
List<BfdParams> |
getBfdParams() |
List<BfdRemoteConfigs> |
getBfdRemoteConfigs() |
List<BfdStatus> |
getBfdStatus() |
HwvtepPhysicalLocatorRef |
getLocalLocatorRef() |
HwvtepPhysicalLocatorRef |
getRemoteLocatorRef() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid |
getTunnelUuid() |
TunnelsKey |
key() |
TunnelsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Tunnels>> augmentationType) |
TunnelsBuilder |
setBfdLocalConfigs(List<BfdLocalConfigs> values) |
TunnelsBuilder |
setBfdParams(List<BfdParams> values) |
TunnelsBuilder |
setBfdRemoteConfigs(List<BfdRemoteConfigs> values) |
TunnelsBuilder |
setBfdStatus(List<BfdStatus> values) |
TunnelsBuilder |
setLocalLocatorRef(HwvtepPhysicalLocatorRef value) |
TunnelsBuilder |
setRemoteLocatorRef(HwvtepPhysicalLocatorRef value) |
TunnelsBuilder |
setTunnelUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value) |
TunnelsBuilder |
withKey(TunnelsKey key) |
public TunnelsBuilder()
public TunnelsBuilder(HwvtepTunnelAttributes arg)
public TunnelsBuilder(Tunnels base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic TunnelsKey key()
public List<BfdLocalConfigs> getBfdLocalConfigs()
public List<BfdRemoteConfigs> getBfdRemoteConfigs()
public HwvtepPhysicalLocatorRef getLocalLocatorRef()
public HwvtepPhysicalLocatorRef getRemoteLocatorRef()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getTunnelUuid()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Tunnels>> E$$ augmentation(Class<E$$> augmentationType)
public TunnelsBuilder withKey(TunnelsKey key)
public TunnelsBuilder setBfdLocalConfigs(List<BfdLocalConfigs> values)
public TunnelsBuilder setBfdParams(List<BfdParams> values)
public TunnelsBuilder setBfdRemoteConfigs(List<BfdRemoteConfigs> values)
public TunnelsBuilder setBfdStatus(List<BfdStatus> values)
public TunnelsBuilder setLocalLocatorRef(HwvtepPhysicalLocatorRef value)
public TunnelsBuilder setRemoteLocatorRef(HwvtepPhysicalLocatorRef value)
public TunnelsBuilder setTunnelUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
public TunnelsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Tunnels>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Tunnels> augmentationValue)
public TunnelsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Tunnels>> augmentationType)
public Tunnels build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Tunnels,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.