public static class Prompt.Builder extends TwiML.Builder<Prompt.Builder>
<Prompt>
elementConstructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Prompt.Builder |
attempts(Integer attempt)
Current attempt count
|
Prompt.Builder |
attempts(List<Integer> attempt)
Current attempt count
|
Prompt |
build()
Create and return resulting
<Prompt> element |
Prompt.Builder |
cardTypes(List<Prompt.CardType> cardType)
Type of the credit card
|
Prompt.Builder |
cardTypes(Prompt.CardType cardType)
Type of the credit card
|
Prompt.Builder |
errorTypes(List<Prompt.ErrorType> errorType)
Type of error
|
Prompt.Builder |
errorTypes(Prompt.ErrorType errorType)
Type of error
|
Prompt.Builder |
for_(Prompt.For for_)
Name of the credit card data element
|
Prompt.Builder |
pause(Pause pause)
Add a child
<Pause> element |
Prompt.Builder |
play(Play play)
Add a child
<Play> element |
Prompt.Builder |
say(Say say)
Add a child
<Say> element |
addChild, addText, option
public Prompt.Builder for_(Prompt.For for_)
public Prompt.Builder errorTypes(List<Prompt.ErrorType> errorType)
public Prompt.Builder errorTypes(Prompt.ErrorType errorType)
public Prompt.Builder cardTypes(List<Prompt.CardType> cardType)
public Prompt.Builder cardTypes(Prompt.CardType cardType)
public Prompt.Builder attempts(List<Integer> attempt)
public Prompt.Builder attempts(Integer attempt)
public Prompt.Builder say(Say say)
<Say>
elementpublic Prompt.Builder play(Play play)
<Play>
elementpublic Prompt.Builder pause(Pause pause)
<Pause>
elementpublic Prompt build()
<Prompt>
elementCopyright © 2016 Twilio, Inc. All Rights Reserved.