public static class InputAction.Builder extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
InputAction |
build() |
InputAction.Builder |
eventMethod(EventMethod eventMethod) |
InputAction.Builder |
eventUrl(java.util.Collection<java.lang.String> eventUrl) |
InputAction.Builder |
eventUrl(java.lang.String... eventUrl) |
InputAction.Builder |
maxDigits(java.lang.Integer maxDigits) |
InputAction.Builder |
submitOnHash(java.lang.Boolean submitOnHash) |
InputAction.Builder |
timeOut(java.lang.Integer timeOut) |
public Builder()
public InputAction.Builder timeOut(java.lang.Integer timeOut)
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.InputAction.Builder to keep building.public InputAction.Builder maxDigits(java.lang.Integer maxDigits)
maxDigits - The number of digits the user can press. The maximum value is 20, the default is 4 digits.InputAction.Builder to keep building.public InputAction.Builder submitOnHash(java.lang.Boolean submitOnHash)
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.InputAction.Builder to keep building.public InputAction.Builder eventUrl(java.util.Collection<java.lang.String> eventUrl)
eventUrl - Nexmo sends the digits pressed by the callee to this URL after timeOut pause in activity or
when # is pressed.InputAction.Builder to keep building.public InputAction.Builder eventUrl(java.lang.String... eventUrl)
eventUrl - Nexmo sends the digits pressed by the callee to this URL after timeOut pause in activity or
when # is pressed.InputAction.Builder to keep building.public InputAction.Builder eventMethod(EventMethod eventMethod)
eventMethod - The HTTP method used to send event information to event_url The default value is POST.InputAction.Builder to keep building.public InputAction build()
InputAction object from the stored builder options.