public static class RecordAction.Builder extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RecordAction.Builder |
beepStart(java.lang.Boolean beepStart) |
RecordAction |
build() |
RecordAction.Builder |
channels(java.lang.Integer channels) |
RecordAction.Builder |
endOnKey(java.lang.Character endOnKey) |
RecordAction.Builder |
endOnSilence(java.lang.Integer endOnSilence) |
RecordAction.Builder |
eventMethod(EventMethod eventMethod) |
RecordAction.Builder |
eventUrl(java.util.Collection<java.lang.String> eventUrl) |
RecordAction.Builder |
eventUrl(java.lang.String... eventUrl) |
RecordAction.Builder |
format(RecordingFormat format) |
RecordAction.Builder |
split(SplitRecording split) |
RecordAction.Builder |
timeOut(java.lang.Integer timeOut) |
public Builder()
public RecordAction.Builder format(RecordingFormat format)
format - Record the Call in a specific RecordingFormat.
The default value is RecordingFormat.MP3, or RecordingFormat.WAV when recording
more than 2 channels.
RecordAction.Builder to keep building.public RecordAction.Builder endOnSilence(java.lang.Integer endOnSilence)
endOnSilence - Stop recording after n seconds of silence. Once the recording is stopped the recording
data is sent to event_url. The range of possible values is between 3 and 10 inclusively.RecordAction.Builder to keep building.public RecordAction.Builder endOnKey(java.lang.Character endOnKey)
endOnKey - Stop recording when a digit is pressed on the handset. Possible values are: *, # or any
single digit e.g. 9RecordAction.Builder to keep building.public RecordAction.Builder timeOut(java.lang.Integer timeOut)
timeOut - The maximum length of a recording in seconds. One the recording is stopped the recording data
is sent to event_url. The range of possible values is between 3 seconds and 7200 seconds (2
hours)RecordAction.Builder to keep building.public RecordAction.Builder beepStart(java.lang.Boolean beepStart)
beepStart - Set to true to play a beep when a recording startsRecordAction.Builder to keep building.public RecordAction.Builder eventUrl(java.util.Collection<java.lang.String> eventUrl)
eventUrl - The URL to the webhook endpoint that is called asynchronously when a recording is finished.
If the message recording is hosted by Nexmo, this webhook contains the URL you need to
download the recording and other meta data.RecordAction.Builder to keep building.public RecordAction.Builder eventUrl(java.lang.String... eventUrl)
eventUrl - The URL to the webhook endpoint that is called asynchronously when a recording is finished.
If the message recording is hosted by Nexmo, this webhook contains the URL you need to
download the recording and other meta data.RecordAction.Builder to keep building.public RecordAction.Builder eventMethod(EventMethod eventMethod)
eventMethod - The HTTP method used to make the request to eventUrl. The default value is POST.RecordAction.Builder to keep building.public RecordAction.Builder split(SplitRecording split)
split - Record the sent and received audio in separate channels of a stereo recording—set to SplitRecording.CONVERSATION to enable this.RecordAction.Builder to keep building.public RecordAction.Builder channels(java.lang.Integer channels)
channels - The number of channels to record (maximum 32). If the number of participants exceeds channels
any additional participants will be added to the last channel in file. split will be
set to SplitRecording.CONVERSATION during the build process if channels is greater
than 1.RecordAction.Builder to keep building.public RecordAction build()
RecordAction object from the stored builder options.