public class ReplyTimeBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ReplyTime>
ReplyTimeBuilder 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:
ReplyTimeBuilder createTarget(int fooXyzzy, int barBaz) {
return new ReplyTimeBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ReplyTimeBuilder, 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 methodReplyTimeBuilder,
Builder| Constructor and Description |
|---|
ReplyTimeBuilder() |
ReplyTimeBuilder(ReplyTime base) |
| Modifier and Type | Method and Description |
|---|---|
ReplyTimeBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ReplyTime>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<ReplyTime> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ReplyTime>> |
augmentation(Class<E$$> augmentationType) |
ReplyTime |
build() |
Long |
getAverageTime() |
Long |
getMaxTime() |
Long |
getMinTime() |
ReplyTimeBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ReplyTime>> augmentationType) |
ReplyTimeBuilder |
setAverageTime(Long value) |
ReplyTimeBuilder |
setMaxTime(Long value) |
ReplyTimeBuilder |
setMinTime(Long value) |
public ReplyTimeBuilder()
public ReplyTimeBuilder(ReplyTime base)
public Long getAverageTime()
public Long getMaxTime()
public Long getMinTime()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ReplyTime>> E$$ augmentation(Class<E$$> augmentationType)
public ReplyTimeBuilder setAverageTime(Long value)
public ReplyTimeBuilder setMaxTime(Long value)
public ReplyTimeBuilder setMinTime(Long value)
public ReplyTimeBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ReplyTime>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ReplyTime> augmentationValue)
public ReplyTimeBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ReplyTime>> augmentationType)
public ReplyTime build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ReplyTime,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.