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