Constructor and Description |
---|
WorkerUpdater(String pathWorkspaceSid,
String pathSid)
Construct a new WorkerUpdater.
|
Modifier and Type | Method and Description |
---|---|
WorkerUpdater |
setActivitySid(String activitySid)
The SID of a valid Activity that will describe the Worker's initial state.
|
WorkerUpdater |
setAttributes(String attributes)
The JSON string that describes the Worker.
|
WorkerUpdater |
setFriendlyName(String friendlyName)
A descriptive string that you create to describe the Worker.
|
WorkerUpdater |
setIfMatch(String ifMatch)
The If-Match HTTP request header.
|
WorkerUpdater |
setRejectPendingReservations(Boolean rejectPendingReservations)
Whether to reject the Worker's pending reservations.
|
Worker |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public WorkerUpdater setActivitySid(String activitySid)
activitySid
- The SID of the Activity that describes the Worker's
initial statepublic WorkerUpdater setAttributes(String attributes)
attributes
- The JSON string that describes the Workerpublic WorkerUpdater setFriendlyName(String friendlyName)
friendlyName
- A string to describe the Workerpublic WorkerUpdater setRejectPendingReservations(Boolean rejectPendingReservations)
rejectPendingReservations
- Whether to reject the Worker's pending
reservationspublic WorkerUpdater setIfMatch(String ifMatch)
ifMatch
- The If-Match HTTP request headerpublic Worker update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.