com.twilio.sdk.resource.instance.taskrouter
Class TaskQueue

java.lang.Object
  extended by com.twilio.sdk.resource.Resource<C>
      extended by com.twilio.sdk.resource.InstanceResource<C>
          extended by com.twilio.sdk.resource.NextGenInstanceResource<TwilioTaskRouterClient>
              extended by com.twilio.sdk.resource.instance.taskrouter.TaskQueue

public class TaskQueue
extends NextGenInstanceResource<TwilioTaskRouterClient>

TaskQueues are the resource you use to categorize Tasks and describe which Workers are eligible to handle those Tasks. As your Workflows process Tasks, those Tasks will pass through one or more TaskQueues until the Task is assigned and accepted by an eligible Worker. See the TaskRouter documentation.


Constructor Summary
TaskQueue(TwilioTaskRouterClient client)
          Instantiates a queue.
TaskQueue(TwilioTaskRouterClient client, Map<String,Object> properties)
          Instantiates a queue.
TaskQueue(TwilioTaskRouterClient client, String workspaceSid, String queueSid)
          Instantiates a queue.
 
Method Summary
 String getAccountSid()
          The ID of the Account that owns this TaskQueue
 String getAssignmentActivitySid()
          The Activity to assign a Worker when they accept a Task from this TaskQueue.
 Date getDateCreated()
          The date and time this TaskQueue was created.
 Date getDateUpdated()
          The date and time this TaskQueue was last updated.
 String getFriendlyName()
          Human-readable description of the TaskQueue (for example “Customer Support” or “Sales”)
 String getReservationActivityName()
          The FriendlyName of the Activity Workers will be assigned when they are reserved for a Task from this queue.
 String getReservationActivitySid()
          The unique ID of the Activity Workers will be assigned when they are reserved for a Task from this queue.
 String getSid()
          The unique ID of this TaskQueue.
 String getTargetWorkers()
          The worker selection expressions for this TaskQueue.
 String getWorkspaceSid()
          The unique ID of the Workspace containing this TaskQueue.
 
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

TaskQueue

public TaskQueue(TwilioTaskRouterClient client)
Instantiates a queue.

Parameters:
client - the client

TaskQueue

public TaskQueue(TwilioTaskRouterClient client,
                 Map<String,Object> properties)
Instantiates a queue.

Parameters:
client - the client
properties - the properties

TaskQueue

public TaskQueue(TwilioTaskRouterClient client,
                 String workspaceSid,
                 String queueSid)
Instantiates a queue.

Parameters:
client - the client
workspaceSid - the workspace sid
queueSid - the queue sid
Method Detail

getAccountSid

public String getAccountSid()
The ID of the Account that owns this TaskQueue

Returns:
the account sid

getAssignmentActivitySid

public String getAssignmentActivitySid()
The Activity to assign a Worker when they accept a Task from this TaskQueue.

Returns:
the assignment activity sid

getDateCreated

public Date getDateCreated()
The date and time this TaskQueue was created.

Returns:
the date created

getDateUpdated

public Date getDateUpdated()
The date and time this TaskQueue was last updated.

Returns:
the date updated

getFriendlyName

public String getFriendlyName()
Human-readable description of the TaskQueue (for example “Customer Support” or “Sales”)

Returns:
the friendly name

getReservationActivityName

public String getReservationActivityName()
The FriendlyName of the Activity Workers will be assigned when they are reserved for a Task from this queue.

Returns:
the reservation activity name

getReservationActivitySid

public String getReservationActivitySid()
The unique ID of the Activity Workers will be assigned when they are reserved for a Task from this queue.

Returns:
the reservation activity sid

getSid

public String getSid()
The unique ID of this TaskQueue.

Returns:
the sid

getTargetWorkers

public String getTargetWorkers()
The worker selection expressions for this TaskQueue.

Returns:
the target workers

getWorkspaceSid

public String getWorkspaceSid()
The unique ID of the Workspace containing this TaskQueue.

Returns:
the workspace sid


Copyright © 2011 Twilio, Inc. All Rights Reserved.