public class UpdateMetersBatchOutputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<UpdateMetersBatchOutput>
UpdateMetersBatchOutputBuilder
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:
UpdateMetersBatchOutputBuilder createTarget(int fooXyzzy, int barBaz) {
return new UpdateMetersBatchOutputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of UpdateMetersBatchOutputBuilder, 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 methodUpdateMetersBatchOutputBuilder
,
Builder
Constructor and Description |
---|
UpdateMetersBatchOutputBuilder() |
UpdateMetersBatchOutputBuilder(BatchMeterOutputListGrouping arg) |
UpdateMetersBatchOutputBuilder(UpdateMetersBatchOutput base) |
Modifier and Type | Method and Description |
---|---|
UpdateMetersBatchOutputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchOutput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchOutput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchOutput>> |
augmentation(Class<E$$> augmentationType) |
UpdateMetersBatchOutput |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<BatchFailedMetersOutput> |
getBatchFailedMetersOutput() |
UpdateMetersBatchOutputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchOutput>> augmentationType) |
UpdateMetersBatchOutputBuilder |
setBatchFailedMetersOutput(List<BatchFailedMetersOutput> values) |
public UpdateMetersBatchOutputBuilder()
public UpdateMetersBatchOutputBuilder(BatchMeterOutputListGrouping arg)
public UpdateMetersBatchOutputBuilder(UpdateMetersBatchOutput base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic List<BatchFailedMetersOutput> getBatchFailedMetersOutput()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchOutput>> E$$ augmentation(Class<E$$> augmentationType)
public UpdateMetersBatchOutputBuilder setBatchFailedMetersOutput(List<BatchFailedMetersOutput> values)
public UpdateMetersBatchOutputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchOutput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchOutput> augmentationValue)
public UpdateMetersBatchOutputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchOutput>> augmentationType)
public UpdateMetersBatchOutput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<UpdateMetersBatchOutput,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.