public class StatResultBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<StatResult>
StatResultBuilder
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:
StatResultBuilder createTarget(int fooXyzzy, int barBaz) {
return new StatResultBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of StatResultBuilder, 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 methodStatResultBuilder
,
Builder
Constructor and Description |
---|
StatResultBuilder() |
StatResultBuilder(ServiceEnitityStatistics arg) |
StatResultBuilder(StatReply arg) |
StatResultBuilder(StatResult base) |
Modifier and Type | Method and Description |
---|---|
StatResultBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<StatResult>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<StatResult> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<StatResult>> |
augmentation(Class<E$$> augmentationType) |
StatResult |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Long |
getByteRxCount() |
Long |
getByteTxCount() |
Long |
getPacketRxCount() |
Long |
getPacketTxCount() |
ResultCode |
getStatResultCode() |
StatResultBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<StatResult>> augmentationType) |
StatResultBuilder |
setByteRxCount(Long value) |
StatResultBuilder |
setByteTxCount(Long value) |
StatResultBuilder |
setPacketRxCount(Long value) |
StatResultBuilder |
setPacketTxCount(Long value) |
StatResultBuilder |
setStatResultCode(ResultCode value) |
public StatResultBuilder()
public StatResultBuilder(StatReply arg)
public StatResultBuilder(ServiceEnitityStatistics arg)
public StatResultBuilder(StatResult base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic Long getByteRxCount()
public Long getByteTxCount()
public Long getPacketRxCount()
public Long getPacketTxCount()
public ResultCode getStatResultCode()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<StatResult>> E$$ augmentation(Class<E$$> augmentationType)
public StatResultBuilder setByteRxCount(Long value)
public StatResultBuilder setByteTxCount(Long value)
public StatResultBuilder setPacketRxCount(Long value)
public StatResultBuilder setPacketTxCount(Long value)
public StatResultBuilder setStatResultCode(ResultCode value)
public StatResultBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<StatResult>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<StatResult> augmentationValue)
public StatResultBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<StatResult>> augmentationType)
public StatResult build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<StatResult,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.