public class VtepIpPoolsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<VtepIpPools>
VtepIpPoolsBuilder
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:
VtepIpPoolsBuilder createTarget(int fooXyzzy, int barBaz) {
return new VtepIpPoolsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of VtepIpPoolsBuilder, 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 methodVtepIpPoolsBuilder
,
Builder
Constructor and Description |
---|
VtepIpPoolsBuilder() |
VtepIpPoolsBuilder(VtepIpPools base) |
Modifier and Type | Method and Description |
---|---|
VtepIpPoolsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepIpPools>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<VtepIpPools> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepIpPools>> |
augmentation(Class<E$$> augmentationType) |
VtepIpPools |
build() |
List<VtepIpPool> |
getVtepIpPool() |
VtepIpPoolsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepIpPools>> augmentationType) |
VtepIpPoolsBuilder |
setVtepIpPool(List<VtepIpPool> values) |
public VtepIpPoolsBuilder()
public VtepIpPoolsBuilder(VtepIpPools base)
public List<VtepIpPool> getVtepIpPool()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepIpPools>> E$$ augmentation(Class<E$$> augmentationType)
public VtepIpPoolsBuilder setVtepIpPool(List<VtepIpPool> values)
public VtepIpPoolsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepIpPools>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<VtepIpPools> augmentationValue)
public VtepIpPoolsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VtepIpPools>> augmentationType)
public VtepIpPools build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<VtepIpPools,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.