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 Object Builder of BandwidthProfile entities.
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BandwidthProfilebuild()Builds a new BandwidthProfile instance.BandwidthProfile.Buildercbs(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(Integer ebs)Sets the excess burst size (EBS) of this builder.BandwidthProfile.BuildergreenAction(BandwidthProfileAction greenAction)Sets the green action of this builder.BandwidthProfile.Buildername(String name)Sets the name of this bandwidth profile builder.BandwidthProfile.Builderpbs(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- 
namepublic BandwidthProfile.Builder name(String name) Sets the name of this bandwidth profile builder.- Parameters:
- name- the builder name to set
- Returns:
- this builder instance
 
 - 
cirpublic 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
 
 - 
pirpublic 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
 
 - 
cbspublic BandwidthProfile.Builder cbs(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
 
 - 
pbspublic BandwidthProfile.Builder pbs(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
 
 - 
ebspublic BandwidthProfile.Builder ebs(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
 
 - 
greenActionpublic BandwidthProfile.Builder greenAction(BandwidthProfileAction greenAction) Sets the green action of this builder.- Parameters:
- greenAction- the builder green action to set
- Returns:
- this builder instance
 
 - 
yellowActionpublic BandwidthProfile.Builder yellowAction(BandwidthProfileAction yellowAction) Sets the yellow action of this builder.- Parameters:
- yellowAction- the builder green action to set
- Returns:
- this builder instance
 
 - 
redActionpublic BandwidthProfile.Builder redAction(BandwidthProfileAction redAction) Sets the red action of this builder.- Parameters:
- redAction- the builder green action to set
- Returns:
- this builder instance
 
 - 
colorAwarepublic 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
 
 - 
buildpublic BandwidthProfile build() Builds a new BandwidthProfile instance. based on this builder's parameters- Returns:
- a new BandwidthProfile instance
 
 
- 
 
-