Class CreateWhatsAppTemplate

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

public class CreateWhatsAppTemplate extends Object
CreateWhatsAppTemplate
  • Field Details

  • Constructor Details

    • CreateWhatsAppTemplate

      public CreateWhatsAppTemplate()
  • Method Details

    • name

      public CreateWhatsAppTemplate name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Name of the template
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • language

      public CreateWhatsAppTemplate language(@Nonnull String language)
    • getLanguage

      @Nonnull public String getLanguage()
      Language of the template. For Example : **en** for English
      Returns:
      language
    • setLanguage

      public void setLanguage(@Nonnull String language)
    • category

      public CreateWhatsAppTemplate category(@Nonnull CreateWhatsAppTemplate.CategoryEnum category)
    • getCategory

      @Nonnull public CreateWhatsAppTemplate.CategoryEnum getCategory()
      Category of the template
      Returns:
      category
    • setCategory

      public void setCategory(@Nonnull CreateWhatsAppTemplate.CategoryEnum category)
    • mediaUrl

      public CreateWhatsAppTemplate mediaUrl(@Nullable String mediaUrl)
    • getMediaUrl

      @Nullable public String getMediaUrl()
      Absolute url of the media file **(no local file)** for the header. **Use this field in you want to add media in Template header and headerText is empty**. Allowed extensions for media files are: #### jpeg | png | mp4 | pdf
      Returns:
      mediaUrl
    • setMediaUrl

      public void setMediaUrl(@Nullable String mediaUrl)
    • bodyText

      public CreateWhatsAppTemplate bodyText(@Nonnull String bodyText)
    • getBodyText

      @Nonnull public String getBodyText()
      Body of the template. **Maximum allowed characters are 1024**
      Returns:
      bodyText
    • setBodyText

      public void setBodyText(@Nonnull String bodyText)
    • headerText

      public CreateWhatsAppTemplate headerText(@Nullable String headerText)
    • getHeaderText

      @Nullable public String getHeaderText()
      Text content of the header in the template. **Maximum allowed characters are 45** **Use this field to add text content in template header and if mediaUrl is empty**
      Returns:
      headerText
    • setHeaderText

      public void setHeaderText(@Nullable String headerText)
    • source

    • getSource

      @Nullable public CreateWhatsAppTemplate.SourceEnum getSource()
      source of the template
      Returns:
      source
    • setSource

      public void setSource(@Nullable CreateWhatsAppTemplate.SourceEnum source)
    • 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