public class MeterConfigStatsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<MeterConfigStats>
MeterConfigStatsBuilder
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:
MeterConfigStatsBuilder createTarget(int fooXyzzy, int barBaz) {
return new MeterConfigStatsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of MeterConfigStatsBuilder, 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 methodMeterConfigStatsBuilder
,
Builder
Constructor and Description |
---|
MeterConfigStatsBuilder() |
MeterConfigStatsBuilder(Meter arg) |
MeterConfigStatsBuilder(MeterConfigStats base) |
public MeterConfigStatsBuilder()
public MeterConfigStatsBuilder(Meter arg)
public MeterConfigStatsBuilder(MeterConfigStats base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic String getContainerName()
public MeterFlags getFlags()
public MeterBandHeaders getMeterBandHeaders()
public MeterId getMeterId()
public String getMeterName()
public Boolean isBarrier()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfigStats>> E$$ augmentation(Class<E$$> augmentationType)
public MeterConfigStatsBuilder setContainerName(String value)
public MeterConfigStatsBuilder setFlags(MeterFlags value)
public MeterConfigStatsBuilder setMeterBandHeaders(MeterBandHeaders value)
public MeterConfigStatsBuilder setMeterId(MeterId value)
public MeterConfigStatsBuilder setMeterName(String value)
public MeterConfigStatsBuilder setBarrier(Boolean value)
public MeterConfigStatsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfigStats>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfigStats> augmentationValue)
public MeterConfigStatsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MeterConfigStats>> augmentationType)
public MeterConfigStats build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<MeterConfigStats,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.