Class MmsMessage.Builder

  • Enclosing class:
    MmsMessage

    public static final class MmsMessage.Builder
    extends java.lang.Object
    • Method Detail

      • recipients

        public MmsMessage.Builder recipients​(Recipients recipients)
        The recipient number or multiple recipients numbers of single message. To set one recipient, please use Recipients.of(String) method simply passing to it a string with his phone number. To set multiple recipients, please use Recipients.ofArrayOfStrings(List.of(String,...)) method passing to it List<string>. Optionally you can also set custom id (user identifier) for each message - use Recipients.of(PhoneNumberWithCid) method passing PhoneNumberWithCid object (in case of single recipient) or Recipients.ofArrayOfPhoneNumberWithCids(Recipients.of(PhoneNumberWithCid,...)) method passing List<PhoneNumberWithCid> (in case of multiple recipients).
      • subject

        public MmsMessage.Builder subject​(java.lang.String subject)
        MMS message subject
      • subject

        public MmsMessage.Builder subject​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> subject)
        MMS message subject
      • message

        public MmsMessage.Builder message​(java.lang.String message)
        MMS message content
      • message

        public MmsMessage.Builder message​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> message)
        MMS message content
      • attachments

        public MmsMessage.Builder attachments​(Attachments attachments)
        Attachments for the message. You can pass here images, audio and video files bodies. To set one attachment please use Attachments.of(String) method simply passing to it a string with attachment body encoded by base64. To set multiple attachments please use Attachments.of(List.of(String,...)) method passing to it List<string> with attachments bodies encoded by base64. Max 3 attachments per message.
      • attachments

        public MmsMessage.Builder attachments​(java.util.Optional<? extends Attachments> attachments)
        Attachments for the message. You can pass here images, audio and video files bodies. To set one attachment please use Attachments.of(String) method simply passing to it a string with attachment body encoded by base64. To set multiple attachments please use Attachments.of(List.of(String,...)) method passing to it List<string> with attachments bodies encoded by base64. Max 3 attachments per message.
      • date

        public MmsMessage.Builder date​(java.time.OffsetDateTime date)
        Scheduled future date and time of sending the message (in ISO 8601 format). If missing or null - message will be sent immediately
      • date

        public MmsMessage.Builder date​(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> date)
        Scheduled future date and time of sending the message (in ISO 8601 format). If missing or null - message will be sent immediately