public class MeterConfigBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<MeterConfig>
MeterConfigBuilder
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:
MeterConfigBuilder createTarget(int fooXyzzy, int barBaz) {
return new MeterConfigBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of MeterConfigBuilder, 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 methodMeterConfigBuilder
,
Builder
Constructor and Description |
---|
MeterConfigBuilder() |
MeterConfigBuilder(MeterConfig base) |
Modifier and Type | Method and Description |
---|---|
MeterConfigBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfig>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfig> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfig>> |
augmentation(Class<E$$> augmentationType) |
MeterConfig |
build() |
List<Bands> |
getBands() |
MeterFlags |
getFlags() |
MeterId |
getMeterId() |
MeterConfigBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfig>> augmentationType) |
MeterConfigBuilder |
setBands(List<Bands> values) |
MeterConfigBuilder |
setFlags(MeterFlags value) |
MeterConfigBuilder |
setMeterId(MeterId value) |
public MeterConfigBuilder()
public MeterConfigBuilder(MeterConfig base)
public MeterFlags getFlags()
public MeterId getMeterId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfig>> E$$ augmentation(Class<E$$> augmentationType)
public MeterConfigBuilder setBands(List<Bands> values)
public MeterConfigBuilder setFlags(MeterFlags value)
public MeterConfigBuilder setMeterId(MeterId value)
public MeterConfigBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfig>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfig> augmentationValue)
public MeterConfigBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfig>> augmentationType)
public MeterConfig build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<MeterConfig,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.