Class SendTransacSms

java.lang.Object
software.xdev.brevo.model.SendTransacSms

public class SendTransacSms extends Object
SendTransacSms
  • Field Details

  • Constructor Details

    • SendTransacSms

      public SendTransacSms()
  • Method Details

    • sender

      public SendTransacSms sender(@Nonnull String sender)
    • getSender

      @Nonnull public String getSender()
      Name of the sender. **The number of characters is limited to 11 for alphanumeric characters and 15 for numeric characters**
      Returns:
      sender
    • setSender

      public void setSender(@Nonnull String sender)
    • recipient

      public SendTransacSms recipient(@Nonnull String recipient)
    • getRecipient

      @Nonnull public String getRecipient()
      Mobile number to send SMS with the country code
      Returns:
      recipient
    • setRecipient

      public void setRecipient(@Nonnull String recipient)
    • content

      public SendTransacSms content(@Nonnull String content)
    • getContent

      @Nonnull public String getContent()
      Content of the message. If more than **160 characters** long, will be sent as multiple text messages
      Returns:
      content
    • setContent

      public void setContent(@Nonnull String content)
    • type

      public SendTransacSms type(@Nullable SendTransacSms.TypeEnum type)
    • getType

      @Nullable public SendTransacSms.TypeEnum getType()
      Type of the SMS. Marketing SMS messages are those sent typically with marketing content. Transactional SMS messages are sent to individuals and are triggered in response to some action, such as a sign-up, purchase, etc.
      Returns:
      type
    • setType

      public void setType(@Nullable SendTransacSms.TypeEnum type)
    • tag

      public SendTransacSms tag(@Nullable String tag)
    • getTag

      @Nullable public String getTag()
      A tag can have two types of values, either a string or an array of strings.
      Returns:
      tag
    • setTag

      public void setTag(@Nullable String tag)
    • webUrl

      public SendTransacSms webUrl(@Nullable String webUrl)
    • getWebUrl

      @Nullable public String getWebUrl()
      Webhook to call for each event triggered by the message (delivered etc.)
      Returns:
      webUrl
    • setWebUrl

      public void setWebUrl(@Nullable String webUrl)
    • unicodeEnabled

      public SendTransacSms unicodeEnabled(@Nullable Boolean unicodeEnabled)
    • getUnicodeEnabled

      @Nullable public Boolean getUnicodeEnabled()
      Format of the message. It indicates whether the content should be treated as unicode or not.
      Returns:
      unicodeEnabled
    • setUnicodeEnabled

      public void setUnicodeEnabled(@Nullable Boolean unicodeEnabled)
    • organisationPrefix

      public SendTransacSms organisationPrefix(@Nullable String organisationPrefix)
    • getOrganisationPrefix

      @Nullable public String getOrganisationPrefix()
      A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.**
      Returns:
      organisationPrefix
    • setOrganisationPrefix

      public void setOrganisationPrefix(@Nullable String organisationPrefix)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string