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