public class UpdateMetersBatchInputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<UpdateMetersBatchInput>
UpdateMetersBatchInputBuilder
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:
UpdateMetersBatchInputBuilder createTarget(int fooXyzzy, int barBaz) {
return new UpdateMetersBatchInputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of UpdateMetersBatchInputBuilder, 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 methodUpdateMetersBatchInputBuilder
,
Builder
Constructor and Description |
---|
UpdateMetersBatchInputBuilder() |
UpdateMetersBatchInputBuilder(BarrierSuffix arg) |
UpdateMetersBatchInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeContextRef arg) |
UpdateMetersBatchInputBuilder(UpdateMetersBatchInput base) |
Modifier and Type | Method and Description |
---|---|
UpdateMetersBatchInputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchInput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchInput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchInput>> |
augmentation(Class<E$$> augmentationType) |
UpdateMetersBatchInput |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<BatchUpdateMeters> |
getBatchUpdateMeters() |
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef |
getNode() |
Boolean |
isBarrierAfter() |
UpdateMetersBatchInputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchInput>> augmentationType) |
UpdateMetersBatchInputBuilder |
setBarrierAfter(Boolean value) |
UpdateMetersBatchInputBuilder |
setBatchUpdateMeters(List<BatchUpdateMeters> values) |
UpdateMetersBatchInputBuilder |
setNode(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef value) |
public UpdateMetersBatchInputBuilder()
public UpdateMetersBatchInputBuilder(BarrierSuffix arg)
public UpdateMetersBatchInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeContextRef arg)
public UpdateMetersBatchInputBuilder(UpdateMetersBatchInput base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic List<BatchUpdateMeters> getBatchUpdateMeters()
public org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef getNode()
public Boolean isBarrierAfter()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchInput>> E$$ augmentation(Class<E$$> augmentationType)
public UpdateMetersBatchInputBuilder setBatchUpdateMeters(List<BatchUpdateMeters> values)
public UpdateMetersBatchInputBuilder setNode(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef value)
public UpdateMetersBatchInputBuilder setBarrierAfter(Boolean value)
public UpdateMetersBatchInputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchInput> augmentationValue)
public UpdateMetersBatchInputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UpdateMetersBatchInput>> augmentationType)
public UpdateMetersBatchInput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<UpdateMetersBatchInput,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.