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