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