public class AllocateIdRangeInputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<AllocateIdRangeInput>
AllocateIdRangeInputBuilder
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:
AllocateIdRangeInputBuilder createTarget(int fooXyzzy, int barBaz) {
return new AllocateIdRangeInputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of AllocateIdRangeInputBuilder, 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 methodAllocateIdRangeInputBuilder
,
Builder
Constructor and Description |
---|
AllocateIdRangeInputBuilder() |
AllocateIdRangeInputBuilder(AllocateIdRangeInput base) |
Modifier and Type | Method and Description |
---|---|
AllocateIdRangeInputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AllocateIdRangeInput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<AllocateIdRangeInput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AllocateIdRangeInput>> |
augmentation(Class<E$$> augmentationType) |
AllocateIdRangeInput |
build() |
String |
getIdKey() |
String |
getPoolName() |
Long |
getSize() |
AllocateIdRangeInputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AllocateIdRangeInput>> augmentationType) |
AllocateIdRangeInputBuilder |
setIdKey(String value) |
AllocateIdRangeInputBuilder |
setPoolName(String value) |
AllocateIdRangeInputBuilder |
setSize(Long value) |
public AllocateIdRangeInputBuilder()
public AllocateIdRangeInputBuilder(AllocateIdRangeInput base)
public String getIdKey()
public String getPoolName()
public Long getSize()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AllocateIdRangeInput>> E$$ augmentation(Class<E$$> augmentationType)
public AllocateIdRangeInputBuilder setIdKey(String value)
public AllocateIdRangeInputBuilder setPoolName(String value)
public AllocateIdRangeInputBuilder setSize(Long value)
public AllocateIdRangeInputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AllocateIdRangeInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<AllocateIdRangeInput> augmentationValue)
public AllocateIdRangeInputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AllocateIdRangeInput>> augmentationType)
public AllocateIdRangeInput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<AllocateIdRangeInput,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.