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