public class DscpRemarkBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<DscpRemark>
DscpRemarkBuilder
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:
DscpRemarkBuilder createTarget(int fooXyzzy, int barBaz) {
return new DscpRemarkBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of DscpRemarkBuilder, 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 methodDscpRemarkBuilder
,
Builder
Constructor and Description |
---|
DscpRemarkBuilder() |
DscpRemarkBuilder(DscpRemark base) |
Modifier and Type | Method and Description |
---|---|
DscpRemarkBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DscpRemark>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<DscpRemark> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DscpRemark>> |
augmentation(Class<E$$> augmentationType) |
DscpRemark |
build() |
Long |
getDscpRemarkBurstSize() |
Long |
getDscpRemarkRate() |
Short |
getPrecLevel() |
DscpRemarkBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DscpRemark>> augmentationType) |
DscpRemarkBuilder |
setDscpRemarkBurstSize(Long value) |
DscpRemarkBuilder |
setDscpRemarkRate(Long value) |
DscpRemarkBuilder |
setPrecLevel(Short value) |
public DscpRemarkBuilder()
public DscpRemarkBuilder(DscpRemark base)
public Long getDscpRemarkBurstSize()
public Long getDscpRemarkRate()
public Short getPrecLevel()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DscpRemark>> E$$ augmentation(Class<E$$> augmentationType)
public DscpRemarkBuilder setDscpRemarkBurstSize(Long value)
public DscpRemarkBuilder setDscpRemarkRate(Long value)
public DscpRemarkBuilder setPrecLevel(Short value)
public DscpRemarkBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DscpRemark>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<DscpRemark> augmentationValue)
public DscpRemarkBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DscpRemark>> augmentationType)
public DscpRemark build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<DscpRemark,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.