public class VtepConfigSchemaBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<VtepConfigSchema>
VtepConfigSchemaBuilder
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:
VtepConfigSchemaBuilder createTarget(int fooXyzzy, int barBaz) {
return new VtepConfigSchemaBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of VtepConfigSchemaBuilder, 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 methodVtepConfigSchemaBuilder
,
Builder
Constructor and Description |
---|
VtepConfigSchemaBuilder() |
VtepConfigSchemaBuilder(VtepConfigSchema base) |
Modifier and Type | Method and Description |
---|---|
VtepConfigSchemaBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepConfigSchema>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<VtepConfigSchema> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepConfigSchema>> |
augmentation(Class<E$$> augmentationType) |
VtepConfigSchema |
build() |
List<DpnIds> |
getDpnIds() |
String |
getExcludeIpFilter() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getGatewayIp() |
String |
getPortName() |
String |
getSchemaName() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix |
getSubnet() |
String |
getTransportZoneName() |
Class<? extends TunnelTypeBase> |
getTunnelType() |
Integer |
getVlanId() |
VtepConfigSchemaKey |
key() |
VtepConfigSchemaBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepConfigSchema>> augmentationType) |
VtepConfigSchemaBuilder |
setDpnIds(List<DpnIds> values) |
VtepConfigSchemaBuilder |
setExcludeIpFilter(String value) |
VtepConfigSchemaBuilder |
setGatewayIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
VtepConfigSchemaBuilder |
setPortName(String value) |
VtepConfigSchemaBuilder |
setSchemaName(String value) |
VtepConfigSchemaBuilder |
setSubnet(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value) |
VtepConfigSchemaBuilder |
setTransportZoneName(String value) |
VtepConfigSchemaBuilder |
setTunnelType(Class<? extends TunnelTypeBase> value) |
VtepConfigSchemaBuilder |
setVlanId(Integer value) |
VtepConfigSchemaBuilder |
withKey(VtepConfigSchemaKey key) |
public VtepConfigSchemaBuilder()
public VtepConfigSchemaBuilder(VtepConfigSchema base)
public VtepConfigSchemaKey key()
public String getExcludeIpFilter()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getGatewayIp()
public String getPortName()
public String getSchemaName()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getSubnet()
public String getTransportZoneName()
public Class<? extends TunnelTypeBase> getTunnelType()
public Integer getVlanId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepConfigSchema>> E$$ augmentation(Class<E$$> augmentationType)
public VtepConfigSchemaBuilder withKey(VtepConfigSchemaKey key)
public VtepConfigSchemaBuilder setDpnIds(List<DpnIds> values)
public VtepConfigSchemaBuilder setExcludeIpFilter(String value)
public VtepConfigSchemaBuilder setGatewayIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public VtepConfigSchemaBuilder setPortName(String value)
public VtepConfigSchemaBuilder setSchemaName(String value)
public VtepConfigSchemaBuilder setSubnet(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value)
public VtepConfigSchemaBuilder setTransportZoneName(String value)
public VtepConfigSchemaBuilder setTunnelType(Class<? extends TunnelTypeBase> value)
public VtepConfigSchemaBuilder setVlanId(Integer value)
public VtepConfigSchemaBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepConfigSchema>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<VtepConfigSchema> augmentationValue)
public VtepConfigSchemaBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepConfigSchema>> augmentationType)
public VtepConfigSchema build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<VtepConfigSchema,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.