Package com.vonage.client.voice.ncco
Class InputAction.Builder
java.lang.Object
com.vonage.client.voice.ncco.InputAction.Builder
- Enclosing class:
- InputAction
public static class InputAction.Builder extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description InputActionbuild()InputAction.BuildereventMethod(EventMethod eventMethod)InputAction.BuildereventUrl(java.lang.String... eventUrl)InputAction.BuildereventUrl(java.util.Collection<java.lang.String> eventUrl)InputAction.BuildermaxDigits(java.lang.Integer maxDigits)InputAction.BuildersubmitOnHash(java.lang.Boolean submitOnHash)InputAction.BuildertimeOut(java.lang.Integer timeOut)
-
Constructor Details
-
Method Details
-
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.Builderto keep building.
-
maxDigits
- Parameters:
maxDigits- The number of digits the user can press. The maximum value is 20, the default is 4 digits.- Returns:
- The
InputAction.Builderto keep building.
-
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.Builderto keep building.
-
eventUrl
- Parameters:
eventUrl- Vonage sends the digits pressed by the callee to this URL after timeOut pause in activity or when # is pressed.- Returns:
- The
InputAction.Builderto keep building.
-
eventUrl
- Parameters:
eventUrl- Vonage sends the digits pressed by the callee to this URL after timeOut pause in activity or when # is pressed.- Returns:
- The
InputAction.Builderto keep building.
-
eventMethod
- Parameters:
eventMethod- The HTTP method used to send event information to event_url The default value is POST.- Returns:
- The
InputAction.Builderto keep building.
-
build
- Returns:
- A new
InputActionobject from the stored builder options.
-