public class Workspace extends NextGenInstanceResource<TwilioTaskRouterClient>
| Constructor and Description |
|---|
Workspace(TwilioTaskRouterClient client)
Instantiates a workspace.
|
Workspace(TwilioTaskRouterClient client,
Map<String,Object> properties)
Instantiates a workspace.
|
Workspace(TwilioTaskRouterClient client,
String sid)
Instantiates a workspace.
|
| Modifier and Type | Method and Description |
|---|---|
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()
|
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()
|
String |
getTimeoutActivityName()
The human-readable name of the timeout activity.
|
String |
getTimeoutActivitySid()
|
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 |
getObject, getProperty, update, updatesetRequestAccountSidpublic Workspace(TwilioTaskRouterClient client)
client - the clientpublic Workspace(TwilioTaskRouterClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic Workspace(TwilioTaskRouterClient client, String sid)
client - the clientsid - the sidpublic String getAccountSid()
Account that owns this Workspace.public ActivityList getActivities()
ActivityList for this WorkspaceActivityListpublic Activity getActivity(String activitySid)
Activity from this Workspace by ID.public Date getDateCreated()
public Date getDateUpdated()
public String getDefaultActivityName()
public String getDefaultActivitySid()
public String getEventCallbackUrl()
public String getFriendlyName()
public String getSid()
public String getTimeoutActivityName()
public String getTimeoutActivitySid()
Activity that will be assigned to a
Worker when a
Task reservation times out without a response.public WorkerList getWorkers()
WorkerList for this WorkspaceWorkerListpublic WorkflowList getWorkflows()
WorkflowList for this WorkspaceWorkflowListCopyright © 2011 Twilio, Inc. All Rights Reserved.