Package com.twilio.taskrouter
Class TaskRouting
- java.lang.Object
-
- com.twilio.taskrouter.TaskRouterResource
-
- com.twilio.taskrouter.TaskRouting
-
public class TaskRouting extends TaskRouterResource
-
-
Constructor Summary
Constructors Constructor Description TaskRouting(List<WorkflowRule> workflowRules, WorkflowRuleTarget defaultTarget)
Constructor for creating based on json..
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TaskRouting
fromJson(String json)
Converts a JSON workflow configuration to a workflow rule object.WorkflowRuleTarget
getDefaultTarget()
Get the default filter for the workflow.List<WorkflowRule>
getWorkflowRules()
Get the workflow rules for the workflow.-
Methods inherited from class com.twilio.taskrouter.TaskRouterResource
toJson
-
-
-
-
Constructor Detail
-
TaskRouting
public TaskRouting(List<WorkflowRule> workflowRules, WorkflowRuleTarget defaultTarget)
Constructor for creating based on json..- Parameters:
workflowRules
- Workflow Rule configurationdefaultTarget
- Default Rule target
-
-
Method Detail
-
getWorkflowRules
public List<WorkflowRule> getWorkflowRules()
Get the workflow rules for the workflow.- Returns:
- the list of workflow rules
-
getDefaultTarget
public WorkflowRuleTarget getDefaultTarget()
Get the default filter for the workflow.- Returns:
- the default filter
-
fromJson
public static TaskRouting fromJson(String json) throws IOException
Converts a JSON workflow configuration to a workflow rule object.- Parameters:
json
- JSON for workflow rule- Returns:
- a workflow rule target object
- Throws:
IOException
- if unable to create object
-
-