public class SubnetsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Subnets>
SubnetsBuilder
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:
SubnetsBuilder createTarget(int fooXyzzy, int barBaz) {
return new SubnetsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SubnetsBuilder, 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 methodSubnetsBuilder
,
Builder
Constructor and Description |
---|
SubnetsBuilder() |
SubnetsBuilder(Subnets base) |
Modifier and Type | Method and Description |
---|---|
SubnetsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Subnets>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Subnets> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Subnets>> |
augmentation(Class<E$$> augmentationType) |
Subnets |
build() |
List<DeviceVteps> |
getDeviceVteps() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getGatewayIp() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix |
getPrefix() |
Integer |
getVlanId() |
List<Vteps> |
getVteps() |
SubnetsKey |
key() |
SubnetsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Subnets>> augmentationType) |
SubnetsBuilder |
setDeviceVteps(List<DeviceVteps> values) |
SubnetsBuilder |
setGatewayIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
SubnetsBuilder |
setPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value) |
SubnetsBuilder |
setVlanId(Integer value) |
SubnetsBuilder |
setVteps(List<Vteps> values) |
SubnetsBuilder |
withKey(SubnetsKey key) |
public SubnetsBuilder()
public SubnetsBuilder(Subnets base)
public SubnetsKey key()
public List<DeviceVteps> getDeviceVteps()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getGatewayIp()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getPrefix()
public Integer getVlanId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Subnets>> E$$ augmentation(Class<E$$> augmentationType)
public SubnetsBuilder withKey(SubnetsKey key)
public SubnetsBuilder setDeviceVteps(List<DeviceVteps> values)
public SubnetsBuilder setGatewayIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public SubnetsBuilder setPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value)
public SubnetsBuilder setVlanId(Integer value)
public SubnetsBuilder setVteps(List<Vteps> values)
public SubnetsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Subnets>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Subnets> augmentationValue)
public SubnetsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Subnets>> augmentationType)
public Subnets build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Subnets,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.