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