Class ActivityCreator
- java.lang.Object
-
- com.twilio.base.Creator<Activity>
-
- com.twilio.rest.taskrouter.v1.workspace.ActivityCreator
-
-
Constructor Summary
Constructors Constructor Description ActivityCreator(String pathWorkspaceSid, String friendlyName)
Construct a new ActivityCreator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Activity
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.ActivityCreator
setAvailable(Boolean available)
Boolean value indicating whether the worker should be eligible to receive a Task when they occupy this Activity.-
Methods inherited from class com.twilio.base.Creator
create, createAsync, createAsync
-
-
-
-
Method Detail
-
setAvailable
public ActivityCreator setAvailable(Boolean available)
Boolean value indicating whether the worker should be eligible to receive a Task when they occupy this Activity. For example, a call center might have an activity named 'On Call' with an availability set to 'false'. Note: This can be 'true', '1' or 'yes' to indicate a true value. All other values will represent false. Defaults to false..- Parameters:
available
- Boolean value indicating whether the worker should be eligible to receive a Task when they occupy this Activity.- Returns:
- this
-
create
public Activity create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
-
-