Package org.onosproject.net.behaviour
Class BandwidthProfileAction.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.BandwidthProfileAction.Builder
-
- Enclosing class:
- BandwidthProfileAction
public static final class BandwidthProfileAction.Builder extends java.lang.Object
Builder of BandwidthProfileAction entities.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BandwidthProfileAction.Builder
action(BandwidthProfileAction.Action action)
Sets the type of this builder.BandwidthProfileAction
build()
Builds a new BandwidthProfileAction based on builder's parameters.BandwidthProfileAction.Builder
dropPrecedence(java.lang.Short dropPrecedence)
Sets the drop precedence of this builder.BandwidthProfileAction.Builder
dscpClass(DscpClass dscpClass)
Sets the DSCP class of this builder.BandwidthProfileAction.Builder
ipPrecedence(IPPrecedence ipPrecedence)
Sets the IP precedence of this builder.
-
-
-
Method Detail
-
action
public BandwidthProfileAction.Builder action(BandwidthProfileAction.Action action)
Sets the type of this builder.- Parameters:
action
- the builder type to set- Returns:
- this builder instance
-
dscpClass
public BandwidthProfileAction.Builder dscpClass(DscpClass dscpClass)
Sets the DSCP class of this builder.- Parameters:
dscpClass
- the builder DSCP class to set- Returns:
- this builder instance
-
ipPrecedence
public BandwidthProfileAction.Builder ipPrecedence(IPPrecedence ipPrecedence)
Sets the IP precedence of this builder.- Parameters:
ipPrecedence
- the builder IP precedence to set- Returns:
- this builder instance
-
dropPrecedence
public BandwidthProfileAction.Builder dropPrecedence(java.lang.Short dropPrecedence)
Sets the drop precedence of this builder.- Parameters:
dropPrecedence
- the drop IP precedence to set- Returns:
- this builder instance
-
build
public BandwidthProfileAction build()
Builds a new BandwidthProfileAction based on builder's parameters.- Returns:
- a new BandwidthProfileAction instance
-
-