Package org.onosproject.net.behaviour
Class BandwidthProfile.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.BandwidthProfile.Builder
-
- Enclosing class:
- BandwidthProfile
public static final class BandwidthProfile.Builder extends java.lang.ObjectBuilder of BandwidthProfile entities.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BandwidthProfilebuild()Builds a new BandwidthProfile instance.BandwidthProfile.Buildercbs(java.lang.Integer cbs)Sets the committed burst size (CBS) of this builder.BandwidthProfile.Buildercir(Bandwidth cir)Sets the committed information rate (CIR) of this builder.BandwidthProfile.BuildercolorAware(boolean colorAware)Sets the color-aware mode of this builder.BandwidthProfile.Builderebs(java.lang.Integer ebs)Sets the excess burst size (EBS) of this builder.BandwidthProfile.BuildergreenAction(BandwidthProfileAction greenAction)Sets the green action of this builder.BandwidthProfile.Buildername(java.lang.String name)Sets the name of this bandwidth profile builder.BandwidthProfile.Builderpbs(java.lang.Integer pbs)Sets the peak burst size (PBS) of this builder.BandwidthProfile.Builderpir(Bandwidth pir)Sets the peak information rate (PIR) of this builder.BandwidthProfile.BuilderredAction(BandwidthProfileAction redAction)Sets the red action of this builder.BandwidthProfile.BuilderyellowAction(BandwidthProfileAction yellowAction)Sets the yellow action of this builder.
-
-
-
Method Detail
-
name
public BandwidthProfile.Builder name(java.lang.String name)
Sets the name of this bandwidth profile builder.- Parameters:
name- the builder name to set- Returns:
- this builder instance
-
cir
public BandwidthProfile.Builder cir(Bandwidth cir)
Sets the committed information rate (CIR) of this builder.- Parameters:
cir- the builder CIR to set- Returns:
- this builder instance
-
pir
public BandwidthProfile.Builder pir(Bandwidth pir)
Sets the peak information rate (PIR) of this builder.- Parameters:
pir- the builder PIR to set- Returns:
- this builder instance
-
cbs
public BandwidthProfile.Builder cbs(java.lang.Integer cbs)
Sets the committed burst size (CBS) of this builder. The CBS is measured in bytes.- Parameters:
cbs- the builder CBS to set- Returns:
- this builder instance
-
pbs
public BandwidthProfile.Builder pbs(java.lang.Integer pbs)
Sets the peak burst size (PBS) of this builder. The PBS is measured in bytes.- Parameters:
pbs- the builder CBS to set- Returns:
- this builder instance
-
ebs
public BandwidthProfile.Builder ebs(java.lang.Integer ebs)
Sets the excess burst size (EBS) of this builder. The EBS is measured in bytes.- Parameters:
ebs- the builder EBS to set- Returns:
- this builder instance
-
greenAction
public BandwidthProfile.Builder greenAction(BandwidthProfileAction greenAction)
Sets the green action of this builder.- Parameters:
greenAction- the builder green action to set- Returns:
- this builder instance
-
yellowAction
public BandwidthProfile.Builder yellowAction(BandwidthProfileAction yellowAction)
Sets the yellow action of this builder.- Parameters:
yellowAction- the builder green action to set- Returns:
- this builder instance
-
redAction
public BandwidthProfile.Builder redAction(BandwidthProfileAction redAction)
Sets the red action of this builder.- Parameters:
redAction- the builder green action to set- Returns:
- this builder instance
-
colorAware
public BandwidthProfile.Builder colorAware(boolean colorAware)
Sets the color-aware mode of this builder.- Parameters:
colorAware- true if profile to be build is color-aware; false otherwise- Returns:
- this builder instance
-
build
public BandwidthProfile build()
Builds a new BandwidthProfile instance. based on this builder's parameters- Returns:
- a new BandwidthProfile instance
-
-