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