Class InputAction.Builder

    • Constructor Detail

    • Method Detail

      • timeOut

        public InputAction.Builder timeOut​(java.lang.Integer timeOut)
        Parameters:
        timeOut - The result of the callee's activity is sent to the eventUrl webhook endpoint timeOut seconds after the last action. The default value is 3. Max is 10.
        Returns:
        The InputAction.Builder to keep building.
      • maxDigits

        public InputAction.Builder maxDigits​(java.lang.Integer maxDigits)
        Parameters:
        maxDigits - The number of digits the user can press. The maximum value is 20, the default is 4 digits.
        Returns:
        The InputAction.Builder to keep building.
      • submitOnHash

        public InputAction.Builder submitOnHash​(java.lang.Boolean submitOnHash)
        Parameters:
        submitOnHash - Set to true so the callee's activity is sent to your webhook endpoint at eventUrl after he or she presses #. If # is not pressed the result is submitted after timeOut seconds. The default value is false. That is, the result is sent to your webhook endpoint after timeOut seconds.
        Returns:
        The InputAction.Builder to keep building.
      • eventUrl

        public InputAction.Builder eventUrl​(java.util.Collection<java.lang.String> eventUrl)
        Parameters:
        eventUrl - Nexmo sends the digits pressed by the callee to this URL after timeOut pause in activity or when # is pressed.
        Returns:
        The InputAction.Builder to keep building.
      • eventUrl

        public InputAction.Builder eventUrl​(java.lang.String... eventUrl)
        Parameters:
        eventUrl - Nexmo sends the digits pressed by the callee to this URL after timeOut pause in activity or when # is pressed.
        Returns:
        The InputAction.Builder to keep building.