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