public static class ConversationAction.Builder extends java.lang.Object
| Constructor and Description |
|---|
Builder(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
ConversationAction |
build() |
ConversationAction.Builder |
endOnExit(java.lang.Boolean endOnExit) |
ConversationAction.Builder |
eventMethod(EventMethod eventMethod) |
ConversationAction.Builder |
eventUrl(java.util.Collection<java.lang.String> eventUrl) |
ConversationAction.Builder |
eventUrl(java.lang.String... eventUrl) |
ConversationAction.Builder |
musicOnHoldUrl(java.util.Collection<java.lang.String> musicOnHoldUrl) |
ConversationAction.Builder |
musicOnHoldUrl(java.lang.String... musicOnHoldUrl) |
ConversationAction.Builder |
name(java.lang.String name) |
ConversationAction.Builder |
record(java.lang.Boolean record) |
ConversationAction.Builder |
startOnEnter(java.lang.Boolean startOnEnter) |
public Builder(java.lang.String name)
name - The name of the Conversation room.public ConversationAction.Builder name(java.lang.String name)
name - The name of the Conversation room.ConversationAction.Builder to keep building.public ConversationAction.Builder musicOnHoldUrl(java.util.Collection<java.lang.String> musicOnHoldUrl)
musicOnHoldUrl - A URL to the mp3 file to stream to participants until the conversation starts.
By default the conversation starts when the first person calls the virtual number
associated with your Voice app. To stream this mp3 before the moderator joins the
conversation, set startOnEnter to false for all users other than the moderator.ConversationAction.Builder to keep building.public ConversationAction.Builder musicOnHoldUrl(java.lang.String... musicOnHoldUrl)
musicOnHoldUrl - A URL to the mp3 file to stream to participants until the conversation starts.
By default the conversation starts when the first person calls the virtual number
associated with your Voice app. To stream this mp3 before the moderator joins the
conversation, set startOnEnter to false for all users other than the moderator.ConversationAction.Builder to keep building.public ConversationAction.Builder startOnEnter(java.lang.Boolean startOnEnter)
startOnEnter - The default value of true ensures that the conversation starts when this caller joins
conversation name. Set to false for attendees in a moderated conversation.ConversationAction.Builder to keep building.public ConversationAction.Builder endOnExit(java.lang.Boolean endOnExit)
endOnExit - For moderated conversations, set to true in the moderator NCCO so the conversation is
ended when the moderator hangs up. The default value of false means the conversation
is not terminated when a caller hangs up; the conversation ends when the last caller
hangs up.ConversationAction.Builder to keep building.public ConversationAction.Builder record(java.lang.Boolean record)
record - Set to true to record this conversation. For standard conversations, recordings start when one
or more attendees connects to the conversation. For moderated conversations, recordings start
when the moderator joins. That is, when an NCCO is executed for the named conversation where
startOnEnter is set to true. When the recording is terminated, the URL you download the
recording from is sent to the event URL.
By default audio is recorded in MP3 format. See the recording guide for more details
ConversationAction.Builder to keep building.public ConversationAction.Builder eventUrl(java.util.Collection<java.lang.String> eventUrl)
eventUrl - Set the URL to the webhook endpoint Nexmo calls asynchronously on each of the
Call States.ConversationAction.Builder to keep building.public ConversationAction.Builder eventUrl(java.lang.String... eventUrl)
eventUrl - Set the URL to the webhook endpoint Nexmo calls asynchronously on each of the
Call States.ConversationAction.Builder to keep building.public ConversationAction.Builder eventMethod(EventMethod eventMethod)
eventMethod - Set the HTTP method used to make the request to eventUrl. The default value is POST.ConversationAction.Builder to keep building.public ConversationAction build()
ConversationAction object from the stored builder options.