public static final class BandwidthProfile.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BandwidthProfile |
build()
Builds a new BandwidthProfile instance.
|
BandwidthProfile.Builder |
cbs(Integer cbs)
Sets the committed burst size (CBS) of this builder.
|
BandwidthProfile.Builder |
cir(Bandwidth cir)
Sets the committed information rate (CIR) of this builder.
|
BandwidthProfile.Builder |
colorAware(boolean colorAware)
Sets the color-aware mode of this builder.
|
BandwidthProfile.Builder |
ebs(Integer ebs)
Sets the excess burst size (EBS) of this builder.
|
BandwidthProfile.Builder |
greenAction(BandwidthProfileAction greenAction)
Sets the green action of this builder.
|
BandwidthProfile.Builder |
name(String name)
Sets the name of this bandwidth profile builder.
|
BandwidthProfile.Builder |
pbs(Integer pbs)
Sets the peak burst size (PBS) of this builder.
|
BandwidthProfile.Builder |
pir(Bandwidth pir)
Sets the peak information rate (PIR) of this builder.
|
BandwidthProfile.Builder |
redAction(BandwidthProfileAction redAction)
Sets the red action of this builder.
|
BandwidthProfile.Builder |
yellowAction(BandwidthProfileAction yellowAction)
Sets the yellow action of this builder.
|
public BandwidthProfile.Builder name(String name)
name
- the builder name to setpublic BandwidthProfile.Builder cir(Bandwidth cir)
cir
- the builder CIR to setpublic BandwidthProfile.Builder pir(Bandwidth pir)
pir
- the builder PIR to setpublic BandwidthProfile.Builder cbs(Integer cbs)
cbs
- the builder CBS to setpublic BandwidthProfile.Builder pbs(Integer pbs)
pbs
- the builder CBS to setpublic BandwidthProfile.Builder ebs(Integer ebs)
ebs
- the builder EBS to setpublic BandwidthProfile.Builder greenAction(BandwidthProfileAction greenAction)
greenAction
- the builder green action to setpublic BandwidthProfile.Builder yellowAction(BandwidthProfileAction yellowAction)
yellowAction
- the builder green action to setpublic BandwidthProfile.Builder redAction(BandwidthProfileAction redAction)
redAction
- the builder green action to setpublic BandwidthProfile.Builder colorAware(boolean colorAware)
colorAware
- true if profile to be build is color-aware;
false otherwisepublic BandwidthProfile build()