public class TaskRouting extends TaskRouterResource
| Constructor and Description |
|---|
TaskRouting(List<WorkflowRule> workflowRules,
WorkflowRuleTarget defaultTarget)
Constructor for creating based on json..
|
| Modifier and Type | Method and 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.
|
String |
toString() |
toJsonpublic TaskRouting(List<WorkflowRule> workflowRules, WorkflowRuleTarget defaultTarget)
workflowRules - Workflow Rule configurationdefaultTarget - Default Rule targetpublic List<WorkflowRule> getWorkflowRules()
public WorkflowRuleTarget getDefaultTarget()
public static TaskRouting fromJson(String json) throws IOException
json - JSON for workflow ruleIOException - if unable to create objectCopyright © 2016 Twilio, Inc. All Rights Reserved.