Class MmsMessage


  • public class MmsMessage
    extends java.lang.Object
    MmsMessage

    An object with a new MMS message properties

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MmsMessage.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      MmsMessage​(Recipients recipients)  
      MmsMessage​(Recipients recipients, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> subject, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> message, java.util.Optional<? extends Attachments> attachments, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> date)  
    • Constructor Detail

      • MmsMessage

        public MmsMessage​(Recipients recipients,
                          org.openapitools.jackson.nullable.JsonNullable<java.lang.String> subject,
                          org.openapitools.jackson.nullable.JsonNullable<java.lang.String> message,
                          java.util.Optional<? extends Attachments> attachments,
                          org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> date)
      • MmsMessage

        public MmsMessage​(Recipients recipients)
    • Method Detail

      • recipients

        public 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 org.openapitools.jackson.nullable.JsonNullable<java.lang.String> subject()
        MMS message subject
      • message

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

        public java.util.Optional<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 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
      • withRecipients

        public MmsMessage withRecipients​(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).
      • withSubject

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

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

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

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

        public MmsMessage withAttachments​(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.
      • withAttachments

        public MmsMessage withAttachments​(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.
      • withDate

        public MmsMessage withDate​(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
      • withDate

        public MmsMessage withDate​(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
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object