Package com.twilio.twiml.voice
Class Refer.Builder
- java.lang.Object
-
- com.twilio.twiml.TwiML.Builder<Refer.Builder>
-
- com.twilio.twiml.voice.Refer.Builder
-
- Enclosing class:
- Refer
public static class Refer.Builder extends TwiML.Builder<Refer.Builder>
Create a new<Refer>
element
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Refer.Builder
action(String action)
Action URLRefer.Builder
action(URI action)
Action URLRefer
build()
Create and return resulting<Refer>
elementstatic Refer.Builder
fromXml(String xml)
Create and return a<Refer.Builder>
from an XML stringRefer.Builder
method(HttpMethod method)
Action URL methodRefer.Builder
sip(ReferSip referSip)
Add a child<Sip>
element-
Methods inherited from class com.twilio.twiml.TwiML.Builder
addChild, addText, option
-
-
-
-
Method Detail
-
fromXml
public static Refer.Builder fromXml(String xml) throws TwiMLException
Create and return a<Refer.Builder>
from an XML string- Throws:
TwiMLException
-
action
public Refer.Builder action(URI action)
Action URL
-
action
public Refer.Builder action(String action)
Action URL
-
method
public Refer.Builder method(HttpMethod method)
Action URL method
-
sip
public Refer.Builder sip(ReferSip referSip)
Add a child<Sip>
element
-
build
public Refer build()
Create and return resulting<Refer>
element
-
-