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