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