|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.twilio.sdk.resource.Resource<C>
com.twilio.sdk.resource.InstanceResource<C>
com.twilio.sdk.resource.NextGenInstanceResource<TwilioTaskRouterClient>
com.twilio.sdk.resource.instance.taskrouter.Task
public class Task
A Task resource represents a single item of work waiting to be processed. See the TaskRouter documentation.
| Constructor Summary | |
|---|---|
Task(TwilioTaskRouterClient client)
Instantiates a task. |
|
Task(TwilioTaskRouterClient client,
Map<String,Object> properties)
Instantiates a task. |
|
Task(TwilioTaskRouterClient client,
String workspaceSid,
String taskSid)
Instantiates a task. |
|
| Method Summary | |
|---|---|
String |
getAccountSid()
The ID of the Account that owns this Task. |
int |
getAge()
The number of seconds since this Task was created. |
String |
getAssignmentStatus()
A string representing the Assignment State of the task. |
String |
getAttributes()
The user-defined JSON string describing the custom attributes of this work. |
Date |
getDateCreated()
Date and time this Task was created. |
Date |
getDateUpdated()
Date and time this Task was last updated. |
int |
getPriority()
The current priority score of the task, as assigned by the workflow. |
String |
getQueueSid()
The unique ID of the TaskQueue this Task occupies. |
String |
getReason()
The reason the Task was canceled (if applicable). |
String |
getSid()
The unique ID of this Task. |
int |
getTimeout()
The Task assignment request timeout, in seconds. |
String |
getWorkflowSid()
The ID of the Workflow responsible for routing this Task. |
String |
getWorkspaceSid()
The ID of the Workspace containing this Task. |
| Methods inherited from class com.twilio.sdk.resource.InstanceResource |
|---|
getObject, getProperty, update, update |
| Methods inherited from class com.twilio.sdk.resource.Resource |
|---|
setRequestAccountSid |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Task(TwilioTaskRouterClient client)
client - the client
public Task(TwilioTaskRouterClient client,
Map<String,Object> properties)
client - the clientproperties - the properties
public Task(TwilioTaskRouterClient client,
String workspaceSid,
String taskSid)
client - the clientworkspaceSid - the workspace sidtaskSid - the task sid| Method Detail |
|---|
public String getAccountSid()
Account that owns this Task.
public int getAge()
public String getAssignmentStatus()
public String getAttributes()
public Date getDateCreated()
public Date getDateUpdated()
public int getPriority()
public int getTimeout()
public String getQueueSid()
TaskQueue this Task occupies.
TaskQueue sidpublic String getSid()
public String getWorkflowSid()
Workflow responsible for routing this Task.
public String getWorkspaceSid()
Workspace containing this Task.
public String getReason()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||