Package com.twilio.taskrouter
Class WorkflowRuleTarget
- java.lang.Object
-
- com.twilio.taskrouter.TaskRouterResource
-
- com.twilio.taskrouter.WorkflowRuleTarget
-
public class WorkflowRuleTarget extends TaskRouterResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflowRuleTarget.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowRuleTargetfromJson(String json)Converts a JSON workflow configuration to a workflow configuration object.StringgetExpression()Get the expression for the workflow rule target to limit the workers selected.StringgetKnownWorkerFriendlyName()Get the knownWorkerFriendlyName expression for the workflow rule target.StringgetKnownWorkerSid()Get the knownWorkerSid expression for the workflow rule target.StringgetOrderBy()Get the orderBy for the workflow rule target.IntegergetPriority()Get the priority for the workflow rule target.StringgetQueue()Get the queue for the workflow rule target.StringgetSkipIf()Get the skipIf for the workflow rule target.IntegergetTimeout()Get the timeout for the workflow rule target.-
Methods inherited from class com.twilio.taskrouter.TaskRouterResource
toJson
-
-
-
-
Method Detail
-
getQueue
public String getQueue()
Get the queue for the workflow rule target.- Returns:
- queue sid
-
getExpression
public String getExpression()
Get the expression for the workflow rule target to limit the workers selected.- Returns:
- the expression
-
getPriority
public Integer getPriority()
Get the priority for the workflow rule target.- Returns:
- the priority
-
getTimeout
public Integer getTimeout()
Get the timeout for the workflow rule target.- Returns:
- the timeout
-
getOrderBy
public String getOrderBy()
Get the orderBy for the workflow rule target.- Returns:
- the orderBy
-
getSkipIf
public String getSkipIf()
Get the skipIf for the workflow rule target.- Returns:
- the skipIf
-
getKnownWorkerSid
public String getKnownWorkerSid()
Get the knownWorkerSid expression for the workflow rule target.- Returns:
- the knownWorkerSid expression
-
getKnownWorkerFriendlyName
public String getKnownWorkerFriendlyName()
Get the knownWorkerFriendlyName expression for the workflow rule target.- Returns:
- the knownWorkerFriendlyName expression
-
fromJson
public static WorkflowRuleTarget fromJson(String json) throws IOException
Converts a JSON workflow configuration to a workflow configuration object.- Parameters:
json- JSON for workflow rule target- Returns:
- a workflow rule target object
- Throws:
IOException- if unable to create object
-
-