Class PiAction.Builder

  • Enclosing class:
    PiAction

    public static final class PiAction.Builder
    extends java.lang.Object
    Builder of protocol-independent actions.
    • 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