Package com.twilio.twiml.voice
Class Sms
- java.lang.Object
-
- com.twilio.twiml.TwiML
-
- com.twilio.twiml.voice.Sms
-
public class Sms extends TwiML
TwiML wrapper for<Sms>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSms.BuilderCreate a new<Sms>element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetAction()Action URLPhoneNumbergetFrom()Number to send message fromStringgetMessage()Message bodyHttpMethodgetMethod()Action URL methodURIgetStatusCallback()Status callback URLPhoneNumbergetTo()Number to send message to-
Methods inherited from class com.twilio.twiml.TwiML
equals, getChildren, getOptions, getTagName, hashCode, toUrl, toXml
-
-
-
-
Method Detail
-
getTo
public PhoneNumber getTo()
Number to send message to- Returns:
- Number to send message to
-
getFrom
public PhoneNumber getFrom()
Number to send message from- Returns:
- Number to send message from
-
getAction
public URI getAction()
Action URL- Returns:
- Action URL
-
getMethod
public HttpMethod getMethod()
Action URL method- Returns:
- Action URL method
-
getStatusCallback
public URI getStatusCallback()
Status callback URL- Returns:
- Status callback URL
-
getMessage
public String getMessage()
Message body- Returns:
- Message body
-
-