Package com.twilio.voice
Class CallMessage.Builder
java.lang.Object
com.twilio.voice.CallMessage.Builder
- Enclosing class:
- CallMessage
Builds new
CallMessage
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Sets the message content.contentType
(String contentType) Sets the message content MIME type.
-
Constructor Details
-
Builder
- Parameters:
messageType
- The message type string. Should be a Twilio Programmable Voice supported message type found here: https://www.twilio.com/docs/voice/sdks/call-message-events
-
-
Method Details
-
contentType
Sets the message content MIME type. Currently the only supported type is "application/json", which is also the default value. -
content
Sets the message content. Message content must be less than 10k in size. -
build
-