Package com.twilio.twiml
Class VoiceResponse.Builder
- java.lang.Object
-
- com.twilio.twiml.TwiML.Builder<VoiceResponse.Builder>
-
- com.twilio.twiml.VoiceResponse.Builder
-
- Enclosing class:
- VoiceResponse
public static class VoiceResponse.Builder extends TwiML.Builder<VoiceResponse.Builder>
Create a new<Response>
element
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VoiceResponse
build()
Create and return resulting<Response>
elementVoiceResponse.Builder
connect(Connect connect)
Add a child<Connect>
elementVoiceResponse.Builder
dial(Dial dial)
Add a child<Dial>
elementVoiceResponse.Builder
echo(Echo echo)
Add a child<Echo>
elementVoiceResponse.Builder
enqueue(Enqueue enqueue)
Add a child<Enqueue>
elementstatic VoiceResponse.Builder
fromXml(String xml)
Create and return a<VoiceResponse.Builder>
from an XML stringVoiceResponse.Builder
gather(Gather gather)
Add a child<Gather>
elementVoiceResponse.Builder
hangup(Hangup hangup)
Add a child<Hangup>
elementVoiceResponse.Builder
leave(Leave leave)
Add a child<Leave>
elementVoiceResponse.Builder
pause(Pause pause)
Add a child<Pause>
elementVoiceResponse.Builder
pay(Pay pay)
Add a child<Pay>
elementVoiceResponse.Builder
play(Play play)
Add a child<Play>
elementVoiceResponse.Builder
prompt(Prompt prompt)
Add a child<Prompt>
elementVoiceResponse.Builder
queue(Queue queue)
Add a child<Queue>
elementVoiceResponse.Builder
record(Record record)
Add a child<Record>
elementVoiceResponse.Builder
redirect(Redirect redirect)
Add a child<Redirect>
elementVoiceResponse.Builder
refer(Refer refer)
Add a child<Refer>
elementVoiceResponse.Builder
reject(Reject reject)
Add a child<Reject>
elementVoiceResponse.Builder
say(Say say)
Add a child<Say>
elementVoiceResponse.Builder
sms(Sms sms)
Add a child<Sms>
elementVoiceResponse.Builder
start(Start start)
Add a child<Start>
elementVoiceResponse.Builder
stop(Stop stop)
Add a child<Stop>
element-
Methods inherited from class com.twilio.twiml.TwiML.Builder
addChild, addText, option
-
-
-
-
Method Detail
-
fromXml
public static VoiceResponse.Builder fromXml(String xml) throws TwiMLException
Create and return a<VoiceResponse.Builder>
from an XML string- Throws:
TwiMLException
-
connect
public VoiceResponse.Builder connect(Connect connect)
Add a child<Connect>
element
-
dial
public VoiceResponse.Builder dial(Dial dial)
Add a child<Dial>
element
-
echo
public VoiceResponse.Builder echo(Echo echo)
Add a child<Echo>
element
-
enqueue
public VoiceResponse.Builder enqueue(Enqueue enqueue)
Add a child<Enqueue>
element
-
gather
public VoiceResponse.Builder gather(Gather gather)
Add a child<Gather>
element
-
hangup
public VoiceResponse.Builder hangup(Hangup hangup)
Add a child<Hangup>
element
-
leave
public VoiceResponse.Builder leave(Leave leave)
Add a child<Leave>
element
-
pause
public VoiceResponse.Builder pause(Pause pause)
Add a child<Pause>
element
-
play
public VoiceResponse.Builder play(Play play)
Add a child<Play>
element
-
queue
public VoiceResponse.Builder queue(Queue queue)
Add a child<Queue>
element
-
record
public VoiceResponse.Builder record(Record record)
Add a child<Record>
element
-
redirect
public VoiceResponse.Builder redirect(Redirect redirect)
Add a child<Redirect>
element
-
reject
public VoiceResponse.Builder reject(Reject reject)
Add a child<Reject>
element
-
say
public VoiceResponse.Builder say(Say say)
Add a child<Say>
element
-
sms
public VoiceResponse.Builder sms(Sms sms)
Add a child<Sms>
element
-
pay
public VoiceResponse.Builder pay(Pay pay)
Add a child<Pay>
element
-
prompt
public VoiceResponse.Builder prompt(Prompt prompt)
Add a child<Prompt>
element
-
start
public VoiceResponse.Builder start(Start start)
Add a child<Start>
element
-
stop
public VoiceResponse.Builder stop(Stop stop)
Add a child<Stop>
element
-
refer
public VoiceResponse.Builder refer(Refer refer)
Add a child<Refer>
element
-
build
public VoiceResponse build()
Create and return resulting<Response>
element
-
-