public class TaskChannelCreator extends Creator<TaskChannel>
Constructor and Description |
---|
TaskChannelCreator(String pathWorkspaceSid,
String friendlyName,
String uniqueName)
Construct a new TaskChannelCreator.
|
Modifier and Type | Method and Description |
---|---|
TaskChannel |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
TaskChannelCreator |
setChannelOptimizedRouting(Boolean channelOptimizedRouting)
Whether the TaskChannel should prioritize Workers that have been idle.
|
create, createAsync, createAsync
public TaskChannelCreator(String pathWorkspaceSid, String friendlyName, String uniqueName)
pathWorkspaceSid
- The SID of the Workspace that the new TaskChannel
belongs tofriendlyName
- A string to describe the TaskChannel resourceuniqueName
- An application-defined string that uniquely identifies the
TaskChannelpublic TaskChannelCreator setChannelOptimizedRouting(Boolean channelOptimizedRouting)
channelOptimizedRouting
- Whether the TaskChannel should prioritize
Workers that have been idlepublic TaskChannel create(TwilioRestClient client)
create
in class Creator<TaskChannel>
client
- TwilioRestClient with which to make the requestCopyright © 2019 Twilio, Inc. All Rights Reserved.