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