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 class
WorkflowRuleTarget.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowRuleTarget
fromJson(String json)
Converts a JSON workflow configuration to a workflow configuration object.String
getExpression()
Get the expression for the workflow rule target to limit the workers selected.String
getKnownWorkerFriendlyName()
Get the knownWorkerFriendlyName expression for the workflow rule target.String
getKnownWorkerSid()
Get the knownWorkerSid expression for the workflow rule target.String
getOrderBy()
Get the orderBy for the workflow rule target.Integer
getPriority()
Get the priority for the workflow rule target.String
getQueue()
Get the queue for the workflow rule target.String
getSkipIf()
Get the skipIf for the workflow rule target.Integer
getTimeout()
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
-
-