Package org.onosproject.net.pi.runtime
Class PiAction.Builder
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiAction.Builder
-
- Enclosing class:
- PiAction
public static final class PiAction.Builder extends java.lang.Object
Builder of protocol-independent actions.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiAction
build()
Returns a new action instance.PiAction.Builder
withId(PiActionId actionId)
Sets the identifier of this action.PiAction.Builder
withParameter(PiActionParam param)
Adds a runtime parameter.PiAction.Builder
withParameters(java.util.Collection<PiActionParam> params)
Adds many runtime parameters.
-
-
-
Method Detail
-
withId
public PiAction.Builder withId(PiActionId actionId)
Sets the identifier of this action.- Parameters:
actionId
- action identifier- Returns:
- this
-
withParameter
public PiAction.Builder withParameter(PiActionParam param)
Adds a runtime parameter.- Parameters:
param
- action parameter- Returns:
- this
-
withParameters
public PiAction.Builder withParameters(java.util.Collection<PiActionParam> params)
Adds many runtime parameters.- Parameters:
params
- collection of action parameters- Returns:
- this
-
build
public PiAction build()
Returns a new action instance.- Returns:
- action
-
-