Package com.twilio.twiml.voice
Class SsmlSayAs.Builder
- java.lang.Object
-
- com.twilio.twiml.TwiML.Builder<SsmlSayAs.Builder>
-
- com.twilio.twiml.voice.SsmlSayAs.Builder
-
- Enclosing class:
- SsmlSayAs
public static class SsmlSayAs.Builder extends TwiML.Builder<SsmlSayAs.Builder>
Create a new<say-as>
element
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SsmlSayAs
build()
Create and return resulting<say-as>
elementstatic SsmlSayAs.Builder
fromXml(String xml)
Create and return a<SsmlSayAs.Builder>
from an XML stringSsmlSayAs.Builder
interpretAs(SsmlSayAs.InterpretAs interpretAs)
Specify the type of words are spokenSsmlSayAs.Builder
role(SsmlSayAs.Role role)
Specify the format of the date when interpret-as is set to date-
Methods inherited from class com.twilio.twiml.TwiML.Builder
addChild, addText, option
-
-
-
-
Constructor Detail
-
Builder
public Builder(String words)
Create a<say-as>
with words
-
-
Method Detail
-
fromXml
public static SsmlSayAs.Builder fromXml(String xml) throws TwiMLException
Create and return a<SsmlSayAs.Builder>
from an XML string- Throws:
TwiMLException
-
interpretAs
public SsmlSayAs.Builder interpretAs(SsmlSayAs.InterpretAs interpretAs)
Specify the type of words are spoken
-
role
public SsmlSayAs.Builder role(SsmlSayAs.Role role)
Specify the format of the date when interpret-as is set to date
-
build
public SsmlSayAs build()
Create and return resulting<say-as>
element
-
-