public class ProcTimeBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ProcTime>
ProcTimeBuilder 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:
ProcTimeBuilder createTarget(int fooXyzzy, int barBaz) {
return new ProcTimeBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ProcTimeBuilder, 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 methodProcTimeBuilder,
Builder| Constructor and Description |
|---|
ProcTimeBuilder() |
ProcTimeBuilder(Object arg) |
ProcTimeBuilder(ObjectHeader arg) |
ProcTimeBuilder(ProcTime base) |
| Modifier and Type | Method and Description |
|---|---|
ProcTimeBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ProcTime>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<ProcTime> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ProcTime>> |
augmentation(Class<E$$> augmentationType) |
ProcTime |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Long |
getAverageProcTime() |
Long |
getCurrentProcTime() |
Long |
getMaxProcTime() |
Long |
getMinProcTime() |
Long |
getVarianceProcTime() |
Boolean |
isEstimated() |
Boolean |
isIgnore() |
Boolean |
isProcessingRule() |
ProcTimeBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ProcTime>> augmentationType) |
ProcTimeBuilder |
setAverageProcTime(Long value) |
ProcTimeBuilder |
setCurrentProcTime(Long value) |
ProcTimeBuilder |
setEstimated(Boolean value) |
ProcTimeBuilder |
setIgnore(Boolean value) |
ProcTimeBuilder |
setMaxProcTime(Long value) |
ProcTimeBuilder |
setMinProcTime(Long value) |
ProcTimeBuilder |
setProcessingRule(Boolean value) |
ProcTimeBuilder |
setVarianceProcTime(Long value) |
public ProcTimeBuilder()
public ProcTimeBuilder(Object arg)
public ProcTimeBuilder(ObjectHeader arg)
public ProcTimeBuilder(ProcTime base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Long getAverageProcTime()
public Long getCurrentProcTime()
public Long getMaxProcTime()
public Long getMinProcTime()
public Long getVarianceProcTime()
public Boolean isEstimated()
public Boolean isIgnore()
public Boolean isProcessingRule()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ProcTime>> E$$ augmentation(Class<E$$> augmentationType)
public ProcTimeBuilder setAverageProcTime(Long value)
public ProcTimeBuilder setCurrentProcTime(Long value)
public ProcTimeBuilder setMaxProcTime(Long value)
public ProcTimeBuilder setMinProcTime(Long value)
public ProcTimeBuilder setVarianceProcTime(Long value)
public ProcTimeBuilder setEstimated(Boolean value)
public ProcTimeBuilder setIgnore(Boolean value)
public ProcTimeBuilder setProcessingRule(Boolean value)
public ProcTimeBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ProcTime>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ProcTime> augmentationValue)
public ProcTimeBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ProcTime>> augmentationType)
public ProcTime build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ProcTime,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.