public class AggregatedFlowStatisticsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<AggregatedFlowStatistics>
AggregatedFlowStatisticsBuilder
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:
AggregatedFlowStatisticsBuilder createTarget(int fooXyzzy, int barBaz) {
return new AggregatedFlowStatisticsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of AggregatedFlowStatisticsBuilder, 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 methodAggregatedFlowStatisticsBuilder
,
Builder
Constructor and Description |
---|
AggregatedFlowStatisticsBuilder() |
AggregatedFlowStatisticsBuilder(AggregatedFlowStatistics base) |
AggregatedFlowStatisticsBuilder(AggregateFlowStatistics arg) |
Modifier and Type | Method and Description |
---|---|
AggregatedFlowStatisticsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AggregatedFlowStatistics>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<AggregatedFlowStatistics> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AggregatedFlowStatistics>> |
augmentation(Class<E$$> augmentationType) |
AggregatedFlowStatistics |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 |
getByteCount() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter32 |
getFlowCount() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 |
getPacketCount() |
AggregatedFlowStatisticsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AggregatedFlowStatistics>> augmentationType) |
AggregatedFlowStatisticsBuilder |
setByteCount(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 value) |
AggregatedFlowStatisticsBuilder |
setFlowCount(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter32 value) |
AggregatedFlowStatisticsBuilder |
setPacketCount(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 value) |
public AggregatedFlowStatisticsBuilder()
public AggregatedFlowStatisticsBuilder(AggregateFlowStatistics arg)
public AggregatedFlowStatisticsBuilder(AggregatedFlowStatistics base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 getByteCount()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter32 getFlowCount()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 getPacketCount()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AggregatedFlowStatistics>> E$$ augmentation(Class<E$$> augmentationType)
public AggregatedFlowStatisticsBuilder setByteCount(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 value)
public AggregatedFlowStatisticsBuilder setFlowCount(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter32 value)
public AggregatedFlowStatisticsBuilder setPacketCount(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter64 value)
public AggregatedFlowStatisticsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AggregatedFlowStatistics>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<AggregatedFlowStatistics> augmentationValue)
public AggregatedFlowStatisticsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AggregatedFlowStatistics>> augmentationType)
public AggregatedFlowStatistics build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<AggregatedFlowStatistics,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.