Package com.twilio.twiml.messaging
Class Message
- java.lang.Object
-
- com.twilio.twiml.TwiML
-
- com.twilio.twiml.messaging.Message
-
public class Message extends TwiML
TwiML wrapper for<Message>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessage.BuilderCreate a new<Message>element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetAction()Action URLStringgetBody()Message BodyStringgetFrom()Phone Number to send Message fromHttpMethodgetMethod()Action URL MethodURIgetStatusCallback()Status callback URL.StringgetTo()Phone Number to send Message to-
Methods inherited from class com.twilio.twiml.TwiML
equals, getChildren, getOptions, getTagName, hashCode, toUrl, toXml
-
-
-
-
Method Detail
-
getTo
public String getTo()
Phone Number to send Message to- Returns:
- Phone Number to send Message to
-
getFrom
public String getFrom()
Phone Number to send Message from- Returns:
- Phone 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. Deprecated in favor of action.- Returns:
- Status callback URL. Deprecated in favor of action.
-
getBody
public String getBody()
Message Body- Returns:
- Message Body
-
-