Class CallMessage.Builder

java.lang.Object
com.twilio.voice.CallMessage.Builder
Enclosing class:
CallMessage

public static class CallMessage.Builder extends Object
Builds new CallMessage.
  • Constructor Details

    • Builder

      public Builder(@NonNull String messageType)
      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

      public CallMessage.Builder contentType(@NonNull String contentType)
      Sets the message content MIME type. Currently the only supported type is "application/json", which is also the default value.
    • content

      public CallMessage.Builder content(@NonNull String content)
      Sets the message content. Message content must be less than 10k in size.
    • build

      public CallMessage build()