Package com.twilio.twiml.voice
Class Reject.Builder
- java.lang.Object
-
- com.twilio.twiml.TwiML.Builder<Reject.Builder>
-
- com.twilio.twiml.voice.Reject.Builder
-
- Enclosing class:
- Reject
public static class Reject.Builder extends TwiML.Builder<Reject.Builder>
Create a new<Reject>
element
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Reject
build()
Create and return resulting<Reject>
elementstatic Reject.Builder
fromXml(String xml)
Create and return a<Reject.Builder>
from an XML stringReject.Builder
parameter(Parameter parameter)
Add a child<Parameter>
elementReject.Builder
reason(Reject.Reason reason)
Rejection reason-
Methods inherited from class com.twilio.twiml.TwiML.Builder
addChild, addText, option
-
-
-
-
Method Detail
-
fromXml
public static Reject.Builder fromXml(String xml) throws TwiMLException
Create and return a<Reject.Builder>
from an XML string- Throws:
TwiMLException
-
reason
public Reject.Builder reason(Reject.Reason reason)
Rejection reason
-
parameter
public Reject.Builder parameter(Parameter parameter)
Add a child<Parameter>
element
-
build
public Reject build()
Create and return resulting<Reject>
element
-
-