public class PortStatsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<PortStats>
PortStatsBuilder
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:
PortStatsBuilder createTarget(int fooXyzzy, int barBaz) {
return new PortStatsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PortStatsBuilder, 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 methodPortStatsBuilder
,
Builder
Constructor and Description |
---|
PortStatsBuilder() |
PortStatsBuilder(PortStats base) |
public PortStatsBuilder()
public PortStatsBuilder(PortStats base)
public BigInteger getCollisions()
public Long getDurationNsec()
public Long getDurationSec()
public Long getPortNo()
public BigInteger getRxBytes()
public BigInteger getRxCrcErr()
public BigInteger getRxDropped()
public BigInteger getRxErrors()
public BigInteger getRxFrameErr()
public BigInteger getRxOverErr()
public BigInteger getRxPackets()
public BigInteger getTxBytes()
public BigInteger getTxDropped()
public BigInteger getTxErrors()
public BigInteger getTxPackets()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PortStats>> E$$ augmentation(Class<E$$> augmentationType)
public PortStatsBuilder setCollisions(BigInteger value)
public PortStatsBuilder setDurationNsec(Long value)
public PortStatsBuilder setDurationSec(Long value)
public PortStatsBuilder setPortNo(Long value)
public PortStatsBuilder setRxBytes(BigInteger value)
public PortStatsBuilder setRxCrcErr(BigInteger value)
public PortStatsBuilder setRxDropped(BigInteger value)
public PortStatsBuilder setRxErrors(BigInteger value)
public PortStatsBuilder setRxFrameErr(BigInteger value)
public PortStatsBuilder setRxOverErr(BigInteger value)
public PortStatsBuilder setRxPackets(BigInteger value)
public PortStatsBuilder setTxBytes(BigInteger value)
public PortStatsBuilder setTxDropped(BigInteger value)
public PortStatsBuilder setTxErrors(BigInteger value)
public PortStatsBuilder setTxPackets(BigInteger value)
public PortStatsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PortStats>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<PortStats> augmentationValue)
public PortStatsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PortStats>> augmentationType)
public PortStats build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<PortStats,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.