Package org.onosproject.net.pi.runtime
Class PiMeterCellConfig.Builder
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiMeterCellConfig.Builder
-
- Enclosing class:
- PiMeterCellConfig
public static final class PiMeterCellConfig.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiMeterCellConfig
build()
Builds the meter cell configuration.PiMeterCellConfig.Builder
withMeterBand(PiMeterBand band)
Sets a meter band of this meter.PiMeterCellConfig.Builder
withMeterCellId(PiMeterCellId meterCellId)
Sets the meter cell identifier for this meter.
-
-
-
Method Detail
-
withMeterCellId
public PiMeterCellConfig.Builder withMeterCellId(PiMeterCellId meterCellId)
Sets the meter cell identifier for this meter.- Parameters:
meterCellId
- meter cell identifier- Returns:
- this
-
withMeterBand
public PiMeterCellConfig.Builder withMeterBand(PiMeterBand band)
Sets a meter band of this meter.- Parameters:
band
- meter band- Returns:
- this
-
build
public PiMeterCellConfig build()
Builds the meter cell configuration.- Returns:
- a new meter cell configuration
-
-