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