Constructor and Description |
---|
RecordingCreator(String pathCallSid)
Construct a new RecordingCreator.
|
RecordingCreator(String pathAccountSid,
String pathCallSid)
Construct a new RecordingCreator.
|
Modifier and Type | Method and Description |
---|---|
Recording |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
RecordingCreator |
setRecordingChannels(String recordingChannels)
The number of channels used in the recording.
|
RecordingCreator |
setRecordingStatusCallback(String recordingStatusCallback)
The URL we should call using the `recording_status_callback_method` on each
recording event specified in `recording_status_callback_event`.
|
RecordingCreator |
setRecordingStatusCallback(URI recordingStatusCallback)
The URL we should call using the `recording_status_callback_method` on each
recording event specified in `recording_status_callback_event`.
|
RecordingCreator |
setRecordingStatusCallbackEvent(List<String> recordingStatusCallbackEvent)
The recording status events on which we should call the
`recording_status_callback` URL.
|
RecordingCreator |
setRecordingStatusCallbackEvent(String recordingStatusCallbackEvent)
The recording status events on which we should call the
`recording_status_callback` URL.
|
RecordingCreator |
setRecordingStatusCallbackMethod(HttpMethod recordingStatusCallbackMethod)
The HTTP method we should use to call `recording_status_callback`.
|
RecordingCreator |
setRecordingTrack(String recordingTrack)
The audio track to record for the call.
|
RecordingCreator |
setTrim(String trim)
Whether to trim any leading and trailing silence in the recording.
|
create, createAsync, createAsync
public RecordingCreator(String pathCallSid)
pathCallSid
- The SID of the Call to associate the resource withpublic RecordingCreator setRecordingStatusCallbackEvent(List<String> recordingStatusCallbackEvent)
recordingStatusCallbackEvent
- The recording status changes that should
generate a callbackpublic RecordingCreator setRecordingStatusCallbackEvent(String recordingStatusCallbackEvent)
recordingStatusCallbackEvent
- The recording status changes that should
generate a callbackpublic RecordingCreator setRecordingStatusCallback(URI recordingStatusCallback)
recordingStatusCallback
- The callback URL on each selected recording
eventpublic RecordingCreator setRecordingStatusCallback(String recordingStatusCallback)
recordingStatusCallback
- The callback URL on each selected recording
eventpublic RecordingCreator setRecordingStatusCallbackMethod(HttpMethod recordingStatusCallbackMethod)
recordingStatusCallbackMethod
- The HTTP method we should use to call
`recording_status_callback`public RecordingCreator setTrim(String trim)
trim
- Whether to trim the silence in the recordingpublic RecordingCreator setRecordingChannels(String recordingChannels)
recordingChannels
- The number of channels that the output recording
will be configured withpublic RecordingCreator setRecordingTrack(String recordingTrack)
recordingTrack
- Which track(s) to recordpublic Recording create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.