Package com.twilio.twiml.voice
Class Prompt.Builder
- java.lang.Object
-
- com.twilio.twiml.TwiML.Builder<Prompt.Builder>
-
- com.twilio.twiml.voice.Prompt.Builder
-
- Enclosing class:
- Prompt
public static class Prompt.Builder extends TwiML.Builder<Prompt.Builder>
Create a new<Prompt>
element
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Prompt.Builder
attempts(Integer attempt)
Current attempt countPrompt.Builder
attempts(List<Integer> attempt)
Current attempt countPrompt
build()
Create and return resulting<Prompt>
elementPrompt.Builder
cardTypes(Prompt.CardType cardType)
Type of the credit cardPrompt.Builder
cardTypes(List<Prompt.CardType> cardType)
Type of the credit cardPrompt.Builder
errorTypes(Prompt.ErrorType errorType)
Type of errorPrompt.Builder
errorTypes(List<Prompt.ErrorType> errorType)
Type of errorPrompt.Builder
for_(Prompt.For for_)
Name of the payment source data elementstatic Prompt.Builder
fromXml(String xml)
Create and return a<Prompt.Builder>
from an XML stringPrompt.Builder
pause(Pause pause)
Add a child<Pause>
elementPrompt.Builder
play(Play play)
Add a child<Play>
elementPrompt.Builder
requireMatchingInputs(Boolean requireMatchingInputs)
Require customer to input requested information twice and verify matching.Prompt.Builder
say(Say say)
Add a child<Say>
element-
Methods inherited from class com.twilio.twiml.TwiML.Builder
addChild, addText, option
-
-
-
-
Method Detail
-
fromXml
public static Prompt.Builder fromXml(String xml) throws TwiMLException
Create and return a<Prompt.Builder>
from an XML string- Throws:
TwiMLException
-
for_
public Prompt.Builder for_(Prompt.For for_)
Name of the payment source data element
-
errorTypes
public Prompt.Builder errorTypes(List<Prompt.ErrorType> errorType)
Type of error
-
errorTypes
public Prompt.Builder errorTypes(Prompt.ErrorType errorType)
Type of error
-
cardTypes
public Prompt.Builder cardTypes(List<Prompt.CardType> cardType)
Type of the credit card
-
cardTypes
public Prompt.Builder cardTypes(Prompt.CardType cardType)
Type of the credit card
-
attempts
public Prompt.Builder attempts(List<Integer> attempt)
Current attempt count
-
attempts
public Prompt.Builder attempts(Integer attempt)
Current attempt count
-
requireMatchingInputs
public Prompt.Builder requireMatchingInputs(Boolean requireMatchingInputs)
Require customer to input requested information twice and verify matching.
-
say
public Prompt.Builder say(Say say)
Add a child<Say>
element
-
play
public Prompt.Builder play(Play play)
Add a child<Play>
element
-
pause
public Prompt.Builder pause(Pause pause)
Add a child<Pause>
element
-
build
public Prompt build()
Create and return resulting<Prompt>
element
-
-