Package com.twilio.taskrouter
Class WorkflowRule
- java.lang.Object
-
- com.twilio.taskrouter.TaskRouterResource
-
- com.twilio.taskrouter.WorkflowRule
-
public class WorkflowRule extends TaskRouterResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflowRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowRulefromJson(String json)Converts a JSON workflow configuration to a workflow rule object.StringgetExpression()Get the expression for the workflow rule.StringgetFriendlyName()Get the friendly name / label for the workflow rule.List<WorkflowRuleTarget>getWorkflowRuleTargets()Get the list of workflow rule targets for this workflow rule.-
Methods inherited from class com.twilio.taskrouter.TaskRouterResource
toJson
-
-
-
-
Method Detail
-
getExpression
public String getExpression()
Get the expression for the workflow rule.- Returns:
- the expression
-
getFriendlyName
public String getFriendlyName()
Get the friendly name / label for the workflow rule.- Returns:
- the friendly name
-
getWorkflowRuleTargets
public List<WorkflowRuleTarget> getWorkflowRuleTargets()
Get the list of workflow rule targets for this workflow rule.- Returns:
- list of workflow rule targets
-
fromJson
public static WorkflowRule 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
-
-