Class MJEasySms

java.lang.Object
com.mailjet.client.easy.MJEasySms

public class MJEasySms
extends java.lang.Object
Mailjet easy sms sending object. It's a MailjetRequest object wrapper
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected MJEasySms​(MJEasyClient client, MailjetRequest request)  
  • Method Summary

    Modifier and Type Method Description
    MJEasySms from​(java.lang.String number)
    Set the sender
    MailjetResponse send()
    Send the sms
    MJEasySms text​(java.lang.String text)
    Set the text content of the message
    MJEasySms to​(java.lang.String number)
    Set the recipient

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • from

      public MJEasySms from​(java.lang.String number)
      Set the sender
      Parameters:
      number - sender name
      Returns:
      Current instance
    • to

      public MJEasySms to​(java.lang.String number)
      Set the recipient
      Parameters:
      number - Number of the recipient
      Returns:
      Current instance
    • text

      public MJEasySms text​(java.lang.String text)
      Set the text content of the message
      Parameters:
      text - Text content
      Returns:
      Current instance
    • send

      public MailjetResponse send() throws MailjetException
      Send the sms
      Returns:
      a MailjetResponse instance
      Throws:
      MailjetException