public class VtepsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Vteps>
VtepsBuilder
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:
VtepsBuilder createTarget(int fooXyzzy, int barBaz) {
return new VtepsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of VtepsBuilder, 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 methodVtepsBuilder
,
Builder
Constructor and Description |
---|
VtepsBuilder() |
VtepsBuilder(Vteps base) |
Modifier and Type | Method and Description |
---|---|
VtepsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Vteps>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Vteps> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Vteps>> |
augmentation(Class<E$$> augmentationType) |
Vteps |
build() |
BigInteger |
getDpnId() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getIpAddress() |
String |
getOptionTunnelTos() |
String |
getPortname() |
Integer |
getWeight() |
Boolean |
isOptionOfTunnel() |
VtepsKey |
key() |
VtepsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Vteps>> augmentationType) |
VtepsBuilder |
setDpnId(BigInteger value) |
VtepsBuilder |
setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
VtepsBuilder |
setOptionOfTunnel(Boolean value) |
VtepsBuilder |
setOptionTunnelTos(String value) |
VtepsBuilder |
setPortname(String value) |
VtepsBuilder |
setWeight(Integer value) |
VtepsBuilder |
withKey(VtepsKey key) |
public VtepsBuilder()
public VtepsBuilder(Vteps base)
public VtepsKey key()
public BigInteger getDpnId()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAddress()
public String getOptionTunnelTos()
public String getPortname()
public Integer getWeight()
public Boolean isOptionOfTunnel()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Vteps>> E$$ augmentation(Class<E$$> augmentationType)
public VtepsBuilder withKey(VtepsKey key)
public VtepsBuilder setDpnId(BigInteger value)
public VtepsBuilder setIpAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public VtepsBuilder setOptionTunnelTos(String value)
public VtepsBuilder setPortname(String value)
public VtepsBuilder setWeight(Integer value)
public VtepsBuilder setOptionOfTunnel(Boolean value)
public VtepsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Vteps>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Vteps> augmentationValue)
public VtepsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Vteps>> augmentationType)
public Vteps build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Vteps,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.