|
|||||||||
| 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.Workspace
public class Workspace
A Workspace is a container for your Tasks, Workers, TaskQueues, Workflows and Activities. Each of these items exists within a single Workspace and will not be shared across Workspaces.
| Constructor Summary | |
|---|---|
Workspace(TwilioTaskRouterClient client)
Instantiates a workspace. |
|
Workspace(TwilioTaskRouterClient client,
Map<String,Object> properties)
Instantiates a workspace. |
|
Workspace(TwilioTaskRouterClient client,
String sid)
Instantiates a workspace. |
|
| Method Summary | |
|---|---|
String |
getAccountSid()
The ID of the Account that owns this Workspace. |
ActivityList |
getActivities()
Retrieves the ActivityList for this Workspace |
Activity |
getActivity(String activitySid)
Retrieves an Activity from this Workspace by ID. |
Date |
getDateCreated()
The date and time this Workspace was created. |
Date |
getDateUpdated()
The date and time this Workspace was last updated. |
String |
getDefaultActivityName()
The human-readable name of the default activity. |
String |
getDefaultActivitySid()
The ID of the Activity that will be used when new Workers are created in this Workspace. |
Event |
getEvent(String eventSid)
Retrieves an Event from this Workspace |
String |
getEventCallbackUrl()
An optional URL where the Workspace will publish events. |
EventList |
getEvents()
Retrieves the EventList for this Workspace |
String |
getFriendlyName()
A human-readable description of this Workspace. |
String |
getSid()
The unique ID for this Workspace. |
Task |
getTask(String taskSid)
Retrieves a Task from this Workspace. |
TaskList |
getTasks()
Retrieves the TaskList for this Workspace. |
String |
getTimeoutActivityName()
The human-readable name of the timeout activity. |
String |
getTimeoutActivitySid()
The ID of the Activity that will be assigned to a
Worker when a
Task reservation times out without a response. |
Worker |
getWorker(String workerSid)
Retrieves a Worker from a Workspace |
WorkerList |
getWorkers()
Retrieves the WorkerList for this Workspace |
Workflow |
getWorkflow(String workflowSid)
Retrieves a Workflow from a Workspace |
WorkflowList |
getWorkflows()
Retrieves the WorkflowList for this Workspace |
| 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 Workspace(TwilioTaskRouterClient client)
client - the client
public Workspace(TwilioTaskRouterClient client,
Map<String,Object> properties)
client - the clientproperties - the properties
public Workspace(TwilioTaskRouterClient client,
String sid)
client - the clientsid - the sid| Method Detail |
|---|
public String getAccountSid()
Account that owns this Workspace.
public ActivityList getActivities()
ActivityList for this Workspace
ActivityListpublic Activity getActivity(String activitySid)
Activity from this Workspace by ID.
public Date getDateCreated()
public Date getDateUpdated()
public String getDefaultActivityName()
public String getDefaultActivitySid()
public Event getEvent(String eventSid)
Event from this Workspace
public EventList getEvents()
EventList for this Workspace
EventListpublic String getEventCallbackUrl()
public String getFriendlyName()
public String getSid()
public Task getTask(String taskSid)
Task from this Workspace.
public TaskList getTasks()
TaskList for this Workspace.
TaskListpublic String getTimeoutActivityName()
public String getTimeoutActivitySid()
Activity that will be assigned to a
Worker when a
Task reservation times out without a response.
public Worker getWorker(String workerSid)
Worker from a Workspace
public WorkerList getWorkers()
WorkerList for this Workspace
WorkerListpublic Workflow getWorkflow(String workflowSid)
Workflow from a Workspace
public WorkflowList getWorkflows()
WorkflowList for this Workspace
WorkflowList
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||