Class WorkflowCreator
- java.lang.Object
-
- com.twilio.base.Creator<Workflow>
-
- com.twilio.rest.taskrouter.v1.workspace.WorkflowCreator
-
-
Constructor Summary
Constructors Constructor Description WorkflowCreator(String pathWorkspaceSid, String friendlyName, String configuration)
Construct a new WorkflowCreator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Workflow
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.WorkflowCreator
setAssignmentCallbackUrl(String assignmentCallbackUrl)
A valid URL for the application that will process task assignment events.WorkflowCreator
setAssignmentCallbackUrl(URI assignmentCallbackUrl)
A valid URL for the application that will process task assignment events.WorkflowCreator
setFallbackAssignmentCallbackUrl(String fallbackAssignmentCallbackUrl)
If the request to the AssignmentCallbackUrl fails, the assignment callback will be made to this URL..WorkflowCreator
setFallbackAssignmentCallbackUrl(URI fallbackAssignmentCallbackUrl)
If the request to the AssignmentCallbackUrl fails, the assignment callback will be made to this URL..WorkflowCreator
setTaskReservationTimeout(Integer taskReservationTimeout)
An integer value controlling how long in seconds TaskRouter will wait for a confirmation response from your application after assigning a Task to a worker.-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
Constructor Detail
-
WorkflowCreator
public WorkflowCreator(String pathWorkspaceSid, String friendlyName, String configuration)
Construct a new WorkflowCreator.- Parameters:
pathWorkspaceSid
- The workspace_sidfriendlyName
- A string representing a human readable name for this Workflow.configuration
- JSON document configuring the rules for this Workflow.
-
-
Method Detail
-
setAssignmentCallbackUrl
public WorkflowCreator setAssignmentCallbackUrl(URI assignmentCallbackUrl)
A valid URL for the application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/api/taskrouter/handling-assignment-callbacks) for more details..- Parameters:
assignmentCallbackUrl
- A valid URL for the application that will process task assignment events.- Returns:
- this
-
setAssignmentCallbackUrl
public WorkflowCreator setAssignmentCallbackUrl(String assignmentCallbackUrl)
A valid URL for the application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/api/taskrouter/handling-assignment-callbacks) for more details..- Parameters:
assignmentCallbackUrl
- A valid URL for the application that will process task assignment events.- Returns:
- this
-
setFallbackAssignmentCallbackUrl
public WorkflowCreator setFallbackAssignmentCallbackUrl(URI fallbackAssignmentCallbackUrl)
If the request to the AssignmentCallbackUrl fails, the assignment callback will be made to this URL..- Parameters:
fallbackAssignmentCallbackUrl
- If the request to the AssignmentCallbackUrl fails, the assignment callback will be made to this URL.- Returns:
- this
-
setFallbackAssignmentCallbackUrl
public WorkflowCreator setFallbackAssignmentCallbackUrl(String fallbackAssignmentCallbackUrl)
If the request to the AssignmentCallbackUrl fails, the assignment callback will be made to this URL..- Parameters:
fallbackAssignmentCallbackUrl
- If the request to the AssignmentCallbackUrl fails, the assignment callback will be made to this URL.- Returns:
- this
-
setTaskReservationTimeout
public WorkflowCreator setTaskReservationTimeout(Integer taskReservationTimeout)
An integer value controlling how long in seconds TaskRouter will wait for a confirmation response from your application after assigning a Task to a worker. See Task Assignment Callback for more information. Defaults to 120 seconds. Maximum value is 86400 (24 hours).- Parameters:
taskReservationTimeout
- An integer value controlling how long in seconds TaskRouter will wait for a confirmation response from your application after assigning a Task to a worker.- Returns:
- this
-
create
public Workflow create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
-
-