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